diff mbox series

[01/11] python3-click: allow building with flit_core 4

Message ID 20261129192114.12997-2-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. Upstream
declined the same change, as for the other pallets projects.

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 | 29 +++++++++++++++++++
 .../python/python3-click_8.5.1.bb             |  1 +
 2 files changed, 30 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-click/0001-pyproject.toml-allow-building-with-flit_core-4.patch
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-click/0001-pyproject.toml-allow-building-with-flit_core-4.patch b/meta/recipes-devtools/python/python3-click/0001-pyproject.toml-allow-building-with-flit_core-4.patch
new file mode 100644
index 0000000000..5b87c2bcef
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-click/0001-pyproject.toml-allow-building-with-flit_core-4.patch
@@ -0,0 +1,29 @@ 
+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
+
+Not submitted to click: the Pallets maintainers declined this change
+for Jinja (issue #2232 closed as not planned, PRs #2231 and #2233
+closed), and click pins flit_core <4 the same way.
+
+Upstream-Status: Denied [https://github.com/pallets/jinja/issues/2232]
+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 b41d72a..0955bb2 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -60,7 +60,7 @@ typing = [
+ ]
+ 
+ [build-system]
+-requires = ["flit_core>=3.11,<4"]
++requires = ["flit_core>=3.11,<5"]
+ build-backend = "flit_core.buildapi"
+ 
+ [tool.flit.module]
diff --git a/meta/recipes-devtools/python/python3-click_8.5.1.bb b/meta/recipes-devtools/python/python3-click_8.5.1.bb
index 29cf0714d0..fa511450fd 100644
--- a/meta/recipes-devtools/python/python3-click_8.5.1.bb
+++ b/meta/recipes-devtools/python/python3-click_8.5.1.bb
@@ -8,6 +8,7 @@  HOMEPAGE = "http://click.pocoo.org/"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1fa98232fd645608937a0fdc82e999b8"
 
+SRC_URI += "file://0001-pyproject.toml-allow-building-with-flit_core-4.patch"
 SRC_URI[sha256sum] = "9bbfada76703fd1d784b83eea012e3e8c6a001a876543ef104fa56aaaeb072b4"
 
 inherit pypi python_flit_core ptest-python-pytest