diff mbox series

[meta-python,5/9] python3-marshmallow: Upgrade 4.3.1 -> 4.4.0

Message ID 20261203075150.3403376-6-khem.raj@oss.qualcomm.com
State New
Headers show
Series Recipe upgrades and dependency fixes for meta-python | expand

Commit Message

Khem Raj Dec. 3, 2026, 7:51 a.m. UTC
Features:
- Simplify get_value to match actual usage.

Bug fixes:
- Raise ValidationError (not ValueError) for NaN in TimeDelta.
- Fix Pluck handling of an empty data_key.

Other changes:
- Drop support for Python 3.10; the Python < 3.11 only dependencies
  (backports-datetime-fromisoformat, typing-extensions) are gone.

The build requirement is now flit_core>=4,<5 while oe-core ships
flit_core 3.12, so pyproject-build refuses to build. Add a patch that
accepts flit_core 3.12 as well; the project only uses static [project]
metadata.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...l-Allow-building-with-flit_core-3.12.patch | 25 +++++++++++++++++++
 ..._4.3.1.bb => python3-marshmallow_4.4.0.bb} |  3 ++-
 2 files changed, 27 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-marshmallow/0001-pyproject.toml-Allow-building-with-flit_core-3.12.patch
 rename meta-python/recipes-devtools/python/{python3-marshmallow_4.3.1.bb => python3-marshmallow_4.4.0.bb} (85%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-marshmallow/0001-pyproject.toml-Allow-building-with-flit_core-3.12.patch b/meta-python/recipes-devtools/python/python3-marshmallow/0001-pyproject.toml-Allow-building-with-flit_core-3.12.patch
new file mode 100644
index 0000000000..4ce1ecc91f
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-marshmallow/0001-pyproject.toml-Allow-building-with-flit_core-3.12.patch
@@ -0,0 +1,25 @@ 
+From: Khem Raj <khem.raj@oss.qualcomm.com>
+Date: Tue, 1 Dec 2026 23:00:00 -0800
+Subject: [PATCH] pyproject.toml: Allow building with flit_core 3.12
+
+marshmallow 4.4.0 raised the build requirement to flit_core>=4,<5, but
+oe-core still ships flit_core 3.12, which handles the static [project]
+metadata used here. Accept both 3.12 and 4.x.
+
+Upstream-Status: Inappropriate [oe-core specific]
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -55,7 +55,7 @@
+ exclude-newer = "1 week"
+ 
+ [build-system]
+-requires = ["flit_core>=4,<5"]
++requires = ["flit_core>=3.12,<5"]
+ build-backend = "flit_core.buildapi"
+ 
+ [tool.flit.sdist]
diff --git a/meta-python/recipes-devtools/python/python3-marshmallow_4.3.1.bb b/meta-python/recipes-devtools/python/python3-marshmallow_4.4.0.bb
similarity index 85%
rename from meta-python/recipes-devtools/python/python3-marshmallow_4.3.1.bb
rename to meta-python/recipes-devtools/python/python3-marshmallow_4.4.0.bb
index 67263d6dd9..309be0d3c3 100644
--- a/meta-python/recipes-devtools/python/python3-marshmallow_4.3.1.bb
+++ b/meta-python/recipes-devtools/python/python3-marshmallow_4.4.0.bb
@@ -6,7 +6,8 @@  LIC_FILES_CHKSUM = "\
                     file://LICENSE;md5=27586b20700d7544c06933afe56f7df4 \
                     file://docs/license.rst;md5=13da439ad060419fb7cf364523017cfb"
 
-SRC_URI[sha256sum] = "fb6b8048af08d4ab061610d5b7d3696a7e4c95337dbda880edb9f95812cabc20"
+SRC_URI += "file://0001-pyproject.toml-Allow-building-with-flit_core-3.12.patch"
+SRC_URI[sha256sum] = "9e6ffa8511012ca89732324c1c253efd7b4d35632dcbdf80aa793fe01804af3e"
 
 CVE_PRODUCT = "marshmallow"