diff mbox series

[meta-python,04/26] python3-asyncinotify: allow building with flit_core 4

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

Commit Message

Tim Orling Nov. 29, 2026, 7:28 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 | 22 +++++++++++++++++++
 .../python/python3-asyncinotify_4.4.4.bb      |  1 +
 2 files changed, 23 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-asyncinotify/0001-pyproject.toml-allow-building-with-flit_core-4.patch
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-asyncinotify/0001-pyproject.toml-allow-building-with-flit_core-4.patch b/meta-python/recipes-devtools/python/python3-asyncinotify/0001-pyproject.toml-allow-building-with-flit_core-4.patch
new file mode 100644
index 0000000000..7dcae5bc2e
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-asyncinotify/0001-pyproject.toml-allow-building-with-flit_core-4.patch
@@ -0,0 +1,22 @@ 
+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 b87e15c..f766b2b 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -39,4 +39,4 @@ documentation = 'https://asyncinotify.readthedocs.io/'
+ 
+ [build-system]
+ build-backend = "flit_core.buildapi"
+-requires = ["flit_core >=3.12,<4"]
++requires = ["flit_core >=3.12,<5"]
diff --git a/meta-python/recipes-devtools/python/python3-asyncinotify_4.4.4.bb b/meta-python/recipes-devtools/python/python3-asyncinotify_4.4.4.bb
index 5a51601f47..8b9234f944 100644
--- a/meta-python/recipes-devtools/python/python3-asyncinotify_4.4.4.bb
+++ b/meta-python/recipes-devtools/python/python3-asyncinotify_4.4.4.bb
@@ -3,6 +3,7 @@  HOMEPAGE = "https://gitlab.com/Taywee/asyncinotify"
 LICENSE = "MPL-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f75d2927d3c1ed2414ef72048f5ad640"
 
+SRC_URI += "file://0001-pyproject.toml-allow-building-with-flit_core-4.patch"
 SRC_URI[sha256sum] = "a8afc92bec6666807ca50524156fca22655325cba6e2b51d842b8ec0d399c708"
 
 inherit pypi python_flit_core