diff options
| author | Ewout ter Hoeven <e.m.terhoeven@student.tudelft.nl> | 2022-05-20 11:33:28 +0200 |
|---|---|---|
| committer | Ewout ter Hoeven <e.m.terhoeven@student.tudelft.nl> | 2022-05-20 11:33:28 +0200 |
| commit | ea18bb2a838b871153686d0feae4808a65ede777 (patch) | |
| tree | 7a48497688b2a962a1bd4dda053b4945fb5812b2 | |
| parent | ae8b9ce90dc2d5922def5db8cf7d4410c60b3e13 (diff) | |
| download | numpy-ea18bb2a838b871153686d0feae4808a65ede777.tar.gz | |
Tests/Docs: Update tests to Cython 0.29.30, mention in docs
Cython 0.29.30 is required for building Numpy with Python 3.11. This commit updates that in the core/tests/test_cython.py and random/tests/test_exending.py files.
It also mentions that Cython 0.29.30 is needed in the INSTALL documentation.
| -rw-r--r-- | INSTALL.rst.txt | 2 | ||||
| -rw-r--r-- | numpy/core/tests/test_cython.py | 4 | ||||
| -rw-r--r-- | numpy/random/tests/test_extending.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/INSTALL.rst.txt b/INSTALL.rst.txt index d688d9025..716c5df5b 100644 --- a/INSTALL.rst.txt +++ b/INSTALL.rst.txt @@ -20,7 +20,7 @@ Building NumPy requires the following installed software: e.g., on Debian/Ubuntu one needs to install both `python3` and `python3-dev`. On Windows and macOS this is normally not an issue. -2) Cython >= 0.29.28 +2) Cython >= 0.29.30 3) pytest__ (optional) 1.15 or later diff --git a/numpy/core/tests/test_cython.py b/numpy/core/tests/test_cython.py index 1b9501d92..a31d9460e 100644 --- a/numpy/core/tests/test_cython.py +++ b/numpy/core/tests/test_cython.py @@ -15,11 +15,11 @@ except ImportError: else: from numpy.compat import _pep440 - # Cython 0.29.24 is required for Python 3.10 and there are + # Cython 0.29.30 is required for Python 3.11 and there are # other fixes in the 0.29 series that are needed even for earlier # Python versions. # Note: keep in sync with the one in pyproject.toml - required_version = "0.29.24" + required_version = "0.29.30" if _pep440.parse(cython_version) < _pep440.Version(required_version): # too old or wrong cython, skip the test cython = None diff --git a/numpy/random/tests/test_extending.py b/numpy/random/tests/test_extending.py index 58adb66c7..04b13cb8c 100644 --- a/numpy/random/tests/test_extending.py +++ b/numpy/random/tests/test_extending.py @@ -32,11 +32,11 @@ except ImportError: cython = None else: from numpy.compat import _pep440 - # Cython 0.29.24 is required for Python 3.10 and there are + # Cython 0.29.30 is required for Python 3.11 and there are # other fixes in the 0.29 series that are needed even for earlier # Python versions. # Note: keep in sync with the one in pyproject.toml - required_version = '0.29.24' + required_version = '0.29.30' if _pep440.parse(cython_version) < _pep440.Version(required_version): # too old or wrong cython, skip the test cython = None |
