From ed3ef6fa95680a5c907138ea101ca0ae4e5d7dea Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Tue, 29 Jul 2025 10:03:30 +0800 Subject: [PATCH] Upgraded cython to 3.0.x (cherry picked from commit 92991d9afbad98942a314f8ac80ab3b91c8158be) --- Upgraded-cython-to-3.0.x.patch | 22 ++++++++++++++++++++++ python-cassandra-driver.spec | 7 ++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 Upgraded-cython-to-3.0.x.patch diff --git a/Upgraded-cython-to-3.0.x.patch b/Upgraded-cython-to-3.0.x.patch new file mode 100644 index 0000000..68bb729 --- /dev/null +++ b/Upgraded-cython-to-3.0.x.patch @@ -0,0 +1,22 @@ +From 1798cf7464e53e01abf7f4c820b60d75beac37da Mon Sep 17 00:00:00 2001 +From: Brad Schoening <5796692+bschoening@users.noreply.github.com> +Date: Mon, 23 Sep 2024 16:50:12 -0400 +Subject: [PATCH] Upgraded cython to 3.0.x (#1221) + +--- + setup.py | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/setup.py b/setup.py +index 0e48c3c949..79fda90eac 100644 +--- a/setup.py ++++ b/setup.py +@@ -375,7 +375,7 @@ def run_setup(extensions): + # 1.) build_ext eats errors at compile time, letting the install complete while producing useful feedback + # 2.) there could be a case where the python environment has cython installed but the system doesn't have build tools + if pre_build_check(): +- cython_dep = 'Cython>=0.20,!=0.25,<0.30' ++ cython_dep = 'Cython>=3.0' + user_specified_cython_version = os.environ.get('CASS_DRIVER_ALLOWED_CYTHON_VERSION') + if user_specified_cython_version is not None: + cython_dep = 'Cython==%s' % (user_specified_cython_version,) diff --git a/python-cassandra-driver.spec b/python-cassandra-driver.spec index 9ae9202..bca4b1f 100644 --- a/python-cassandra-driver.spec +++ b/python-cassandra-driver.spec @@ -1,12 +1,14 @@ %global _empty_manifest_terminate_build 0 Name: python-cassandra-driver Version: 3.29.2 -Release: 1 +Release: 2 Summary: DataStax Driver for Apache Cassandra License: Apache-2.0 URL: http://github.com/datastax/python-driver Source0: https://files.pythonhosted.org/packages/b2/6f/d25121afaa2ea0741d05d2e9921a7ca9b4ce71634b16a8aaee21bd7af818/cassandra-driver-3.29.2.tar.gz Patch1: 0001-Increase-the-upper-limit-version-of-geomet.patch +# https://github.com/datastax/python-driver/pull/1221 +Patch2: Upgraded-cython-to-3.0.x.patch %description DataStax Driver for Apache Cassandra @@ -86,6 +88,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Tue Jul 29 2025 wangkai <13474090681@163.com> - 3.29.2-2 +- Upgraded cython to 3.0.x + * Sat Oct 12 2024 liudy - 3.29.2-1 - Update package to version 3.29.2 -- Gitee