diff options
Diffstat (limited to 'python/autopep8')
-rw-r--r-- | python/autopep8/autopep8.SlackBuild | 10 | ||||
-rw-r--r-- | python/autopep8/autopep8.info | 8 |
2 files changed, 11 insertions, 7 deletions
diff --git a/python/autopep8/autopep8.SlackBuild b/python/autopep8/autopep8.SlackBuild index 0e5cea1d6b..f061bfdb13 100644 --- a/python/autopep8/autopep8.SlackBuild +++ b/python/autopep8/autopep8.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for autopep8 -# Copyright 2014-2023 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2014-2025 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=autopep8 -VERSION=${VERSION:-2.0.4} +VERSION=${VERSION:-2.3.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,7 +79,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python3 setup.py install --root=$PKG +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages + +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/autopep8/autopep8.info b/python/autopep8/autopep8.info index a1ec7f64f1..b783e45c2d 100644 --- a/python/autopep8/autopep8.info +++ b/python/autopep8/autopep8.info @@ -1,10 +1,10 @@ PRGNAM="autopep8" -VERSION="2.0.4" +VERSION="2.3.2" HOMEPAGE="https://github.com/hhatto/autopep8" -DOWNLOAD="https://files.pythonhosted.org/packages/e0/8a/9be661f5400867a09706e29f5ab99a59987fd3a4c337757365e7491fa90b/autopep8-2.0.4.tar.gz" -MD5SUM="45a33dcfdeeb3210fa1f63491e061715" +DOWNLOAD="https://files.pythonhosted.org/packages/50/d8/30873d2b7b57dee9263e53d142da044c4600a46f2d28374b3e38b023df16/autopep8-2.3.2.tar.gz" +MD5SUM="ca9de3bc225f7f92b7b8e39bdd49c0a6" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="pycodestyle" +REQUIRES="python3-setuptools-opt pycodestyle" MAINTAINER="Dimitris Zlatanidis" EMAIL="dslackw@gmail.com" |