-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let poetry automatically pull version from tags
Rather than spending time updating the 2 files that have hardcoded versions in them. Let poetry auto-generate the versions directly from Git tags. If a dev has a git tag checked out then `poetry build` will generate a version directly from that tag, for example the tag "v0.15.1" will produce a version "0.15.1". Otherwise the version will be based on how many commits since the last tag was available in Git history for example "0.15.1-post.13+d211ed4347" where "post.13" represents 13 commits since v0.15.1 was tagged and "d211ed4347" is the commit hash of the commit that generated this version. For this to work however devs are required to install poetry-dynamic-versioning in addition to poetry at the global level. Ref: https://pypi.org/project/poetry-dynamic-versioning/ Signed-off-by: Thanh Ha <[email protected]>
- Loading branch information
Showing
3 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/usr/bin/env python | ||
|
||
|
||
SUZIEQ_VERSION = "0.15.3" | ||
__version__ = "0.0.0" | ||
SUZIEQ_VERSION = __version__ | ||
|
||
if __name__ == '__main__': | ||
print(SUZIEQ_VERSION) |