This is an automated email from the ASF dual-hosted git repository.

apitrou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new f56d765  ARROW-2305: [Python] Bump Cython requirement to 0.27+
f56d765 is described below

commit f56d765219fd6cfe9ffc66216a0e9ee4fdbc6031
Author: Antoine Pitrou <anto...@python.org>
AuthorDate: Mon Apr 9 17:45:46 2018 +0200

    ARROW-2305: [Python] Bump Cython requirement to 0.27+
    
    Starting with Cython 0.27, it's possible to implement comparisons using 
`__eq__` and friends instead of `__richcmp__`: 
http://docs.cython.org/en/latest/src/changes.html#id16
    
    Author: Antoine Pitrou <anto...@python.org>
    
    Closes #1863 from pitrou/ARROW-2305-cython-027 and squashes the following 
commits:
    
    c17eec3 <Antoine Pitrou> ARROW-2305:  Bump Cython requirement to 0.27+
---
 ci/msvc-build.bat                              | 4 +---
 ci/travis_script_python.sh                     | 3 +--
 dev/release/verify-release-candidate.sh        | 2 +-
 python/manylinux1/scripts/build_virtualenvs.sh | 2 +-
 python/setup.py                                | 6 +++---
 5 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/ci/msvc-build.bat b/ci/msvc-build.bat
index 678e29d..d3f540b 100644
--- a/ci/msvc-build.bat
+++ b/ci/msvc-build.bat
@@ -68,10 +68,8 @@ if "%JOB%" == "Build_Debug" (
   exit /B 0
 )
 
-@rem Note: avoid Cython 0.28.0 due to 
https://github.com/cython/cython/issues/2148
 conda create -n arrow -q -y python=%PYTHON% ^
-      six pytest setuptools numpy pandas ^
-      cython=0.27.3 ^
+      six pytest setuptools numpy pandas cython ^
       thrift-cpp=0.11.0
 
 call activate arrow
diff --git a/ci/travis_script_python.sh b/ci/travis_script_python.sh
index aa3c315..a776c42 100755
--- a/ci/travis_script_python.sh
+++ b/ci/travis_script_python.sh
@@ -36,13 +36,12 @@ source activate $CONDA_ENV_DIR
 python --version
 which python
 
-# Note: avoid Cython 0.28.0 due to https://github.com/cython/cython/issues/2148
 conda install -y -q pip \
       nomkl \
       cloudpickle \
       numpy=1.13.1 \
       pandas \
-      cython=0.27.3
+      cython
 
 # ARROW-2093: PyTorch increases the size of our conda dependency stack
 # significantly, and so we have disabled these tests in Travis CI for now
diff --git a/dev/release/verify-release-candidate.sh 
b/dev/release/verify-release-candidate.sh
index 34aff20..ef058d1 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -104,7 +104,7 @@ setup_miniconda() {
         numpy \
         pandas \
         six \
-        cython=0.27.3 -c conda-forge
+        cython -c conda-forge
   source activate arrow-test
 }
 
diff --git a/python/manylinux1/scripts/build_virtualenvs.sh 
b/python/manylinux1/scripts/build_virtualenvs.sh
index 7e0d80c..a983721 100755
--- a/python/manylinux1/scripts/build_virtualenvs.sh
+++ b/python/manylinux1/scripts/build_virtualenvs.sh
@@ -34,7 +34,7 @@ for PYTHON_TUPLE in ${PYTHON_VERSIONS}; do
 
     echo "=== (${PYTHON}, ${U_WIDTH}) Installing build dependencies ==="
     $PIP install "numpy==1.10.4"
-    $PIP install "cython==0.27.3"
+    $PIP install "cython==0.28.1"
     $PIP install "pandas==0.20.3"
     $PIP install "virtualenv==15.1.0"
 
diff --git a/python/setup.py b/python/setup.py
index d9a6884..20b2416 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -42,8 +42,8 @@ from distutils import sysconfig
 # Check if we're running 64-bit Python
 is_64_bit = sys.maxsize > 2**32
 
-if Cython.__version__ < '0.19.1':
-    raise Exception('Please upgrade to Cython 0.19.1 or newer')
+if Cython.__version__ < '0.27':
+    raise Exception('Please upgrade to Cython 0.27 or newer')
 
 setup_dir = os.path.abspath(os.path.dirname(__file__))
 
@@ -491,7 +491,7 @@ setup(
         ]
     },
     use_scm_version={"root": "..", "relative_to": __file__, "parse": 
parse_version},
-    setup_requires=['setuptools_scm', 'cython >= 0.23'] + setup_requires,
+    setup_requires=['setuptools_scm', 'cython >= 0.27'] + setup_requires,
     install_requires=install_requires,
     tests_require=['pytest', 'pandas'],
     description="Python library for Apache Arrow",

-- 
To stop receiving notification emails like this one, please contact
apit...@apache.org.

Reply via email to