Automatically set package version using git tags.
Project description
bad-setuptools-git-version
Automatically set package version from Git. This is a re-release of [bad-setuptools-git-version][] with fixes and improvements, which is itself a re-release of setuptools-git-version
Introduction
Instead of hard-coding the package version in setup.py like:
setup(
name='foobar',
version='1.0.0',
...
)
this package allows to extract it from tags in the underlying Git repository:
setup(
name='foobar',
version_config={
"version_format": "{tag}.{cc}",
"starting_version": "0.1.0"
},
setup_requires=['bad-setuptools-git-version'],
...
)
The tool uses the semantically-latest tag as the base version. If there are no annotated tags, the version specified by starting_version will be used. If HEAD is at the tag, the version will be the tag itself. If there are commits ahead of the tag, the first 8 characters of the sha of the HEAD commit will be included.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bad_setuptools_git_version-1.0.12-py2.py3-none-any.whl.
File metadata
- Download URL: bad_setuptools_git_version-1.0.12-py2.py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
601ff8dbe019caab9cf9156d38d57ffa854c06390a9c44c54f73014d32f39b8c
|
|
| MD5 |
164ef37276f2291ed5988e5542afbe29
|
|
| BLAKE2b-256 |
c75131df0c362abe4d815ec6c5a714383d257b350a7a6edb0d57dd18caebfc5e
|