slackbuilds/python/python3-setuptools-git-vers...
fourtysixandtwo f174bcd0a3
python/python3-setuptools-git-versioning: Updated for version 2.1.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2025-01-25 09:03:41 +07:00
..
README python/python3-setuptools-git-versioning: Updated for version 2.1.0. 2025-01-25 09:03:41 +07:00
python3-setuptools-git-versioning.SlackBuild python/python3-setuptools-git-versioning: Updated for version 2.1.0. 2025-01-25 09:03:41 +07:00
python3-setuptools-git-versioning.info python/python3-setuptools-git-versioning: Updated for version 2.1.0. 2025-01-25 09:03:41 +07:00
slack-desc

README

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