diff options
author | Jeremy Hansen <jebrhansen+github@gmail.com> | 2025-02-14 11:58:32 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2025-02-15 16:48:53 +0700 |
commit | 2a22cbaa73899b7c95ad48026d005acd7153b997 (patch) | |
tree | 58609380099b01ffd7984aa8c40e015fd4786a90 /python | |
parent | 4f2721e82bf43183469d78a5b406ba4433a938eb (diff) |
python/python3-evdev: Version bump to 1.9.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/python3-evdev/python3-evdev.SlackBuild | 13 | ||||
-rw-r--r-- | python/python3-evdev/python3-evdev.info | 6 |
2 files changed, 14 insertions, 5 deletions
diff --git a/python/python3-evdev/python3-evdev.SlackBuild b/python/python3-evdev/python3-evdev.SlackBuild index d243b7f2f8..b39ecbcf98 100644 --- a/python/python3-evdev/python3-evdev.SlackBuild +++ b/python/python3-evdev/python3-evdev.SlackBuild @@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-evdev -VERSION=${VERSION:-1.8.0} +VERSION=${VERSION:-1.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -74,7 +74,16 @@ find -L . -perm 660 -exec chmod 644 {} \; PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') export PYTHONPATH=/opt/python$PYVER/site-packages/ -python3 setup.py install --root=$PKG +# 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 find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/python/python3-evdev/python3-evdev.info b/python/python3-evdev/python3-evdev.info index 440812c14c..2a4eb71666 100644 --- a/python/python3-evdev/python3-evdev.info +++ b/python/python3-evdev/python3-evdev.info @@ -1,8 +1,8 @@ PRGNAM="python3-evdev" -VERSION="1.8.0" +VERSION="1.9.0" HOMEPAGE="http://python-evdev.readthedocs.org/en/latest/" -DOWNLOAD="https://files.pythonhosted.org/packages/source/e/evdev/evdev-1.8.0.tar.gz" -MD5SUM="a38ac9e2297940430bb27cea41be964e" +DOWNLOAD="https://files.pythonhosted.org/packages/source/e/evdev/evdev-1.9.0.tar.gz" +MD5SUM="c1440732b435dad5796bbb8e91d0340b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="python3-setuptools-opt" |