Skip to content

Commit 8fea6e9

Browse files
authored
Add __version__ member to version.py (#303)
1 parent 85bc0e7 commit 8fea6e9

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

doc/changes/unreleased.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 🔧 Changed
44

5+
* Add `__version__` member to generated `version.py` for compatibility with other versions schemes
56
* Excluded pyupgrade from project check due to its destructive nature
67
* Updated cookiecutter template
78
- removed obsolete template file `version.html`

exasol/toolbox/pre_commit_hooks/package_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
MINOR = {minor}
3333
PATCH = {patch}
3434
VERSION = f"{{MAJOR}}.{{MINOR}}.{{PATCH}}"
35+
__version__ = VERSION
3536
''') + "\n"
3637
# fmt: on
3738

exasol/toolbox/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
MINOR = 18
99
PATCH = 0
1010
VERSION = f"{MAJOR}.{MINOR}.{PATCH}"
11+
__version__ = VERSION

project-template/{{cookiecutter.repo_name}}/exasol/{{cookiecutter.package_name}}/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
MINOR = 1
99
PATCH = 0
1010
VERSION = f"{MAJOR}.{MINOR}.{PATCH}"
11+
__version__ = VERSION

0 commit comments

Comments
 (0)