Automatically set package version using git tag/hash
Project description
setuptools-git-ver
Automatically set package version using git tag/hash
Install
Install using pip
Usage
To just use the default templates for versioning:
setuptools.setup(
...
version_config=True,
...
setup_requires=['setuptools-git-ver'],
...
)
Changing templates (also shows the defaults):
setuptools.setup(
...
version_config={
"template": "{tag}",
"dev_template": "{tag}.dev{ccount}+git.{sha}"
"dirty_template": "{tag}.dev{ccount}+git.{sha}.dirty"
},
...
setup_requires=['setuptools-git-ver'],
...
)
Templates
-
template
: used if no untracked files and latest commit is tagged -
dev_template
: used if no untracked files and latest commit isn't tagged -
dirty_template
: used if untracked files exist or uncommitted changes have been made
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for setuptools_git_ver-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0bda728914098d73c0725785dfda4dcc50c0debb7094611d3a7282c341f6a5d |
|
MD5 | 4b9f6d7ed3427cfdcb0a67033cbf8985 |
|
BLAKE2b-256 | 1020ee7683de92ffcb08e127755f9465e9f28ded1f69d017dfd2fffc245786bf |