Skip to content

Commit

Permalink
python/python3-webcolors: Update for 24.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
isaackwy committed Nov 11, 2024
1 parent 0068f2d commit 70cce8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 2 additions & 5 deletions python/python3-webcolors/python3-webcolors.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=python3-webcolors
VERSION=${VERSION:-24.8.0}
VERSION=${VERSION:-24.11.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
Expand Down Expand Up @@ -64,17 +64,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 {} \;

PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
export PYTHONPATH=/opt/python$PYVER/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

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CONTRIBUTING.rst README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
Expand Down
8 changes: 4 additions & 4 deletions python/python3-webcolors/python3-webcolors.info
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
PRGNAM="python3-webcolors"
VERSION="24.8.0"
VERSION="24.11.1"
HOMEPAGE="https://github.com/ubernostrum/webcolors"
DOWNLOAD="https://github.com/ubernostrum/webcolors/archive/24.8.0/webcolors-24.8.0.tar.gz"
MD5SUM="7f042cef7571d27c4bca54e513610417"
DOWNLOAD="https://github.com/ubernostrum/webcolors/archive/24.11.1/webcolors-24.11.1.tar.gz"
MD5SUM="780b4324258e78d50f7aab5fadf76773"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-setuptools-opt"
REQUIRES="python3-pdm-backend"
MAINTAINER="Isaac Yu"
EMAIL="isaacyu@protonmail.com"

0 comments on commit 70cce8b

Please sign in to comment.