diff mbox series

[meta-python,3/4] python3-dbus-fast: Fix build with cython 3.1

Message ID 20250518173309.3600728-3-raj.khem@gmail.com
State New
Headers show
Series [meta-python,1/4] python3-pandas: Upgrade to 2.2.3 | expand

Commit Message

Khem Raj May 18, 2025, 5:33 p.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...emove-upper-version-constraint-for-C.patch | 33 +++++++++++++++++++
 .../python/python3-dbus-fast_2.44.1.bb        |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-dbus-fast/0001-pyproject.toml-Remove-upper-version-constraint-for-C.patch
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-dbus-fast/0001-pyproject.toml-Remove-upper-version-constraint-for-C.patch b/meta-python/recipes-devtools/python/python3-dbus-fast/0001-pyproject.toml-Remove-upper-version-constraint-for-C.patch
new file mode 100644
index 0000000000..fb8f4df4a6
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-dbus-fast/0001-pyproject.toml-Remove-upper-version-constraint-for-C.patch
@@ -0,0 +1,33 @@ 
+From 85189fb66d3abb2645605f8a3c14d8152ef755fe Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sun, 18 May 2025 10:24:19 -0700
+Subject: [PATCH] pyproject.toml: Remove upper version constraint for Cython
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ pyproject.toml | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index e22ea42..f670d3d 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -50,7 +50,7 @@ pytest-cov = ">=3,<7"
+ pytest-asyncio = ">=0.19,<0.27"
+ pycairo = "^1.21.0"
+ PyGObject = {version = ">=3.50,<3.51", python = "<4"}
+-Cython = ">=3,<3.1.0"
++Cython = ">=3"
+ setuptools = ">=65.4.1,<79.0.0"
+ pytest-timeout = "^2.1.0"
+ pytest-codspeed = "^3.1.1"
+@@ -104,7 +104,7 @@ module = "docs.*"
+ ignore_errors = true
+ 
+ [build-system]
+-requires = ['setuptools>=65.4.1', 'wheel', 'Cython>=3,<3.1.0', "poetry-core>=1.0.0"]
++requires = ['setuptools>=65.4.1', 'wheel', 'Cython>=3', "poetry-core>=1.0.0"]
+ build-backend = "poetry.core.masonry.api"
+ 
+ [tool.ruff]
diff --git a/meta-python/recipes-devtools/python/python3-dbus-fast_2.44.1.bb b/meta-python/recipes-devtools/python/python3-dbus-fast_2.44.1.bb
index 95f1eafebd..f827d21bb2 100644
--- a/meta-python/recipes-devtools/python/python3-dbus-fast_2.44.1.bb
+++ b/meta-python/recipes-devtools/python/python3-dbus-fast_2.44.1.bb
@@ -3,6 +3,7 @@  HOMEPAGE = "https://github.com/bluetooth-devices/dbus-fast"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=729e372b5ea0168438e4fd4a00a04947"
 
+SRC_URI += "file://0001-pyproject.toml-Remove-upper-version-constraint-for-C.patch"
 SRC_URI[sha256sum] = "b027e96c39ed5622bb54d811dcdbbe9d9d6edec3454808a85a1ceb1867d9e25c"
 
 PYPI_PACKAGE = "dbus_fast"