This is an automated email from the ASF dual-hosted git repository.
jorisvandenbossche pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new c9e07f8e3c GH-34933: [Python] Raise minimum cython version (#34935)
c9e07f8e3c is described below
commit c9e07f8e3c49838c7b4a1cec927341625eb3aba4
Author: Jacob Wujciak-Jens <[email protected]>
AuthorDate: Tue Apr 11 10:10:22 2023 +0200
GH-34933: [Python] Raise minimum cython version (#34935)
Building with cython 0.29.11 fails but works with latest 0.29.34.
* Closes: #34933
Authored-by: Jacob Wujciak-Jens <[email protected]>
Signed-off-by: Joris Van den Bossche <[email protected]>
---
python/pyproject.toml | 2 +-
python/requirements-build.txt | 2 +-
python/requirements-wheel-build.txt | 2 +-
python/setup.py | 6 +++---
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/python/pyproject.toml b/python/pyproject.toml
index edbc4ade6c..fe8c938a9c 100644
--- a/python/pyproject.toml
+++ b/python/pyproject.toml
@@ -17,7 +17,7 @@
[build-system]
requires = [
- "cython >= 0.29.22",
+ "cython >= 0.29.31",
"oldest-supported-numpy>=0.14",
"setuptools_scm",
"setuptools >= 40.1.0",
diff --git a/python/requirements-build.txt b/python/requirements-build.txt
index 46eb288c56..507e908137 100644
--- a/python/requirements-build.txt
+++ b/python/requirements-build.txt
@@ -1,4 +1,4 @@
-cython>=0.29
+cython>=0.29.31
oldest-supported-numpy>=0.14
setuptools_scm
setuptools>=38.6.0
diff --git a/python/requirements-wheel-build.txt
b/python/requirements-wheel-build.txt
index 856164f091..6043d2ffb2 100644
--- a/python/requirements-wheel-build.txt
+++ b/python/requirements-wheel-build.txt
@@ -1,4 +1,4 @@
-cython>=0.29.11
+cython>=0.29.31
oldest-supported-numpy>=0.14
setuptools_scm
setuptools>=58
diff --git a/python/setup.py b/python/setup.py
index 16faf9c3c2..8c6bd0416b 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -40,8 +40,8 @@ import Cython
# Check if we're running 64-bit Python
is_64_bit = sys.maxsize > 2**32
-if Cython.__version__ < '0.29.22':
- raise Exception('Please upgrade to Cython 0.29.22 or newer')
+if Cython.__version__ < '0.29.31':
+ raise Exception('Please upgrade to Cython 0.29.31 or newer')
setup_dir = os.path.abspath(os.path.dirname(__file__))
@@ -491,7 +491,7 @@ setup(
'pyarrow/_generated_version.py'),
'version_scheme': guess_next_dev_version
},
- setup_requires=['setuptools_scm', 'cython >= 0.29'] + setup_requires,
+ setup_requires=['setuptools_scm', 'cython >= 0.29.31'] + setup_requires,
install_requires=install_requires,
tests_require=['pytest', 'pandas', 'hypothesis'],
python_requires='>=3.7',