summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author isaackwy2024-01-06 05:24:11 +0100
committer Willy Sudiarto Raharjo2024-01-08 03:40:29 +0100
commit6a688282f4a9a034cebb8b86332d34a229f58b97 (patch)
tree39af6f99bb77ef5a1d77608cf028598af6d5107e
parent6d15c7bce4eaccb45a89f6dcdc6d38089edb3825 (diff)
downloadslackbuilds-6a688282f4a9a034cebb8b86332d34a229f58b97.tar.gz
python/python3-webcolors: Update for 1.13
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/python3-webcolors/README3
-rw-r--r--python/python3-webcolors/python3-webcolors.SlackBuild9
-rw-r--r--python/python3-webcolors/python3-webcolors.info8
3 files changed, 10 insertions, 10 deletions
diff --git a/python/python3-webcolors/README b/python/python3-webcolors/README
index 25e2fcfaa5..5dcea6b62c 100644
--- a/python/python3-webcolors/README
+++ b/python/python3-webcolors/README
@@ -1,4 +1 @@
webcolors is a module for working with HTML/CSS color definitions.
-
-python3-webcolors 1.1.2 is the last possible version for Slackware 15.0.
-Newer versions would require a newer python-setuptools.
diff --git a/python/python3-webcolors/python3-webcolors.SlackBuild b/python/python3-webcolors/python3-webcolors.SlackBuild
index 15179cd638..cd59c36121 100644
--- a/python/python3-webcolors/python3-webcolors.SlackBuild
+++ b/python/python3-webcolors/python3-webcolors.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for python3-webcolors
-# Copyright 2022 Isaac Yu <isaacyu@protonmail.com>
+# Copyright 2022-2024 Isaac Yu <isaacyu@protonmail.com>
# 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-webcolors
-VERSION=${VERSION:-1.12}
+VERSION=${VERSION:-1.13}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -78,7 +78,10 @@ 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
+export PYTHONPATH=/opt/python3.9/site-packages/
+
+python3 -m build --no-isolation
+python3 -m installer -d "$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/python3-webcolors/python3-webcolors.info b/python/python3-webcolors/python3-webcolors.info
index fb67efc414..3f86a43166 100644
--- a/python/python3-webcolors/python3-webcolors.info
+++ b/python/python3-webcolors/python3-webcolors.info
@@ -1,10 +1,10 @@
PRGNAM="python3-webcolors"
-VERSION="1.12"
+VERSION="1.13"
HOMEPAGE="https://github.com/ubernostrum/webcolors"
-DOWNLOAD="https://github.com/ubernostrum/webcolors/archive/1.12/webcolors-1.12.tar.gz"
-MD5SUM="7e330313ce1689d19d2823b329a5e342"
+DOWNLOAD="https://github.com/ubernostrum/webcolors/archive/1.13/webcolors-1.13.tar.gz"
+MD5SUM="8afdb7951961563dc2c1e48bda407cb8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3-setuptools-opt"
MAINTAINER="Isaac Yu"
EMAIL="isaacyu@protonmail.com"