diff mbox series

[meta-python,21/26] python3-twitter: allow building with flit_core 4

Message ID 20261129192919.14731-22-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. 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 | 24 +++++++++++++++++++
 .../python/python3-twitter_4.17.0.bb          |  1 +
 2 files changed, 25 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-twitter/0001-pyproject.toml-allow-building-with-flit_core-4.patch
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-twitter/0001-pyproject.toml-allow-building-with-flit_core-4.patch b/meta-python/recipes-devtools/python/python3-twitter/0001-pyproject.toml-allow-building-with-flit_core-4.patch
new file mode 100644
index 0000000000..01c2400599
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-twitter/0001-pyproject.toml-allow-building-with-flit_core-4.patch
@@ -0,0 +1,24 @@ 
+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/tweepy/tweepy/pull/2240]
+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 9543f45..d622563 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -56,6 +56,6 @@ Documentation = "https://docs.tweepy.org"
+ Homepage = "https://tweepy.org"
+ 
+ [build-system]
+-requires = ["flit_core<4"]
++requires = ["flit_core<5"]
+ build-backend = "flit_core.buildapi"
+ 
diff --git a/meta-python/recipes-devtools/python/python3-twitter_4.17.0.bb b/meta-python/recipes-devtools/python/python3-twitter_4.17.0.bb
index 18375edc61..3c4832ae45 100644
--- a/meta-python/recipes-devtools/python/python3-twitter_4.17.0.bb
+++ b/meta-python/recipes-devtools/python/python3-twitter_4.17.0.bb
@@ -4,6 +4,7 @@  DESCRIPTION = "Python module to support twitter API"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=48c84b17f84a9a623754604ab73f28fe"
 
+SRC_URI += "file://0001-pyproject.toml-allow-building-with-flit_core-4.patch"
 SRC_URI[sha256sum] = "c232e9fffa0b15b81d5ff8ec59d46af85e330285ffc3e64614d2418fb9af71b5"
 
 PYPI_PACKAGE = "tweepy"