diff mbox series

[meta-python,24/32] python3-platformdirs: upgrade 4.14.5 -> 4.14.8

Message ID 20261127041614.1775064-25-khem.raj@oss.qualcomm.com
State New
Headers show
Series Upstream checks, upgrades and ptest fixes | expand

Commit Message

Khem Raj Nov. 27, 2026, 4:16 a.m. UTC
Hardens user-dirs.dirs and WIN_PD_OVERRIDE_* parsing, checks the
parents of runtime and POSIX user directories, and writes a PEP 770 SBOM
into the wheel with python-sbom, whose hatch hook the build now
requires; add python3-python-sbom-native to DEPENDS.

New tests mock Path.mkdir for system directories and only pass as a
non-root user; as root, which ptests run as, os.lstat() fails on the
directory the mock never created. Deselect
test_system_site_dir_keeps_default_mode and
test_site_data_dir_default_ensure_exists_creates_only_the_first_entry.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../recipes-devtools/python/python3-platformdirs/run-ptest  | 6 +++++-
 ...latformdirs_4.14.5.bb => python3-platformdirs_4.14.8.bb} | 3 ++-
 2 files changed, 7 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-platformdirs_4.14.5.bb => python3-platformdirs_4.14.8.bb} (82%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
index fa98212711..ea0dae2066 100644
--- a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
+++ b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
@@ -1,4 +1,8 @@ 
 #!/bin/sh
 
+# The *keeps_default_mode / creates_only_the_first_entry tests mock Path.mkdir
+# and only pass as non-root; ptests run as root
 pytest --automake \
-       --deselect tests/test_pytest_plugin.py::test_import_before_pytest_main
+       --deselect tests/test_pytest_plugin.py::test_import_before_pytest_main \
+       --deselect tests/test_api.py::test_system_site_dir_keeps_default_mode \
+       --deselect tests/test_unix.py::test_site_data_dir_default_ensure_exists_creates_only_the_first_entry
diff --git a/meta-python/recipes-devtools/python/python3-platformdirs_4.14.5.bb b/meta-python/recipes-devtools/python/python3-platformdirs_4.14.8.bb
similarity index 82%
rename from meta-python/recipes-devtools/python/python3-platformdirs_4.14.5.bb
rename to meta-python/recipes-devtools/python/python3-platformdirs_4.14.8.bb
index be9e043d87..4866770e1e 100644
--- a/meta-python/recipes-devtools/python/python3-platformdirs_4.14.5.bb
+++ b/meta-python/recipes-devtools/python/python3-platformdirs_4.14.8.bb
@@ -3,7 +3,7 @@  HOMEPAGE = "https://github.com/platformdirs/platformdirs"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
 
-SRC_URI[sha256sum] = "32e9921db7385aa8169bee4fe9501923e5715ba9fb7ea3b9c69b0d8e0639f7a1"
+SRC_URI[sha256sum] = "96893d686e84e9e6f358a9ea41a8de544df66dbf2ba6cda250e7dc73acf85b9b"
 
 inherit pypi python_hatchling ptest-python-pytest
 
@@ -12,6 +12,7 @@  SRC_URI += "file://run-ptest"
 DEPENDS += " \
     python3-hatch-fancy-pypi-readme-native \
     python3-hatch-vcs-native \
+    python3-python-sbom-native \
 "
 
 RDEPENDS:${PN}-ptest += " \