diff mbox series

[meta-python,17/26] python3-python-xmp-toolkit: allow building with flit_core 4

Message ID 20261129192919.14731-18-tim.orling@konsulko.com
State New
Headers show
Series allow building with flit_core 4 | expand

Commit Message

Tim Orling Nov. 29, 2026, 7:29 p.m. UTC
Relax the flit_core <4 build requirement to <5. The project already uses
the [project] table, so nothing flit_core 4 removed affects it. There is
no upstream change yet.

Tested by building with flit_core 3.12.0 and 4.2.0.

AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 ...toml-allow-building-with-flit_core-4.patch | 25 +++++++++++++++++++
 .../python3-python-xmp-toolkit_2.1.0.bb       |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-python-xmp-toolkit/0001-pyproject.toml-allow-building-with-flit_core-4.patch
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-python-xmp-toolkit/0001-pyproject.toml-allow-building-with-flit_core-4.patch b/meta-python/recipes-devtools/python/python3-python-xmp-toolkit/0001-pyproject.toml-allow-building-with-flit_core-4.patch
new file mode 100644
index 0000000000..8575ead2b5
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-python-xmp-toolkit/0001-pyproject.toml-allow-building-with-flit_core-4.patch
@@ -0,0 +1,25 @@ 
+From: Tim Orling <tim.orling@konsulko.com>
+Subject: [PATCH] pyproject.toml: allow building with flit_core 4
+
+flit_core 4 only drops features this project does not use (the
+[tool.flit.metadata] table, sdists from VCS and --setup-py), so
+raise the upper bound to <5, as the flit 4.0 release notes suggest:
+https://flit.pypa.io/en/stable/history.html#version-4-0
+
+Upstream-Status: Pending
+AI-Generated: Uses Claude Code (Claude Opus 5.5)
+Signed-off-by: Tim Orling <tim.orling@konsulko.com>
+---
+diff --git a/pyproject.toml b/pyproject.toml
+index b97ede1..977366f 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -46,7 +46,7 @@ test = [
+ ]
+ 
+ [build-system]
+-requires = ["flit_core >=3.2,<4"]
++requires = ["flit_core >=3.2,<5"]
+ build-backend = "flit_core.buildapi"
+ 
+ [tool.flit.module]
diff --git a/meta-python/recipes-devtools/python/python3-python-xmp-toolkit_2.1.0.bb b/meta-python/recipes-devtools/python/python3-python-xmp-toolkit_2.1.0.bb
index 6a2853cf4b..eb5922ab39 100644
--- a/meta-python/recipes-devtools/python/python3-python-xmp-toolkit_2.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-python-xmp-toolkit_2.1.0.bb
@@ -4,6 +4,7 @@  HOMEPAGE = "https://github.com/python-xmp-toolkit/python-xmp-toolkit"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=30fa74de63728af31f13dc3bb8cb1756"
 
+SRC_URI += "file://0001-pyproject.toml-allow-building-with-flit_core-4.patch"
 SRC_URI[sha256sum] = "ca0aa2c60d418dd2558767db59953ab5954fb5b87dc0b50cecd60566b0b4e2da"
 
 inherit pypi python_flit_core ptest-python-pytest