diff mbox series

[03/11] python3-docutils: allow building with flit_core 4

Message ID 20261129192114.12997-4-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. 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 +++++++++++++++++++
 .../python/python3-docutils_0.23.bb           |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-docutils/0001-pyproject.toml-allow-building-with-flit_core-4.patch
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-docutils/0001-pyproject.toml-allow-building-with-flit_core-4.patch b/meta/recipes-devtools/python/python3-docutils/0001-pyproject.toml-allow-building-with-flit_core-4.patch
new file mode 100644
index 0000000000..132a55d73a
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-docutils/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 7827ebc..69e6296 100755
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -3,7 +3,7 @@
+ # Use flit as a build backend (https://flit.pypa.io/)
+ # Build with (https://build.pypa.io/)
+ [build-system]
+-requires = ["flit_core>=3.11,<4"]
++requires = ["flit_core>=3.11,<5"]
+ build-backend = "flit_core.buildapi"
+ 
+ # Project metadata
diff --git a/meta/recipes-devtools/python/python3-docutils_0.23.bb b/meta/recipes-devtools/python/python3-docutils_0.23.bb
index 27ed6c5514..4b4356fa40 100644
--- a/meta/recipes-devtools/python/python3-docutils_0.23.bb
+++ b/meta/recipes-devtools/python/python3-docutils_0.23.bb
@@ -4,6 +4,7 @@  SECTION = "devel/python"
 LICENSE = "BSD-2-Clause AND CC0-1.0 AND GPL-3.0-only"
 LIC_FILES_CHKSUM = "file://COPYING.rst;md5=ce467b04b35c7ac3429b6908fc8b318e"
 
+SRC_URI += "file://0001-pyproject.toml-allow-building-with-flit_core-4.patch"
 SRC_URI[sha256sum] = "746f5060322511280a1e50eb76846ed6bf2342984b2ac04dc42caa1a8d78799e"
 
 inherit pypi python_flit_core