diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2023-12-03 21:46:32 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-12-09 07:49:06 +0700 |
commit | f781e701d9e4e3c8d0222abd874fbd77aaae829a (patch) | |
tree | 59b3740305516ad427c84eba2c8d6ece2072bdbc /python | |
parent | b05b1a5480f2ceb2f4d2baf68225760d989b1658 (diff) |
python/termcolor: Updated for version 2.4.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/termcolor/termcolor.SlackBuild | 13 | ||||
-rw-r--r-- | python/termcolor/termcolor.info | 10 |
2 files changed, 10 insertions, 13 deletions
diff --git a/python/termcolor/termcolor.SlackBuild b/python/termcolor/termcolor.SlackBuild index b60b8e3817c1..905909344770 100644 --- a/python/termcolor/termcolor.SlackBuild +++ b/python/termcolor/termcolor.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for termcolor -# Copyright 2013-2019 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2013-2023 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=termcolor -VERSION=${VERSION:-1.1.0} +VERSION=${VERSION:-2.4.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,17 +79,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 {} \; -python setup.py install --root=$PKG - -if $(python3 -c 'import sys' 2>/dev/null); then - python3 setup.py install --root=$PKG -fi +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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.rst PKG-INFO COPYING.txt CHANGES.rst $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md PKG-INFO COPYING.txt CHANGES.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/termcolor/termcolor.info b/python/termcolor/termcolor.info index 66de26f4a5bb..23b459dc98df 100644 --- a/python/termcolor/termcolor.info +++ b/python/termcolor/termcolor.info @@ -1,10 +1,10 @@ PRGNAM="termcolor" -VERSION="1.1.0" +VERSION="2.4.0" HOMEPAGE="https://pypi.org/project/termcolor/" -DOWNLOAD="https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz" -MD5SUM="043e89644f8909d462fbbfa511c768df" +DOWNLOAD="https://files.pythonhosted.org/packages/10/56/d7d66a84f96d804155f6ff2873d065368b25a07222a6fd51c4f24ef6d764/termcolor-2.4.0.tar.gz" +MD5SUM="1d567737d43835549d2fd1bc87ec6c7d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="python3-hatch_vcs" MAINTAINER="Dimitris Zlatanidis" -EMAIL="d.zlatanidis@gmail.com" +EMAIL="dslackw@gmail.com" |