From ea18bb2a838b871153686d0feae4808a65ede777 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Fri, 20 May 2022 11:33:28 +0200 Subject: 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. --- numpy/core/tests/test_cython.py | 4 ++-- numpy/random/tests/test_extending.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'numpy') 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 -- cgit v1.2.1