diff options
Diffstat (limited to 'python/python3-plotly')
-rw-r--r-- | python/python3-plotly/python3-plotly.SlackBuild | 18 | ||||
-rw-r--r-- | python/python3-plotly/python3-plotly.info | 8 |
2 files changed, 13 insertions, 13 deletions
diff --git a/python/python3-plotly/python3-plotly.SlackBuild b/python/python3-plotly/python3-plotly.SlackBuild index 10867df4d3..fd2706caba 100644 --- a/python/python3-plotly/python3-plotly.SlackBuild +++ b/python/python3-plotly/python3-plotly.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-plotly -# Copyright 2024 Isaac Yu <isaacyu@protonmail.com> +# Copyright 2024-2025 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-plotly -VERSION=${VERSION:-5.24.1} +VERSION=${VERSION:-6.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -64,19 +64,19 @@ 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 {} \; -cd packages/python/plotly +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages -# Fix /etc/jupyter patch -sed 's|etc|/etc|' -i setup.py - -# Disable npm modules while installing plotly -SKIP_NPM=1 python3 setup.py install --root=$PKG +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 -install -Dm644 LICENSE.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md MIGRATION_GUIDE.md README.md RELEASE.md SECURITY.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-plotly/python3-plotly.info b/python/python3-plotly/python3-plotly.info index f56d7d92c5..05f393221c 100644 --- a/python/python3-plotly/python3-plotly.info +++ b/python/python3-plotly/python3-plotly.info @@ -1,10 +1,10 @@ PRGNAM="python3-plotly" -VERSION="5.24.1" +VERSION="6.0.1" HOMEPAGE="https://github.com/plotly/plotly.py" -DOWNLOAD="https://github.com/plotly/plotly.py/archive/v5.24.1/plotly.py-5.24.1.tar.gz" -MD5SUM="3a349bd6a7e482797ee63d1e45bda4ec" +DOWNLOAD="https://github.com/plotly/plotly.py/archive/v6.0.1/plotly.py-6.0.1.tar.gz" +MD5SUM="d59dea09bda8801794f1a71097656988" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="python3-tenacity" +REQUIRES="python3-narwhals" MAINTAINER="Isaac Yu" EMAIL="isaacyu@protonmail.com" |