diff options
author | Jeremy Hansen <jebrhansen+github@gmail.com> | 2024-04-01 17:07:07 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-04-04 10:55:21 +0700 |
commit | 25feb285bc2fb0fb0284e4b268349d6bd897cff0 (patch) | |
tree | 60a97f413faa88b3601a3b7b445f14aea0721a67 /python/python3-validators/python3-validators.SlackBuild | |
parent | b3a9b60b681aeb1a9cc1383ec218b06bdad880d0 (diff) |
python/python3-validators: Version bump to 0.28.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-validators/python3-validators.SlackBuild')
-rw-r--r-- | python/python3-validators/python3-validators.SlackBuild | 11 |
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 |