network/twine: Updated for version 5.0.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
5ef4209d01
commit
786439f3cd
|
@ -1,5 +0,0 @@
|
|||
from setuptools import setup
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
setup()
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for twine
|
||||
|
||||
# Copyright 2016-2022 Dimitris Zlatanidis Orestiada, Greece
|
||||
# Copyright 2016-2024 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=twine
|
||||
VERSION=${VERSION:-4.0.2}
|
||||
VERSION=${VERSION:-5.0.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -71,7 +71,6 @@ mkdir -p $TMP $PKG $OUTPUT
|
|||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cp $CWD/setup.py $PRGNAM-$VERSION
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
|
@ -80,7 +79,8 @@ 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
|
||||
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
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="twine"
|
||||
VERSION="4.0.2"
|
||||
VERSION="5.0.0"
|
||||
HOMEPAGE="https://github.com/pypa/twine"
|
||||
DOWNLOAD="https://files.pythonhosted.org/packages/b7/1a/a7884359429d801cd63c2c5512ad0a337a509994b0e42d9696d4778d71f6/twine-4.0.2.tar.gz"
|
||||
MD5SUM="f38ded461689ecb781d107e92ccb7eeb"
|
||||
DOWNLOAD="https://files.pythonhosted.org/packages/d3/cc/8025ad5102a5c754023092143b8b511e184ec087dfbfb357d7d88fb82bff/twine-5.0.0.tar.gz"
|
||||
MD5SUM="692f628c3708beca5f9073b0988e8f8f"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="pkginfo requests-toolbelt readme_renderer python3-keyring python-importlib_metadata python3-rfc3986 python3-rich"
|
||||
|
|
Loading…
Reference in New Issue