diff mbox series

[meta-python,3/4] python3-pychromecast: Relax build requirements

Message ID 20260709063251.3218170-3-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,1/4] python3-httptools: Relax setuptools upper bound in build requirements | expand

Commit Message

Khem Raj July 9, 2026, 6:32 a.m. UTC
The upstream pyproject.toml caps setuptools at <83.0, but OE builds with
--no-isolation against the native setuptools (now 83.0.0), so the build
fails with "Missing dependencies: setuptools<83.0,>=65.6". Drop the
spurious upper bound.

Fold this into the existing wheel-version relaxation so pyproject.toml is
adjusted by a single patch.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...1-pyproject.toml-relax-build-requirements.patch} | 13 +++++++++----
 .../python/python3-pychromecast_14.0.10.bb          |  2 +-
 2 files changed, 10 insertions(+), 5 deletions(-)
 rename meta-python/recipes-devtools/python/python3-pychromecast/{0001-Allow-building-with-wheel-0.47.patch => 0001-pyproject.toml-relax-build-requirements.patch} (55%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pychromecast/0001-Allow-building-with-wheel-0.47.patch b/meta-python/recipes-devtools/python/python3-pychromecast/0001-pyproject.toml-relax-build-requirements.patch
similarity index 55%
rename from meta-python/recipes-devtools/python/python3-pychromecast/0001-Allow-building-with-wheel-0.47.patch
rename to meta-python/recipes-devtools/python/python3-pychromecast/0001-pyproject.toml-relax-build-requirements.patch
index cfb201dfe0..74e8f4d438 100644
--- a/meta-python/recipes-devtools/python/python3-pychromecast/0001-Allow-building-with-wheel-0.47.patch
+++ b/meta-python/recipes-devtools/python/python3-pychromecast/0001-pyproject.toml-relax-build-requirements.patch
@@ -1,9 +1,14 @@ 
 From a82451e8f2db33e22fef6714ddbd35a3e03debff Mon Sep 17 00:00:00 2001
 From: Khem Raj <khem.raj@oss.qualcomm.com>
 Date: Thu, 14 May 2026 11:49:05 -0700
-Subject: [PATCH] Allow building with wheel 0.47+
+Subject: [PATCH] pyproject.toml: Relax build requirements

-Upstream-Status: Pending
+Allow building with wheel 0.47+ and drop the upstream setuptools upper
+cap. OE provides setuptools via DEPENDS and builds with --no-isolation,
+so the cap is spurious and breaks the build whenever oe-core ships a
+newer setuptools (currently 83.0.0).
+
+Upstream-Status: Inappropriate [oe-core specific dependency versions]

 Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
 ---
@@ -17,7 +22,7 @@  index 20524ca..fc62798 100644
 @@ -1,5 +1,5 @@
  [build-system]
 -requires = ["setuptools>=65.6,<83.0", "wheel>=0.37.1,<0.47.0"]
-+requires = ["setuptools>=65.6,<83.0", "wheel>=0.37.1,<0.48.0"]
++requires = ["setuptools>=65.6", "wheel>=0.37.1,<0.48.0"]
  build-backend = "setuptools.build_meta"
-
+
  [project]
diff --git a/meta-python/recipes-devtools/python/python3-pychromecast_14.0.10.bb b/meta-python/recipes-devtools/python/python3-pychromecast_14.0.10.bb
index 5b1d780b86..1c607b9bb9 100644
--- a/meta-python/recipes-devtools/python/python3-pychromecast_14.0.10.bb
+++ b/meta-python/recipes-devtools/python/python3-pychromecast_14.0.10.bb
@@ -3,7 +3,7 @@  HOMEPAGE = "https://github.com/balloob/pychromecast"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=b1dbd4e85f47b389bdadee9c694669f5"

-SRC_URI += "file://0001-Allow-building-with-wheel-0.47.patch"
+SRC_URI += "file://0001-pyproject.toml-relax-build-requirements.patch"
 SRC_URI[sha256sum] = "f05a1c8d727d4f104c8c731688053033e05157f2ab81bc8eef50ec0c62f9373c"

 inherit pypi python_setuptools_build_meta