diff options
author | 2025-06-03 15:02:57 -0600 | |
---|---|---|
committer | 2025-06-07 12:27:16 +0700 | |
commit | 5a7a2e9ad54bbb6e60b596e7cbbb1ebecfa8ff75 (patch) | |
tree | ab5390a13187971910958655e861704e4a91c18a /python | |
parent | 7e7f795f843a29e10e4bc212a9b80f8564bce59b (diff) | |
download | slackbuilds-5a7a2e9ad54bbb6e60b596e7cbbb1ebecfa8ff75.tar.gz slackbuilds-5a7a2e9ad54bbb6e60b596e7cbbb1ebecfa8ff75.tar.xz |
python/importlib-resources: Updated for version 6.5.2.
Updated for maintainer who is not currently active.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/importlib-resources/importlib-resources.SlackBuild | 13 | ||||
-rw-r--r-- | python/importlib-resources/importlib-resources.info | 8 |
2 files changed, 11 insertions, 10 deletions
diff --git a/python/importlib-resources/importlib-resources.SlackBuild b/python/importlib-resources/importlib-resources.SlackBuild index 1bd0b4388d..dbf5550258 100644 --- a/python/importlib-resources/importlib-resources.SlackBuild +++ b/python/importlib-resources/importlib-resources.SlackBuild @@ -22,11 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20250531 46and2: Updated version, change to pep517 build. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=importlib-resources SRCNAM=$( printf %s $PRGNAM | tr - _ ) -VERSION=${VERSION:-5.1.0} +VERSION=${VERSION:-6.5.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +41,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -66,9 +65,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 {} \; -sed -i "s,^name =.*$,&\nversion = $VERSION," setup.cfg +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 +python3 -m build --no-isolation +python3 -m installer -d "$PKG" dist/*.whl mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -r LICENSE README.rst docs $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/python/importlib-resources/importlib-resources.info b/python/importlib-resources/importlib-resources.info index 8469aba168..6a0c3736e1 100644 --- a/python/importlib-resources/importlib-resources.info +++ b/python/importlib-resources/importlib-resources.info @@ -1,10 +1,10 @@ PRGNAM="importlib-resources" -VERSION="5.1.0" +VERSION="6.5.2" HOMEPAGE="https://pypi.org/project/importlib-resources/" -DOWNLOAD="https://files.pythonhosted.org/packages/e7/ef/8bf9f2469c2c0a1bf00c39b2a076f71c4e511a3014a296b50eb425a2633d/importlib_resources-5.1.0.tar.gz" -MD5SUM="a3ca1dce486f7fba1691938124e54133" +DOWNLOAD="https://files.pythonhosted.org/packages/source/i/importlib_resources/importlib_resources-6.5.2.tar.gz" +MD5SUM="6ba34e0f24dc7521a5e44e707ed0f28f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="python3-toml" +REQUIRES="python3-toml python-zipp" MAINTAINER="D Woodfall" EMAIL="dave@slackbuilds.org" |