* update cython to 3.0.11-1

This commit is contained in:
Alexander Baldeck 2024-09-22 14:17:54 +02:00
parent 213046d40a
commit 7283772879
4 changed files with 52 additions and 4 deletions

25
python/cython/.SRCINFO Normal file
View File

@ -0,0 +1,25 @@
pkgbase = cython
pkgdesc = C-Extensions for Python
pkgver = 3.0.11
pkgrel = 1
url = https://cython.org
arch = x86_64
license = Apache-2.0
checkdepends = gdb
checkdepends = python-numpy
checkdepends = python-pytest
checkdepends = python-tests
makedepends = git
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
makedepends = python-wheel
depends = glibc
depends = python
replaces = cython-dev
source = git+https://github.com/cython/cython#tag=3.0.11
source = numpy-2.patch
sha256sums = 8f6bc386d85aaf9bbab8174bc3f8c771204b0bedacd6e7502261a5fdcc4d9c75
sha256sums = 6f98a6cc46d0d65a01a1fb5ac9f40e6d2612f80a34ad8e95bd9ad1116e24855d
pkgname = cython

View File

@ -0,0 +1,3 @@
[cython]
source = 'pypi'
pypi = 'cython'

View File

@ -4,8 +4,8 @@
# Contributor: Igor Scabini <furester @ gmail.com>
pkgname=cython
pkgver=3.0.10
pkgrel=5
pkgver=3.0.11
pkgrel=1
pkgdesc='C-Extensions for Python'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://cython.org'
@ -22,8 +22,15 @@ checkdepends=(gdb
python-numpy
python-pytest
python-tests)
source=(git+https://github.com/cython/cython#tag=$pkgver)
sha256sums=('e2cfd1ac69cc31cc3762cf2fa8355228f046748cae7e48622b78f57908b38a64')
source=(git+https://github.com/cython/cython#tag=$pkgver
numpy-2.patch)
sha256sums=('8f6bc386d85aaf9bbab8174bc3f8c771204b0bedacd6e7502261a5fdcc4d9c75'
'6f98a6cc46d0d65a01a1fb5ac9f40e6d2612f80a34ad8e95bd9ad1116e24855d')
prepare() {
cd cython
patch -p1 -i ../numpy-2.patch # Fix tests with numpy 2
}
build() {
cd cython

View File

@ -0,0 +1,13 @@
diff --git a/tests/run/ufunc.pyx b/tests/run/ufunc.pyx
index f489a07d5..47bb0bfbc 100644
--- a/tests/run/ufunc.pyx
+++ b/tests/run/ufunc.pyx
@@ -125,7 +125,7 @@ def test_plus_one_twice():
>>> 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))
+ (np.complex128(1+1j), np.complex128(1+1j))
2D variant skipped because it's hard to sensible doctest
"""