Use git repo data for building a version number according to PEP-440
83.79 KB
built 2026-10-17 13:36:51 GMT
Description
Use git repo data (latest tag, current commit hash, etc) for building a version
number according to PEP 440.
Features:
• Can be installed & configured through both setup.py and PEP 518’s
pyproject.toml
• Does not require to change source code of the project
• Tag-, file-, and callback-based versioning schemas are supported
• Templates for tag, dev and dirty versions are separated
• Templates support a lot of substitutions including git and environment
information
• Well-documented
Limitations:
• Currently the only supported VCS is Git
• Only Git v2 is supported
• Only Setuptools build backend is supported (no Poetry & others)
• Currently does not support automatic exporting of package version to a file
for runtime use (but you can use setuptools-git-versioning > file redirect
instead)
Dependencies
20 totalRequires19
- (python3dist(tomli) if python3-devel < 3.11)
- git-core
- help2man
- pyproject-rpm-macros
- python3-devel
- python3-devel
- python3dist(build)
- python3dist(packaging)
- python3dist(pip) >= 19
- python3dist(pytest)
- python3dist(pytest-rerunfailures)
- python3dist(setuptools)
- python3dist(setuptools) >= 40.8
- python3dist(tomli-w)
- python3dist(wheel)
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(DynamicBuildRequires) <= 4.15.0-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(RichDependencies) <= 4.12.0-1
Provides1
- python3-setuptools-git-versioning = 2.1.0-19.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
5Name ![]() |
Size |
|---|---|
| 0001-Downstream-only-patch-out-coverage-analysis-machiner.patch | 11.47 KB |
| 116.patch | 1.30 KB |
| 117.patch | 2.06 KB |
| python-setuptools-git-versioning.spec | 7.17 KB |
| setuptools-git-versioning-2.1.0.tar.gz | 43.28 KB |
Files 1–5 of 5
Component of
buildroots that installed this RPMNo Buildroots
