From ae8a9cc10bd378dac1228cdd376a355964e5329b Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 28 Nov 2026 13:39:13 +0100 Subject: python3-platformdirs: update to 4.14.9 Strip the python-sbom build hook upstream added in 4.14.9. It only writes an SBOM into the wheel and python-sbom is not packaged. Co-Authored-By: Claude Opus 5.5 --- python3-platformdirs/python3-platformdirs.SlackBuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'python3-platformdirs/python3-platformdirs.SlackBuild') diff --git a/python3-platformdirs/python3-platformdirs.SlackBuild b/python3-platformdirs/python3-platformdirs.SlackBuild index 41b39c8..301a5af 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.14.5} +VERSION=${VERSION:-4.14.9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -64,6 +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 {} \; +# Since 4.14.9 upstream runs the python-sbom hatchling hook, which only +# writes a CycloneDX SBOM into the wheel's .dist-info. It is not packaged and +# nothing uses it at runtime, so drop it from the build requirements and the +# hook table. The grep stops the build (set -e) if the hook line is gone, +# so this strip gets revisited instead of silently doing nothing. +grep -q '^build\.hooks\.python-sbom' pyproject.toml +sed -i '/"python-sbom\[hatch\]/d; /^build\.hooks\.python-sbom/d' pyproject.toml + # 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. -- cgit v1.2.3