From 008cacc6027890284c11be4dfd62039645c2c779 Mon Sep 17 00:00:00 2001 From: Jeremy Hansen Date: Mon, 6 May 2024 23:54:23 -0700 Subject: python/python3-dogpile.cache: Version bump to 1.3.3 Signed-off-by: Willy Sudiarto Raharjo --- .../python3-dogpile.cache.SlackBuild | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'python/python3-dogpile.cache/python3-dogpile.cache.SlackBuild') diff --git a/python/python3-dogpile.cache/python3-dogpile.cache.SlackBuild b/python/python3-dogpile.cache/python3-dogpile.cache.SlackBuild index 2902d6c931..92b122b07b 100644 --- a/python/python3-dogpile.cache/python3-dogpile.cache.SlackBuild +++ b/python/python3-dogpile.cache/python3-dogpile.cache.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-dogpile.cache -VERSION=${VERSION:-1.3.2} +VERSION=${VERSION:-1.3.3} SRCNAM=${SRCNAM:-dogpile.cache} SRCVER=${SRCVER:-rel_$(echo $VERSION | tr . _)} BUILD=${BUILD:-1} @@ -66,6 +66,19 @@ find -L . \ PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') export PYTHONPATH=/opt/python$PYVER/site-packages/ +# Use newer, non-stock setuptools due to package requirements +# Requres python/python3-setuptools-opt build-time dependency +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages + +# Add unused section to avoid ERROR message from setuptools_scm +# Make it an if statement just in case upstream decides to update +# it and I don't notice. +if ! grep -qF "[tool.setuptools_scm]" pyproject.toml; then + echo "[tool.setuptools_scm]" >> pyproject.toml +fi +export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION + python3 -m build --wheel --no-isolation python3 -m installer --destdir "$PKG" dist/*.whl -- cgit v1.2.3