]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python3-packaging: upgrade 25.0 -> 26.0
authorRoss Burton <ross.burton@arm.com>
Tue, 10 Feb 2026 14:49:20 +0000 (14:49 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Feb 2026 12:30:37 +0000 (12:30 +0000)
Skip the testcase test_pylock.py as this depends on tomli_w, which isn't
currently part of core.

Upstream changelog:

Features:

* PEP 751: support pylock
* PEP 794: import name metadata
* Support for writing metadata to a file
* Support __replace__ on Version
* Support positional pattern matching for Version and SpecifierSet

Behavior adaptations:

* PEP 440 handling of prereleases for Specifier.contains,
  SpecifierSet.contains, and SpecifierSet.filter
* Handle PEP 440 edge case in SpecifierSet.filter
* Adjust arbitrary equality intersection preservation in SpecifierSet
* Return False instead of raising for .contains with invalid version
* Support arbitrary equality on arbitrary strings for Specifier and
  SpecifierSet's filter and contains method.
* Only try to parse as Version on certain marker keys, return False on
  unequal ordered comparisons

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3-packaging_26.0.bb [moved from meta/recipes-devtools/python/python3-packaging_25.0.bb with 78% similarity]

similarity index 78%
rename from meta/recipes-devtools/python/python3-packaging_25.0.bb
rename to meta/recipes-devtools/python/python3-packaging_26.0.bb
index 9cb5c68f5869b56e25b1fb0c90919ebfac5c872c..1a1b58a13df7daaa533c3c1e892a1cac5e21998f 100644 (file)
@@ -3,21 +3,20 @@ HOMEPAGE = "https://github.com/pypa/packaging"
 LICENSE = "Apache-2.0 | BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91"
 
-SRC_URI[sha256sum] = "d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f"
+SRC_URI[sha256sum] = "00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4"
 
 SRC_URI += "file://run-ptest.in"
 
 inherit pypi python_flit_core ptest
 
-BBCLASSEXTEND = "native nativesdk"
-
 # Bootstrap the native build
 DEPENDS:remove:class-native = "python3-build-native"
 RDEPENDS:${PN} += "python3-profile"
 
+# This test needs tomli_w which isn't currently in meta/
+SKIPLIST = "--ignore=tests/test_pylock.py"
 # https://github.com/pypa/packaging/issues/850
-SKIPLIST ?= ""
-SKIPLIST:libc-musl = "--deselect tests/test_manylinux.py::test_is_manylinux_compatible_old --ignore=tests/test_tags.py"
+SKIPLIST:append:libc-musl = " --deselect tests/test_manylinux.py::test_is_manylinux_compatible_old --ignore=tests/test_tags.py"
 
 do_compile:class-native () {
     python_flit_core_do_manual_build
@@ -41,3 +40,5 @@ RDEPENDS:${PN}-ptest = "\
 # The ptest package contains prebuilt test binaries
 INSANE_SKIP:${PN} = "already-stripped"
 INSANE_SKIP:${PN}-ptest = "arch"
+
+BBCLASSEXTEND = "native nativesdk"