From ba2dba13579a52db4463be1f45ec5d14d2a4301e Mon Sep 17 00:00:00 2001 From: Sandro Date: Wed, 25 Dec 2024 13:57:51 +0100 Subject: [PATCH 01/20] Apply patch for NumPy 2.x test failure It appears to be a cosmetic issue rather than a real failure. --- ...86242ee46cc16f0a6efef7eb40a5ab3c57d5.patch | 24 +++++++++++++++++++ Cython.spec | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 852286242ee46cc16f0a6efef7eb40a5ab3c57d5.patch diff --git a/852286242ee46cc16f0a6efef7eb40a5ab3c57d5.patch b/852286242ee46cc16f0a6efef7eb40a5ab3c57d5.patch new file mode 100644 index 0000000..5442c4c --- /dev/null +++ b/852286242ee46cc16f0a6efef7eb40a5ab3c57d5.patch @@ -0,0 +1,24 @@ +From 852286242ee46cc16f0a6efef7eb40a5ab3c57d5 Mon Sep 17 00:00:00 2001 +From: da-woods +Date: Wed, 25 Dec 2024 12:12:11 +0000 +Subject: [PATCH] Backport ufunc Numpy2 fix + +--- + tests/run/ufunc.pyx | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/run/ufunc.pyx b/tests/run/ufunc.pyx +index f489a07d5e4..b1895ee7903 100644 +--- a/tests/run/ufunc.pyx ++++ b/tests/run/ufunc.pyx +@@ -124,8 +124,8 @@ def test_plus_one_twice(): + Test a function returning a fused ctuple + >>> plus_one_twice(int_arr_1d) # doctest: +ELLIPSIS + (array([ 1, 5, 9, 13, 17]...), array([ 1, 5, 9, 13, 17]...)) +- >>> plus_one_twice(1.j) +- ((1+1j), (1+1j)) ++ >>> print(*plus_one_twice(1.j)) ++ (1+1j) (1+1j) + + 2D variant skipped because it's hard to sensible doctest + """ diff --git a/Cython.spec b/Cython.spec index 5f252de..166d3e8 100644 --- a/Cython.spec +++ b/Cython.spec @@ -13,6 +13,10 @@ License: Apache-2.0 URL: http://www.cython.org Source: https://github.com/cython/cython/archive/%{version}/Cython-%{version}.tar.gz +# Backport patch for NumPy 2.x +# https://github.com/cython/cython/issues/6581 +Patch: https://github.com/cython/cython/commit/852286242ee46cc16f0a6efef7eb40a5ab3c57d5.patch + BuildRequires: python3-devel %if %{with tests} From 3c76406608406d20a47bed36723bcb05a61e7856 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 08:31:37 +0000 Subject: [PATCH 02/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 295d3360cf15709ea61e6e464c995c7da328839a Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Thu, 27 Feb 2025 08:07:06 -0500 Subject: [PATCH 03/20] On 32-bit (ix86), reduce debuginfo level in %check - Fixes RHBZ#2339845 by avoiding memory exhaustion in test_many_expressions --- Cython.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cython.spec b/Cython.spec index 166d3e8..9bdea1e 100644 --- a/Cython.spec +++ b/Cython.spec @@ -100,6 +100,13 @@ Provides: bundled(python3dist(tempita)) %if %{with tests} %check +%if 0%{?__isa_bits} < 64 +# On 32-bit platforms, with their inherent ~4GB/process address space +# limitation, at least test_many_expressions fails due to memory exhaustion +# unless we reduce the debuginfo level (RHBZ#2339845). +export CFLAGS="${CFLAGS} -g1" +%endif + # run.pstats_profile_test* fails on Python 3.12 # https://github.com/cython/cython/issues/5470 # run.numpy_parallel fails on i686 From 99c8abe3b79ac156b88b45cbca6bb14728f63d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 6 Mar 2025 19:25:38 +0100 Subject: [PATCH 04/20] Avoid accidentally including bogus *.txt files as documentation - Include README.rst and CHANGES.rst instead This avoids packaging: COPYING.txt and LICENSE.txt (already installed as %license) INSTALL.txt (not relevant) ToDo.txt (original from pyrex) doc-requirements.txt test-requirements-27.txt test-requirements-312.txt test-requirements-34.txt test-requirements-36.txt test-requirements-cpython.txt test-requirements-pypy27.txt test-requirements.txt --- Cython.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython.spec b/Cython.spec index 9bdea1e..af0eb78 100644 --- a/Cython.spec +++ b/Cython.spec @@ -124,7 +124,7 @@ export CFLAGS="${CFLAGS} -g1" %files -n python3-cython -f %{pyproject_files} -%doc *.txt Demos Doc Tools +%doc README.rst CHANGES.rst USAGE.txt Demos Doc Tools %{_bindir}/cython %{_bindir}/cygdb %{_bindir}/cythonize From b472f69665155d13fc47b183c35a3df4c595ce2b Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Wed, 26 Mar 2025 22:43:04 +0100 Subject: [PATCH 05/20] Update to 3.0.12 - Fixes: rhbz#2344778 --- ...86242ee46cc16f0a6efef7eb40a5ab3c57d5.patch | 24 ------------------- Cython.spec | 6 +---- sources | 2 +- 3 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 852286242ee46cc16f0a6efef7eb40a5ab3c57d5.patch diff --git a/852286242ee46cc16f0a6efef7eb40a5ab3c57d5.patch b/852286242ee46cc16f0a6efef7eb40a5ab3c57d5.patch deleted file mode 100644 index 5442c4c..0000000 --- a/852286242ee46cc16f0a6efef7eb40a5ab3c57d5.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 852286242ee46cc16f0a6efef7eb40a5ab3c57d5 Mon Sep 17 00:00:00 2001 -From: da-woods -Date: Wed, 25 Dec 2024 12:12:11 +0000 -Subject: [PATCH] Backport ufunc Numpy2 fix - ---- - tests/run/ufunc.pyx | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/tests/run/ufunc.pyx b/tests/run/ufunc.pyx -index f489a07d5e4..b1895ee7903 100644 ---- a/tests/run/ufunc.pyx -+++ b/tests/run/ufunc.pyx -@@ -124,8 +124,8 @@ def test_plus_one_twice(): - Test a function returning a fused ctuple - >>> plus_one_twice(int_arr_1d) # doctest: +ELLIPSIS - (array([ 1, 5, 9, 13, 17]...), array([ 1, 5, 9, 13, 17]...)) -- >>> plus_one_twice(1.j) -- ((1+1j), (1+1j)) -+ >>> print(*plus_one_twice(1.j)) -+ (1+1j) (1+1j) - - 2D variant skipped because it's hard to sensible doctest - """ diff --git a/Cython.spec b/Cython.spec index af0eb78..46a91ad 100644 --- a/Cython.spec +++ b/Cython.spec @@ -5,7 +5,7 @@ %bcond cython_compile 1 Name: Cython -Version: 3.0.11 +Version: 3.0.12 Release: %autorelease Summary: Language for writing Python extension modules @@ -13,10 +13,6 @@ License: Apache-2.0 URL: http://www.cython.org Source: https://github.com/cython/cython/archive/%{version}/Cython-%{version}.tar.gz -# Backport patch for NumPy 2.x -# https://github.com/cython/cython/issues/6581 -Patch: https://github.com/cython/cython/commit/852286242ee46cc16f0a6efef7eb40a5ab3c57d5.patch - BuildRequires: python3-devel %if %{with tests} diff --git a/sources b/sources index a1c6015..fb14614 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Cython-3.0.11.tar.gz) = 8f7982af5be1db1072b1090257a9d487dc341d79522f442f4608303d18b388349a7d586ec74e66fbffd0ce88c00ca622202729907fe7cefef71828cfd3f68fe6 +SHA512 (Cython-3.0.12.tar.gz) = bbf2cc662b846cf5ff9b686046ec210ea9d3893482e2b5a2696d2ad44f12facd15075b168a3eb6d1f4ea799786f676868eab2593451bceb2937aec2cb1aea99e From 63e867fd03f4c19cbc7e22e5476420438243599a Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 2 Jun 2025 20:14:40 +0200 Subject: [PATCH 06/20] Bootstrap for Python 3.14 --- Cython.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/Cython.spec b/Cython.spec index 46a91ad..48ee6c4 100644 --- a/Cython.spec +++ b/Cython.spec @@ -1,3 +1,4 @@ +%global _without_tests 1 %bcond tests 1 # This bcond allows to ship a non-compiled version From 43375bfd29130a55ce0ca9af54dd8d5531a7ec0d Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 18 Jun 2025 15:50:46 +0200 Subject: [PATCH 07/20] Bootstrap for Python 3.14.0b3 bytecode From 8479a40394d9c8bb2612452d7b989f98ac8e1f66 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 21 Jul 2025 11:29:54 +0200 Subject: [PATCH 08/20] Unbootstrap for Python 3.14 --- Cython.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/Cython.spec b/Cython.spec index 48ee6c4..46a91ad 100644 --- a/Cython.spec +++ b/Cython.spec @@ -1,4 +1,3 @@ -%global _without_tests 1 %bcond tests 1 # This bcond allows to ship a non-compiled version From b19df3773ec8daab3444909d347283def4781523 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 15:44:56 +0000 Subject: [PATCH 09/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From eabd7d051ccf98f3787a53f5ef30ef5478e392ab Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Thu, 26 Jun 2025 02:56:19 +0200 Subject: [PATCH 10/20] Update to 3.1.2 - Fixes: rhbz#2365167, rhbz#2374314 --- Cython.spec | 2 +- sources | 2 +- tests/testsuite/main.fmf | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cython.spec b/Cython.spec index 46a91ad..caed175 100644 --- a/Cython.spec +++ b/Cython.spec @@ -5,7 +5,7 @@ %bcond cython_compile 1 Name: Cython -Version: 3.0.12 +Version: 3.1.2 Release: %autorelease Summary: Language for writing Python extension modules diff --git a/sources b/sources index fb14614..741a985 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Cython-3.0.12.tar.gz) = bbf2cc662b846cf5ff9b686046ec210ea9d3893482e2b5a2696d2ad44f12facd15075b168a3eb6d1f4ea799786f676868eab2593451bceb2937aec2cb1aea99e +SHA512 (Cython-3.1.2.tar.gz) = 52e840a77581d1ca435376750f54c5a231c357ab6c54ecfbc7383e202a83142ad30d0dc978a79360a66a7651bbe3fb0f4d786a24c1e34278253035572795a02e diff --git a/tests/testsuite/main.fmf b/tests/testsuite/main.fmf index 23d1dec..4f5b19b 100644 --- a/tests/testsuite/main.fmf +++ b/tests/testsuite/main.fmf @@ -12,8 +12,9 @@ require: - python3-pytest - flexiblas-devel # for pythran # ipython and pythran installed from PyPI, not available in RHEL + # Add ipython again when upstream resolves https://github.com/cython/cython/issues/7075 test: | - pip install ipython==8.24.0 pythran==0.15.0 && + pip install pythran==0.18.0 && cd $(dirname $TMT_SOURCE_DIR/cython-*/tests) && python3 runtests.py -vv --no-pyregr --exclude 'run.pstats_profile_test*' duration: 240m From 4131df38671a4fdd4e35559116b9e38a9ca993d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 22 Jul 2025 19:06:30 +0200 Subject: [PATCH 11/20] CI: Use blas-devel for pip-installed pythran [skip changelog] --- tests/testsuite/main.fmf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testsuite/main.fmf b/tests/testsuite/main.fmf index 4f5b19b..608f3c9 100644 --- a/tests/testsuite/main.fmf +++ b/tests/testsuite/main.fmf @@ -10,7 +10,7 @@ require: - python3-pip - python3-numpy - python3-pytest - - flexiblas-devel # for pythran + - blas-devel # for pythran # ipython and pythran installed from PyPI, not available in RHEL # Add ipython again when upstream resolves https://github.com/cython/cython/issues/7075 test: | From 5aacdf9933c2e35d17367edcd56bc39417a854bb Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Wed, 13 Aug 2025 15:06:04 +0200 Subject: [PATCH 12/20] Update to 3.1.3 - Fixes: rhbz#2388173 --- Cython.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython.spec b/Cython.spec index caed175..a4d8f18 100644 --- a/Cython.spec +++ b/Cython.spec @@ -5,7 +5,7 @@ %bcond cython_compile 1 Name: Cython -Version: 3.1.2 +Version: 3.1.3 Release: %autorelease Summary: Language for writing Python extension modules diff --git a/sources b/sources index 741a985..425750e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Cython-3.1.2.tar.gz) = 52e840a77581d1ca435376750f54c5a231c357ab6c54ecfbc7383e202a83142ad30d0dc978a79360a66a7651bbe3fb0f4d786a24c1e34278253035572795a02e +SHA512 (Cython-3.1.3.tar.gz) = 2f8b515441829f7a4f68fcb6cdcf6a2c6aaebde603f4e595fbadf6d5a81c1b8c9bdacc170354925c23ada4cc9497bbdf82fb6cc507b71a0fbb589b5d3988324e From df85e60d1024ff712b8d35303bb7611276107428 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 12:43:36 +0200 Subject: [PATCH 13/20] Rebuilt for Python 3.14.0rc2 bytecode From 36d2e823ed2bd0e80ee5853f7d5a19409faec1fa Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 12:12:56 +0200 Subject: [PATCH 14/20] Rebuilt for Python 3.14.0rc3 bytecode From d26d9ef002a4532488d300317e82bccc2308a831 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Wed, 8 Oct 2025 21:23:59 +0200 Subject: [PATCH 15/20] Update to 3.1.4 - Fixes: rhbz#2395654 --- Cython.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython.spec b/Cython.spec index a4d8f18..28e89e0 100644 --- a/Cython.spec +++ b/Cython.spec @@ -5,7 +5,7 @@ %bcond cython_compile 1 Name: Cython -Version: 3.1.3 +Version: 3.1.4 Release: %autorelease Summary: Language for writing Python extension modules diff --git a/sources b/sources index 425750e..78ef036 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Cython-3.1.3.tar.gz) = 2f8b515441829f7a4f68fcb6cdcf6a2c6aaebde603f4e595fbadf6d5a81c1b8c9bdacc170354925c23ada4cc9497bbdf82fb6cc507b71a0fbb589b5d3988324e +SHA512 (Cython-3.1.4.tar.gz) = 72bb19bea95bf30130204ed843fc5f608b8a012bb98a458f71ddd74846b87f9b5778a316cc9422065cafbb1b1abd3b7553f74405b175b604e74f78988366e528 From 9f329e2bce90537294f70fc055ca326e43b9b6b7 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Wed, 22 Oct 2025 20:21:56 +0200 Subject: [PATCH 16/20] Update to 3.1.6 - Fixes: rhbz#2405056 --- Cython.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython.spec b/Cython.spec index 28e89e0..bce9203 100644 --- a/Cython.spec +++ b/Cython.spec @@ -5,7 +5,7 @@ %bcond cython_compile 1 Name: Cython -Version: 3.1.4 +Version: 3.1.6 Release: %autorelease Summary: Language for writing Python extension modules diff --git a/sources b/sources index 78ef036..29d79b0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Cython-3.1.4.tar.gz) = 72bb19bea95bf30130204ed843fc5f608b8a012bb98a458f71ddd74846b87f9b5778a316cc9422065cafbb1b1abd3b7553f74405b175b604e74f78988366e528 +SHA512 (Cython-3.1.6.tar.gz) = d766b6aee3917b5ae98015d3ca837953baca340c7de0095fd55403ab77dfcc2446a09cd348afa2a640061cc5363887c370f90d4dfc62e317e86da8d668861a80 From c094a0ed36e5aec75b224e74497c5662079fad6c Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Wed, 5 Nov 2025 16:00:01 +0100 Subject: [PATCH 17/20] Update to 3.2.1 - Fixes: rhbz#2414622 --- Cython.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython.spec b/Cython.spec index bce9203..56644db 100644 --- a/Cython.spec +++ b/Cython.spec @@ -5,7 +5,7 @@ %bcond cython_compile 1 Name: Cython -Version: 3.1.6 +Version: 3.2.1 Release: %autorelease Summary: Language for writing Python extension modules diff --git a/sources b/sources index 29d79b0..86818f4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Cython-3.1.6.tar.gz) = d766b6aee3917b5ae98015d3ca837953baca340c7de0095fd55403ab77dfcc2446a09cd348afa2a640061cc5363887c370f90d4dfc62e317e86da8d668861a80 +SHA512 (Cython-3.2.1.tar.gz) = 78556141f3683d0ba2145ded3f475880d7f4e0a41929ba43a3904609da15332de6ef675d62348ce649a8498cc245a6e11c60123eb524e75994eb29a3587d42a8 From 88f4ce7f6fc3173bf20e0e2bcbc11d0f657df006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Mon, 15 Dec 2025 11:56:20 +0100 Subject: [PATCH 18/20] Update to 3.2.3 - Fixes: rhbz#2419172 --- Cython.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython.spec b/Cython.spec index 56644db..f00716b 100644 --- a/Cython.spec +++ b/Cython.spec @@ -5,7 +5,7 @@ %bcond cython_compile 1 Name: Cython -Version: 3.2.1 +Version: 3.2.3 Release: %autorelease Summary: Language for writing Python extension modules diff --git a/sources b/sources index 86818f4..9f07d97 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Cython-3.2.1.tar.gz) = 78556141f3683d0ba2145ded3f475880d7f4e0a41929ba43a3904609da15332de6ef675d62348ce649a8498cc245a6e11c60123eb524e75994eb29a3587d42a8 +SHA512 (Cython-3.2.3.tar.gz) = 5d81031ebf9f60fbcbc1dbc210c17aa62b75141dd787f2391adfae6d983778d7b88a36a1ba0dcc31596b8e731c03edfb4b24d2a3647eaf2a22d94b869c906461 From 2c6f91d207106cb57babd67723c876067ad6ae1e Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Thu, 15 Jan 2026 06:55:58 +0100 Subject: [PATCH 19/20] Update to 3.2.4 - Fixes: rhbz#2427014 --- Cython.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython.spec b/Cython.spec index f00716b..b46e0f2 100644 --- a/Cython.spec +++ b/Cython.spec @@ -5,7 +5,7 @@ %bcond cython_compile 1 Name: Cython -Version: 3.2.3 +Version: 3.2.4 Release: %autorelease Summary: Language for writing Python extension modules diff --git a/sources b/sources index 9f07d97..eca0943 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Cython-3.2.3.tar.gz) = 5d81031ebf9f60fbcbc1dbc210c17aa62b75141dd787f2391adfae6d983778d7b88a36a1ba0dcc31596b8e731c03edfb4b24d2a3647eaf2a22d94b869c906461 +SHA512 (Cython-3.2.4.tar.gz) = 5ab8e39739a79debbe89b2ff5b6d88e1b7aafd5ad34460f14f3fc2bd90c10bdc9d6aa5b5844a48e30402dde9790cb9abcba3dc2b4e8cde24c4eeee818a180099 From f7a8a27b267424a4680fe94fbf315d6ebe322b8d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 16 Jan 2026 02:31:09 +0000 Subject: [PATCH 20/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild