Manage current / next version for project
Project description
Manages the version number for the project based on git tags.
If on a tag, report that as-is.
When git commits have been added on from the tag, auto-increment the desired level of semantic version
Your project can either from __version__ import version, version_short, git_hash, on_tag to auto-calculate each run, or from _version import version, version_short, git_hash, on_tag to get the details from previous run of __version__
Can also be used as command line tool to generate _version.py, print version, rename files or fill a template file with version details.:
usage: __version__.py [-h] [--save] [--short] [--git] [--rename RENAME] [--template template output] Mange current/next version. optional arguments: -h, --help show this help message and exit --save Store in _version.py --short Print the short version string --git Print the release git hash --rename RENAME Add version numbers to filename(s) --template template output Add version to <template> and write result to <output> --tag Creates git tag to release the current commit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for git_versioner-2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d2189ced58de7b7671a792a32aec86262c618f91a8f3b2f1fe28fc31c9a71eb |
|
MD5 | f31642a96af8f59b17a3969616f82127 |
|
BLAKE2b-256 | 28217d35108017c03f9f098c4243f72b9f791d23cb14bf9d644f2746901c45a0 |