Skip to content

Commit

Permalink
Add __version__ member to version.py
Browse files Browse the repository at this point in the history
In order to improve compatibility with other version schemes, this alternative label for the version was added to the version file.
  • Loading branch information
Nicoretti committed Dec 5, 2024
1 parent 85bc0e7 commit 5a126bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/changes/unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 🔧 Changed

* Add `__version__` member to generated `version.py` for comatibility with other versions schemes
* Excluded pyupgrade from project check due to its destructive nature
* Updated cookiecutter template
- removed obsolete template file `version.html`
Expand Down
1 change: 1 addition & 0 deletions exasol/toolbox/pre_commit_hooks/package_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
MINOR = {minor}
PATCH = {patch}
VERSION = f"{{MAJOR}}.{{MINOR}}.{{PATCH}}"
__version__ = VERSION
''') + "\n"
# fmt: on

Expand Down
1 change: 1 addition & 0 deletions exasol/toolbox/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
MINOR = 18
PATCH = 0
VERSION = f"{MAJOR}.{MINOR}.{PATCH}"
__version__ = VERSION

0 comments on commit 5a126bf

Please sign in to comment.