aboutsummaryrefslogtreecommitdiff
path: root/python/python3-validators/python3-validators.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-validators/python3-validators.SlackBuild')
-rw-r--r--python/python3-validators/python3-validators.SlackBuild11
1 files changed, 9 insertions, 2 deletions
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