Use git repo data (latest tag, current commit hash, etc) for building
a version number according PEP 440.
Features:
* 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
NOTE: Will need to have PYTHONPATH set to use as slackware's tomli
package is too old and may cause problems. It will need to see
python3-tomli-opt. (only needed for python <3.11)
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
export PYTHONPATH=/opt/python$PYVER/site-packages
This requires: python3-setuptools-opt, python3-tomli-opt
Maintained by: fourtysixandtwo
Keywords: python,git,version,pep440
ChangeLog: python3-setuptools-git-versioning
Homepage:
https://setuptools-git-versioning.readthedocs.io
Download SlackBuild:
python3-setuptools-git-versioning.tar.gz
python3-setuptools-git-versioning.tar.gz.asc (FAQ)
(the SlackBuild does not include the source)
| Individual Files: |
| README |
| python3-setuptools-git-versioning.SlackBuild |
| python3-setuptools-git-versioning.info |
| slack-desc |
© 2006-2026 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of
Patrick Volkerding
Linux® is a registered trademark of
Linus Torvalds