aboutsummaryrefslogtreecommitdiffstats
path: root/python3-platformdirs
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-13 12:46:04 +0200
committerDanilo M. <danix@danix.xyz>2026-10-13 12:46:04 +0200
commit4b54f1164cf0f11e18b0c75637f75e84b14c019d (patch)
tree521fae8c7febde61d71dc15c18bcd78beb953e7b /python3-platformdirs
parent9b484912827418686bf9aaa8c8aa8f4840707bd2 (diff)
downloadmy-slackbuilds-4b54f1164cf0f11e18b0c75637f75e84b14c019d.tar.gz
my-slackbuilds-4b54f1164cf0f11e18b0c75637f75e84b14c019d.zip
python3-platformdirs: update to 4.13.0
Also restore the PYTHONPATH to /opt/python/site-packages so the --no-isolation build finds the hatchling/hatch-vcs/packaging backends on 15.0, where they come from the python3-*-opt packages.
Diffstat (limited to 'python3-platformdirs')
-rw-r--r--python3-platformdirs/python3-platformdirs.SlackBuild9
-rw-r--r--python3-platformdirs/python3-platformdirs.info6
2 files changed, 11 insertions, 4 deletions
diff --git a/python3-platformdirs/python3-platformdirs.SlackBuild b/python3-platformdirs/python3-platformdirs.SlackBuild
index 8973300..63e0837 100644
--- a/python3-platformdirs/python3-platformdirs.SlackBuild
+++ b/python3-platformdirs/python3-platformdirs.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-platformdirs
-VERSION=${VERSION:-4.12.2}
+VERSION=${VERSION:-4.13.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -67,6 +67,13 @@ find -L . \
# platformdirs uses hatch-vcs (setuptools-scm under the hood); provide the
# version so it doesn't need git tags. hatch-vcs writes src/platformdirs/version.py
# during the build, so no manual fixup is needed.
+#
+# On 15.0 the build backends (hatchling, hatch-vcs, packaging) come from the
+# python3-*-opt packages installed under /opt; point PYTHONPATH there so the
+# --no-isolation build finds them. -current ships them in the base and has no
+# such path, which is harmless.
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages
SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl
diff --git a/python3-platformdirs/python3-platformdirs.info b/python3-platformdirs/python3-platformdirs.info
index 19ba18c..52d7772 100644
--- a/python3-platformdirs/python3-platformdirs.info
+++ b/python3-platformdirs/python3-platformdirs.info
@@ -1,8 +1,8 @@
PRGNAM="python3-platformdirs"
-VERSION="4.12.2"
+VERSION="4.13.0"
HOMEPAGE="https://platformdirs.readthedocs.io/en/latest/"
-DOWNLOAD="https://files.pythonhosted.org/packages/source/p/platformdirs/platformdirs-4.12.2.tar.gz"
-MD5SUM="9d6b65f596852735dcdcb3109127d454"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/p/platformdirs/platformdirs-4.13.0.tar.gz"
+MD5SUM="5872f9a2772efb2608f4444b5339f833"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-hatchling python3-hatch_vcs python3-build python3-installer"