diff --git a/python/python3-fasteners/python3-fasteners.SlackBuild b/python/python3-fasteners/python3-fasteners.SlackBuild index 55c6f61fe1..34b2ae2155 100644 --- a/python/python3-fasteners/python3-fasteners.SlackBuild +++ b/python/python3-fasteners/python3-fasteners.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-fasteners -# Copyright 2019-2022 Pouria Rezaei +# Copyright 2019-2024 Pouria Rezaei # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-fasteners -VERSION=${VERSION:-0.17.3} +VERSION=${VERSION:-0.19} SRCNAM=fasteners BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -72,10 +72,14 @@ 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 -c 'from setuptools import setup; setup()' 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CHANGELOG LICENSE MANIFEST.in README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGELOG.md LICENSE MANIFEST.in README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/python/python3-fasteners/python3-fasteners.info b/python/python3-fasteners/python3-fasteners.info index 92582b34c4..6aabf4ed04 100644 --- a/python/python3-fasteners/python3-fasteners.info +++ b/python/python3-fasteners/python3-fasteners.info @@ -1,10 +1,10 @@ PRGNAM="python3-fasteners" -VERSION="0.17.3" +VERSION="0.19" HOMEPAGE="https://github.com/harlowja/fasteners/" -DOWNLOAD="https://files.pythonhosted.org/packages/bd/f4/148f44998c1bdb064a508e7cbcf9e50b34572b3d36fcc378a5d61b7dc8c5/fasteners-0.17.3.tar.gz" -MD5SUM="3822d6ed0cf530d625e574a390f8f6fb" +DOWNLOAD="https://files.pythonhosted.org/packages/5f/d4/e834d929be54bfadb1f3e3b931c38e956aaa3b235a46a3c764c26c774902/fasteners-0.19.tar.gz" +MD5SUM="e957e11c2e00629e44166e1d2881798e" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="python3-monotonic" +REQUIRES="python3-setuptools-opt python3-monotonic" MAINTAINER="Pouria Rezaei" EMAIL="Pouria.rz@outlook.com"