diff mbox series

python3-typing-extensions: Fix build with flit-core 4

Message ID 20260905184328.3263998-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series python3-typing-extensions: Fix build with flit-core 4 | expand

Commit Message

Khem Raj Sept. 5, 2026, 6:43 p.m. UTC
Fixes
 ERROR Unmet dependencies
|       flit_core<4,>=3.11
|               wanted: <4,>=3.11
|               found: 4.0.2

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...4d71b18eee56c53dde6a609dea188bb26a96.patch | 21 +++++++++++++++++++
 .../python3-typing-extensions_4.16.0.bb       |  2 ++
 2 files changed, 23 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-typing-extensions/996d4d71b18eee56c53dde6a609dea188bb26a96.patch

Comments

Richard Purdie Sept. 5, 2026, 8:40 p.m. UTC | #1
On Sat, 2026-09-05 at 11:43 -0700, Khem Raj via lists.openembedded.org wrote:
> Fixes
>  ERROR Unmet dependencies
> >       flit_core<4,>=3.11
> >               wanted: <4,>=3.11
> >               found: 4.0.2
> 
> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
> ---
>  ...4d71b18eee56c53dde6a609dea188bb26a96.patch | 21 +++++++++++++++++++
>  .../python3-typing-extensions_4.16.0.bb       |  2 ++
>  2 files changed, 23 insertions(+)
>  create mode 100644 meta/recipes-devtools/python/python3-typing-extensions/996d4d71b18eee56c53dde6a609dea188bb26a96.patch
> 
> diff --git a/meta/recipes-devtools/python/python3-typing-extensions/996d4d71b18eee56c53dde6a609dea188bb26a96.patch b/meta/recipes-devtools/python/python3-typing-extensions/996d4d71b18eee56c53dde6a609dea188bb26a96.patch
> new file mode 100644
> index 0000000000..226c65c13c
> --- /dev/null
> +++ b/meta/recipes-devtools/python/python3-typing-extensions/996d4d71b18eee56c53dde6a609dea188bb26a96.patch
> @@ -0,0 +1,21 @@
> +From 996d4d71b18eee56c53dde6a609dea188bb26a96 Mon Sep 17 00:00:00 2001
> +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/pull/787]
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +---
> + pyproject.toml | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +--- 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 cede81e128..484f0164bc 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
> @@ -15,6 +15,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=fcf6b249c2641540219a727f35d8d2c2"
>  # The name on PyPi is slightly different.
>  PYPI_PACKAGE = "typing_extensions"
>  
> +SRC_URI += "file://996d4d71b18eee56c53dde6a609dea188bb26a96.patch"
> +
>  SRC_URI[sha256sum] = "dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5"
>  
>  inherit pypi python_flit_core
> 

Thanks, I'm guessing this was in response to one of the patches in master-next?

I ran that flit upgrade through testing just to see where things stood,
it looks like there are 5 or so recipces which need this kind of tweak
so I've backed that out again.

Cheers,

Richard
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-typing-extensions/996d4d71b18eee56c53dde6a609dea188bb26a96.patch b/meta/recipes-devtools/python/python3-typing-extensions/996d4d71b18eee56c53dde6a609dea188bb26a96.patch
new file mode 100644
index 0000000000..226c65c13c
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-typing-extensions/996d4d71b18eee56c53dde6a609dea188bb26a96.patch
@@ -0,0 +1,21 @@ 
+From 996d4d71b18eee56c53dde6a609dea188bb26a96 Mon Sep 17 00:00:00 2001
+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/pull/787]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- 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 cede81e128..484f0164bc 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
@@ -15,6 +15,8 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=fcf6b249c2641540219a727f35d8d2c2"
 # The name on PyPi is slightly different.
 PYPI_PACKAGE = "typing_extensions"
 
+SRC_URI += "file://996d4d71b18eee56c53dde6a609dea188bb26a96.patch"
+
 SRC_URI[sha256sum] = "dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5"
 
 inherit pypi python_flit_core