From 0cb42343c7b39e98747a3b84244b6f127badfccd Mon Sep 17 00:00:00 2001 From: Petro Tiurin Date: Fri, 21 Jan 2022 14:23:19 +0000 Subject: [PATCH 1/2] ci: Adding version path to release wf --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32b3b2b..73e1e64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,3 +69,4 @@ jobs: pypi-username: ${{ secrets.PYPI_USERNAME }} pypi-password: ${{ secrets.PYPI_PASSWORD }} main-branch: "master" + version-file-path: "src/firebolt_db/__init__.py" From 65279966cde15eb86ba929b0c470cd0e0f86fc18 Mon Sep 17 00:00:00 2001 From: Petro Tiurin Date: Fri, 21 Jan 2022 14:26:42 +0000 Subject: [PATCH 2/2] moving version to __init__.py --- setup.cfg | 2 +- src/firebolt_db/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index b973e34..cd0c214 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = firebolt_sqlalchemy -version = 0.2.0 +version = attr: firebolt_db.__version__ description = Sqlalchemy adapter for Firebolt long_description = file: README.md long_description_content_type = text/markdown diff --git a/src/firebolt_db/__init__.py b/src/firebolt_db/__init__.py index 1830389..6b7d351 100644 --- a/src/firebolt_db/__init__.py +++ b/src/firebolt_db/__init__.py @@ -15,7 +15,7 @@ "Warning", ] - +__version__ = "0.2.0" apilevel = "2.0" # Threads may share the module and connections threadsafety = 1