diff mbox series

python3-packaging: upgrade 26.3 -> 26.4

Message ID 20261127224853.51596-1-tim.orling@konsulko.com
State New
Headers show
Series python3-packaging: upgrade 26.3 -> 26.4 | expand

Commit Message

Tim Orling Nov. 27, 2026, 10:48 p.m. UTC
Drop reliable-test.patch, it is upstream (pypa/packaging#1407).
Add DESCRIPTION from the upstream README.

Changelog: https://github.com/pypa/packaging/blob/26.4/CHANGELOG.rst
- Drop support for Python 3.9.
- Add markers.prepare_environment(), Marker.evaluate_prepared(),
  tags.interpreter_abi() and new VersionRange methods.
- Add __replace__ to Requirement, Specifier and SpecifierSet.
- Many fixes for specifiers, markers, metadata, tags and pylock.
- Lazy imports on Python 3.15+, faster parsing.

Tested with core-image-ptest-python3-packaging on qemux86-64.

AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 .../python3-packaging/reliable-test.patch     | 79 -------------------
 ...ging_26.3.bb => python3-packaging_26.4.bb} |  9 ++-
 2 files changed, 6 insertions(+), 82 deletions(-)
 delete mode 100644 meta/recipes-devtools/python/python3-packaging/reliable-test.patch
 rename meta/recipes-devtools/python/{python3-packaging_26.3.bb => python3-packaging_26.4.bb} (78%)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-packaging/reliable-test.patch b/meta/recipes-devtools/python/python3-packaging/reliable-test.patch
deleted file mode 100644
index f830917f97..0000000000
--- a/meta/recipes-devtools/python/python3-packaging/reliable-test.patch
+++ /dev/null
@@ -1,79 +0,0 @@ 
-From ef837aad3127167671eb37b9f6bd8a94ec7ce26e Mon Sep 17 00:00:00 2001
-From: Louis Deconinck <louis.dck@gmail.com>
-Date: Tue, 13 Oct 2026 21:17:05 +0200
-Subject: [PATCH] test: avoid filtering compatible release examples (#1407)
-
-Assisted-by: Codex
-
-Signed-off-by: Louis Deconinck <louis.dck@gmail.com>
-
-Upstream-Status: Backport [https://github.com/pypa/packaging/pull/1407]
-Signed-off-by: Ross Burton <ross.burton@arm.com>
----
- tests/property/strategies.py              | 13 ++++++++++++-
- tests/property/test_specifier_matching.py |  7 ++++---
- 2 files changed, 16 insertions(+), 4 deletions(-)
-
-diff --git a/tests/property/strategies.py b/tests/property/strategies.py
-index 4ce828b76..b42b6dcb4 100644
---- a/tests/property/strategies.py
-+++ b/tests/property/strategies.py
-@@ -85,9 +85,11 @@ def pep440_versions(
-     *,
-     include_local: bool = True,
-     min_segments: int = 1,
-+    epoch: int | None = None,
- ) -> Version:
-     """Generate a random PEP 440 version."""
--    epoch = draw(st.sampled_from([None, 0, 1, 2, 3]))
-+    if epoch is None:
-+        epoch = draw(st.sampled_from([None, 0, 1, 2, 3]))
-     num_segments = draw(st.integers(min_value=min_segments, max_value=4))
-     release = tuple(draw(small_ints) for _ in range(num_segments))
- 
-@@ -153,6 +155,15 @@ def multi_segment_versions(draw: st.DrawFn) -> Version:
-     return v
- 
- 
-+@st.composite
-+def compatible_release_version_pairs(draw: st.DrawFn) -> tuple[Version, Version]:
-+    """Generate compatible-release examples whose versions share an epoch."""
-+    epoch = draw(st.integers(min_value=0, max_value=3))
-+    spec_ver = draw(pep440_versions(include_local=False, min_segments=2, epoch=epoch))
-+    candidate = draw(pep440_versions(epoch=epoch))
-+    return spec_ver, candidate
-+
-+
- @st.composite
- def versions_with_local(draw: st.DrawFn) -> Version:
-     """Generate a PEP 440 version that always has a local segment."""
-diff --git a/tests/property/test_specifier_matching.py b/tests/property/test_specifier_matching.py
-index 4552ce8ce..d85eadaa7 100644
---- a/tests/property/test_specifier_matching.py
-+++ b/tests/property/test_specifier_matching.py
-@@ -12,6 +12,7 @@
- from packaging.version import Version
- from tests.property.strategies import (
-     SETTINGS,
-+    compatible_release_version_pairs,
-     multi_segment_versions,
-     nonlocal_versions,
-     ops,
-@@ -198,14 +199,14 @@ class TestCompatibleReleaseDefinition:
-     and a version identifier. It matches any candidate version that is expected
-     to be compatible with the specified version."""
- 
--    @given(spec_ver=multi_segment_versions(), candidate=pep440_versions())
-+    @given(versions=compatible_release_version_pairs())
-     @SETTINGS
-     def test_compatible_release_matches_expected_compatible(
--        self, spec_ver: Version, candidate: Version
-+        self, versions: tuple[Version, Version]
-     ) -> None:
-         """~=V matches candidate iff candidate >= V and candidate matches the
-         prefix wildcard derived from V."""
--        assume(spec_ver.epoch == candidate.epoch)
-+        spec_ver, candidate = versions
-         spec = Specifier(f"~={spec_ver}")
-         result = candidate in spec
-         # Also check via the expanded form
diff --git a/meta/recipes-devtools/python/python3-packaging_26.3.bb b/meta/recipes-devtools/python/python3-packaging_26.4.bb
similarity index 78%
rename from meta/recipes-devtools/python/python3-packaging_26.3.bb
rename to meta/recipes-devtools/python/python3-packaging_26.4.bb
index 628d8d7aa1..daeb250127 100644
--- a/meta/recipes-devtools/python/python3-packaging_26.3.bb
+++ b/meta/recipes-devtools/python/python3-packaging_26.4.bb
@@ -1,12 +1,15 @@ 
 SUMMARY = "Core utilities for Python packages"
+DESCRIPTION = "\
+Reusable core utilities for the Python packaging interoperability \
+specifications: version handling, specifiers, markers, requirements, \
+tags, metadata, lockfiles and other utilities."
 HOMEPAGE = "https://github.com/pypa/packaging"
 LICENSE = "Apache-2.0 OR BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91"
 
-SRC_URI[sha256sum] = "94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79"
+SRC_URI[sha256sum] = "c4b671c41ddb9bf26e543c37723610d28fb6bf7affc4da17cf048d419d2c062a"
 
-SRC_URI += "file://run-ptest.in \
-            file://reliable-test.patch"
+SRC_URI += "file://run-ptest.in"
 
 inherit pypi python_flit_core ptest