From 25feb285bc2fb0fb0284e4b268349d6bd897cff0 Mon Sep 17 00:00:00 2001 From: Jeremy Hansen Date: Mon, 1 Apr 2024 17:07:07 -0700 Subject: python/python3-validators: Version bump to 0.28.0 Signed-off-by: Willy Sudiarto Raharjo --- python/python3-validators/python3-validators.SlackBuild | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'python/python3-validators/python3-validators.SlackBuild') diff --git a/python/python3-validators/python3-validators.SlackBuild b/python/python3-validators/python3-validators.SlackBuild index ff4cf5f3d3..201533021c 100644 --- a/python/python3-validators/python3-validators.SlackBuild +++ b/python/python3-validators/python3-validators.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-validators -VERSION=${VERSION:-0.23.2} +VERSION=${VERSION:-0.28.0} SRCNAM=${SRCNAM:-validators} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -67,6 +67,13 @@ find -L . \ # Requres python/python3-setuptools-opt build-time dependency export PYTHONPATH=/opt/python3.9/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 + python3 -m build --wheel --no-isolation python3 -m installer --destdir=$PKG dist/*.whl @@ -75,7 +82,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - CHANGES.md LICENSE.txt README.md SECURITY.md \ + CHANGES.md LICENSE.txt README.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3