From f174bcd0a374a8ada97b3fce98868c239cbb9906 Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Sat, 18 Jan 2025 12:36:08 -0700 Subject: python/python3-setuptools-git-versioning: Updated for version 2.1.0. Signed-off-by: Willy Sudiarto Raharjo --- .../python3-setuptools-git-versioning.SlackBuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'python/python3-setuptools-git-versioning/python3-setuptools-git-versioning.SlackBuild') 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 +# Copyright 2024-2025 fourtysixandtwo # 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 -- cgit v1.2.3