diff mbox series

[07/11] python3-typing-extensions: allow building with flit_core 4

Message ID 20261129192114.12997-8-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. This
backports the upstream change.

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>
---
 ...ng-this-package-with-flit-core-4-787.patch | 19 +++++++++++++++++++
 .../python3-typing-extensions_4.16.0.bb       |  1 +
 2 files changed, 20 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-typing-extensions/0001-Allow-building-this-package-with-flit-core-4-787.patch
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-typing-extensions/0001-Allow-building-this-package-with-flit-core-4-787.patch b/meta/recipes-devtools/python/python3-typing-extensions/0001-Allow-building-this-package-with-flit-core-4-787.patch
new file mode 100644
index 0000000000..1b2d0d5252
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-typing-extensions/0001-Allow-building-this-package-with-flit-core-4-787.patch
@@ -0,0 +1,19 @@ 
+From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
+Date: Mon, 24 Aug 2026 18:40:42 +0200
+Subject: [PATCH] Allow building this package with flit-core 4 (#787)
+
+Upstream-Status: Backport [https://github.com/python/typing_extensions/commit/996d4d71b18eee56c53dde6a609dea188bb26a96]
+Signed-off-by: Tim Orling <tim.orling@konsulko.com>
+---
+diff --git a/pyproject.toml b/pyproject.toml
+index f8a4c45..473079e 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,6 +1,6 @@
+ # Build system requirements.
+ [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-typing-extensions_4.16.0.bb b/meta/recipes-devtools/python/python3-typing-extensions_4.16.0.bb
index 1e11251f5b..da2253cb20 100644
--- a/meta/recipes-devtools/python/python3-typing-extensions_4.16.0.bb
+++ b/meta/recipes-devtools/python/python3-typing-extensions_4.16.0.bb
@@ -12,6 +12,7 @@  SECTIONS = "libs"
 LICENSE = "PSF-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=fcf6b249c2641540219a727f35d8d2c2"
 
+SRC_URI += "file://0001-Allow-building-this-package-with-flit-core-4-787.patch"
 SRC_URI[sha256sum] = "dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5"
 
 inherit pypi python_flit_core