Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autopublish releases action #35

Merged
merged 17 commits into from
Mar 22, 2024
2 changes: 1 addition & 1 deletion .github/scripts/increment_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

SETUP_PY_PATH = "setup.py"
DEFAULT_CHANGELOG_PATH = "CHANGELOG.md"
DEFAULT_YDB_VERSION_FILE = "ydb/ydb_version.py"
DEFAULT_YDB_VERSION_FILE = "ydb_sqlalchemy/_version.py"
MARKER = "# AUTOVERSION"


Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ jobs:
VERSION_CHANGE: ${{ github.event.inputs.version-change }}
WITH_BETA: ${{ github.event.inputs.beta }}
# GITHUB_TOKEN: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
GH_TOKEN: ${{ github.token }}
CHANGELOG_FILE: CHANGELOG.md
SETUP_PY_PATH: setup.py

permissions:
contents: write
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -106,7 +111,4 @@ jobs:
fi;

- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1.8
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## 0.0.1b5 ##
* Initial version
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include requirements.txt
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setuptools.setup(
name="ydb-sqlalchemy",
version="0.0.0", # AUTOVERSION
version="0.0.1b5", # AUTOVERSION
description="YDB Dialect for SQLAlchemy",
author="Yandex LLC",
author_email="[email protected]",
Expand Down
1 change: 1 addition & 0 deletions ydb_sqlalchemy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from .dbapi import IsolationLevel # noqa: F401
from .sqlalchemy import Upsert, types, upsert # noqa: F401
from _version import VERSION
1 change: 1 addition & 0 deletions ydb_sqlalchemy/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION = "0.0.1b5"