diff options
Diffstat (limited to 'python/python3-setuptools-git-versioning')
3 files changed, 24 insertions, 7 deletions
diff --git a/python/python3-setuptools-git-versioning/README b/python/python3-setuptools-git-versioning/README index c21cdfa783..1b326e7684 100644 --- a/python/python3-setuptools-git-versioning/README +++ b/python/python3-setuptools-git-versioning/README @@ -9,3 +9,11 @@ Features: * 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 + diff --git a/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild b/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild index e8ed6ee0bf..013d1d03b5 100644 --- a/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild +++ b/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-setuptools-git-versioning -# Copyright 2024 fourtysixandtwo <fourtysixandtwo@sliderr.net> +# Copyright 2024-2025 fourtysixandtwo <fourtysixandtwo@sliderr.net> # Copyright 2024, Alexander verbovetsky, Moscow, Russia # All rights reserved. # @@ -26,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-setuptools-git-versioning -SRCNAM=setuptools-git-versioning -VERSION=${VERSION:-2.0.0} +SRCNAM=setuptools_git_versioning +VERSION=${VERSION:-2.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -64,6 +64,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ +# lower the version requirement so it does not break other builds if +# setuptools_git_versioning is installed. +sed -i 's/tomli>=2.0.1/tomli>=1.2.2/' requirements.txt +sed -i 's/tomli>=2.0.1/tomli>=1.2.2/' PKG-INFO +sed -i 's/tomli>=2.0.1/tomli>=1.2.2/' setuptools_git_versioning.egg-info/requires.txt + +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages + python3 -m build --no-isolation python3 -m installer -d "$PKG" dist/*.whl diff --git a/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.info b/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.info index 844a68bfbc..e17ac14206 100644 --- a/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.info +++ b/python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.info @@ -1,10 +1,10 @@ PRGNAM="python3-setuptools-git-versioning" -VERSION="2.0.0" +VERSION="2.1.0" HOMEPAGE="https://setuptools-git-versioning.readthedocs.io" -DOWNLOAD="https://files.pythonhosted.org/packages/source/s/setuptools-git-versioning/setuptools-git-versioning-2.0.0.tar.gz" -MD5SUM="9b8bbc38938f700595c2b00fae73637f" +DOWNLOAD="https://files.pythonhosted.org/packages/source/s/setuptools_git_versioning/setuptools_git_versioning-2.1.0.tar.gz" +MD5SUM="fa2116c239f9ffb655bdb4b6f2ff3bf4" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="python3-build python3-wheel python3-toml" +REQUIRES="python3-build python3-wheel python3-tomli-opt" MAINTAINER="fourtysixandtwo" EMAIL="fourtysixandtwo@sliderr.net" |