diff mbox series

[06/11] python3-sphinx-argparse: allow building with flit_core 4

Message ID 20261129192114.12997-7-tim.orling@konsulko.com
State New
Headers show
Series python3-flit-core: upgrade to 4.2.0, fix recipes that pin flit_core <4 | expand

Commit Message

Tim Orling Nov. 29, 2026, 7:21 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. The same
change is proposed upstream.

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 | 23 +++++++++++++++++++
 .../python/python3-sphinx-argparse_0.6.1.bb   |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-sphinx-argparse/0001-pyproject.toml-allow-building-with-flit_core-4.patch
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-sphinx-argparse/0001-pyproject.toml-allow-building-with-flit_core-4.patch b/meta/recipes-devtools/python/python3-sphinx-argparse/0001-pyproject.toml-allow-building-with-flit_core-4.patch
new file mode 100644
index 0000000000..f2240c6a58
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-sphinx-argparse/0001-pyproject.toml-allow-building-with-flit_core-4.patch
@@ -0,0 +1,23 @@ 
+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: Submitted [https://github.com/sphinx-doc/sphinx-argparse/pull/102]
+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 bf368bd..3a1c9ad 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["flit_core >= 3.10, <4"]
++requires = ["flit_core >= 3.10, <5"]
+ build-backend = "flit_core.buildapi"
+ 
+ # project metadata
diff --git a/meta/recipes-devtools/python/python3-sphinx-argparse_0.6.1.bb b/meta/recipes-devtools/python/python3-sphinx-argparse_0.6.1.bb
index c3af27584b..f61b94229b 100644
--- a/meta/recipes-devtools/python/python3-sphinx-argparse_0.6.1.bb
+++ b/meta/recipes-devtools/python/python3-sphinx-argparse_0.6.1.bb
@@ -3,6 +3,7 @@  HOMEPAGE = "https://sphinx-argparse.readthedocs.io/"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=5c1cd8f13774629fee215681e66a1056"
 
+SRC_URI += "file://0001-pyproject.toml-allow-building-with-flit_core-4.patch"
 SRC_URI[sha256sum] = "f8be167aedf5670bd7c812ef515968ff4717c63cfc9cb4df5f34b54fd5649c37"
 
 inherit pypi python_flit_core