Skip to content

Commit 7d3993c

Browse files
authored
refactor: Moving version and adding it to release wf (#45)
1 parent 23e549d commit 7d3993c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ jobs:
6969
pypi-username: ${{ secrets.PYPI_USERNAME }}
7070
pypi-password: ${{ secrets.PYPI_PASSWORD }}
7171
main-branch: "master"
72+
version-file-path: "src/firebolt_db/__init__.py"

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = firebolt_sqlalchemy
3-
version = 0.2.0
3+
version = attr: firebolt_db.__version__
44
description = Sqlalchemy adapter for Firebolt
55
long_description = file: README.md
66
long_description_content_type = text/markdown

src/firebolt_db/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Warning",
1616
]
1717

18-
18+
__version__ = "0.2.0"
1919
apilevel = "2.0"
2020
# Threads may share the module and connections
2121
threadsafety = 1

0 commit comments

Comments
 (0)