Skip to content

Apache DataFusion SQL Query Engine

ARROW-6920: [Packaging] Build python 3.8 wheels

Sutou Kouhei0224a33ec5c9
diff --git a/dev/tasks/python-wheels/azure.linux.yml b/dev/tasks/python-wheels/azure.linux.yml
new file mode 100644
index 0000000000..e2ad88fe68
--- /dev/null
+++ b/dev/tasks/python-wheels/azure.linux.yml
@@ -0,0 +1,92 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+jobs:
+- job: linux
+ pool:
+ vmImage: ubuntu-latest
+ timeoutInMinutes: 360
+ steps:
+ - task: CondaEnvironment@1
+ inputs:
+ packageSpecs: 'click github3.py jinja2 jira pygit2 ruamel.yaml setuptools_scm toolz'
+ installOptions: '-c conda-forge'
+ updateConda: false
+
+ - script: |
+ set -ex
+ git clone --no-checkout {{ arrow.remote }} arrow
+ git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}
+ git -C arrow checkout FETCH_HEAD
+ git -C arrow submodule update --init --recursive
+ displayName: Clone arrow
+
+ - script: |
+ set -ex
+ docker -v
+ docker-compose -v
+ cd arrow
+ BUILD_IMAGE=centos-python-{{ wheel_tag }}
+ docker-compose pull $BUILD_IMAGE
+ # TODO(kou): Uncomment this when we resolve "ADD never use cache" problem.
+ # docker-compose build $BUILD_IMAGE
+ docker-compose run \
+ -e SETUPTOOLS_SCM_PRETEND_VERSION={{ arrow.no_rc_version }} \
+ -e PYTHON_VERSION="{{ python_version }}" \
+ -e UNICODE_WIDTH="{{ unicode_width }}" \
+ $BUILD_IMAGE
+ displayName: Build wheel
+
+ # auditwheel does always exit with 0 so it is mostly for debugging
+ # purposes
+ - script: |
+ set -ex
+ cd arrow
+ docker run \
+ -v $(pwd):/arrow quay.io/pypa/{{ wheel_tag }}_x86_64 \
+ /bin/bash -c \
+ "auditwheel show /arrow/python/{{ wheel_tag }}/dist/*.whl"
+ displayName: Audit wheel
+
+ - script: |
+ set -ex
+ cd arrow
+ test_args=""
+ {%- if test_remove_system_libs %}
+ test_args="${test_args} --remove-system-libs"
+ {%- endif %}
+ {%- for image in test_docker_images %}
+ docker run \
+ --shm-size 2G \
+ -v $(pwd):/arrow \
+ -e WHEEL_TAG="{{ wheel_tag }}" \
+ {{ image }} \
+ /arrow/dev/tasks/python-wheels/manylinux-test.sh ${test_args}
+ {%- endfor %}
+ displayName: Test wheel
+
+ - script: |
+ set -ex
+ python arrow/dev/tasks/crossbow.py \
+ --queue-path . \
+ --queue-remote {{ queue.remote_url }} \
+ upload-artifacts \
+ --pattern "arrow/python/{{ wheel_tag }}/dist/*" \
+ --sha {{ task.branch }} \
+ --tag {{ task.tag }}
+ env:
+ CROSSBOW_GITHUB_TOKEN: $(CROSSBOW_GITHUB_TOKEN)
+ displayName: Upload packages as a GitHub release
diff --git a/dev/tasks/python-wheels/travis.linux.yml b/dev/tasks/python-wheels/travis.linux.yml
deleted file mode 100644
index d8d9ef3a4d..0000000000
--- a/dev/tasks/python-wheels/travis.linux.yml
+++ /dev/null
@@ -1,88 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-os: linux
-
-dist: bionic
-
-language: python
-
-services:
- - docker
-
-# don't build twice
-if: tag IS blank
-
-env:
- global:
- - PLAT=x86_64
- - TRAVIS_TAG={{ task.tag }}
-
-script:
- - git clone --no-checkout {{ arrow.remote }} arrow
- - git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}
- - git -C arrow checkout FETCH_HEAD
- - mkdir -p dist
-
- # build wheel
- - pushd arrow
-
- # Pull testing resources
- - git submodule init
- - git submodule update
-
- # don't attempt to build it, because the base image by pypa is updated
- # regularly and would cause undeterministic builds
- - BUILD_IMAGE=centos-python-{{ wheel_tag }}
- - docker-compose pull $BUILD_IMAGE
- - docker-compose run
- -e SETUPTOOLS_SCM_PRETEND_VERSION={{ arrow.no_rc_version }}
- -e PYTHON_VERSION="{{ python_version }}"
- -e UNICODE_WIDTH="{{ unicode_width }}"
- $BUILD_IMAGE
-
- # run auditwheel, it does always exit with 0 so it is mostly for debugging
- # purposes
- - docker run -v `pwd`:/arrow quay.io/pypa/{{ wheel_tag }}_x86_64 /bin/bash -c
- "auditwheel show /arrow/python/{{ wheel_tag }}/dist/*.whl"
-
- # test on multiple distributions
- {%- for image in test_docker_images %}
- - docker run -it --shm-size 2G -v `pwd`:/arrow -e WHEEL_TAG="{{ wheel_tag }}"
- {%- if test_remove_system_libs %}
- {{ image }} /arrow/dev/tasks/python-wheels/manylinux-test.sh --remove-system-libs
- {%- else %}
- {{ image }} /arrow/dev/tasks/python-wheels/manylinux-test.sh
- {%- endif %}
- {%- endfor %}
-
- - popd
-
- # prepare for deployment
- - sudo mv arrow/python/{{ wheel_tag }}/dist/* dist/
-
-deploy:
- provider: releases
- api_key: $CROSSBOW_GITHUB_TOKEN
- file_glob: true
- file: dist/*.whl
- skip_cleanup: true
- on:
- tags: true
-
-notifications:
- email:
- - {{ job.email }}
diff --git a/dev/tasks/python-wheels/travis.osx.yml b/dev/tasks/python-wheels/travis.osx.yml
index 6b161b7fc0..1e08263fb3 100644
--- a/dev/tasks/python-wheels/travis.osx.yml
+++ b/dev/tasks/python-wheels/travis.osx.yml
@@ -31,8 +31,8 @@ env:
- MACOSX_DEPLOYMENT_TARGET="10.9"
before_install:
- - git clone https://github.com/matthew-brett/multibuild # TODO pin it
- - git -C multibuild checkout 4e7a9396e9a50731bb83fc0d16bb98fb0c4032d7
+ - git clone https://github.com/matthew-brett/multibuild
+ - git -C multibuild checkout 68a4af043e2adb0d9353d4a0e1f3d871203237aa
- git clone --no-checkout {{ arrow.remote }} arrow
- git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}
diff --git a/dev/tasks/python-wheels/win-build.bat b/dev/tasks/python-wheels/win-build.bat
index 345a8f0d3b..b46c59dd70 100644
--- a/dev/tasks/python-wheels/win-build.bat
+++ b/dev/tasks/python-wheels/win-build.bat
@@ -20,14 +20,14 @@
@rem create conda environment for compiling
conda update --yes --quiet conda
-call conda create -n wheel-build -q -y -c conda-forge ^
+conda create -n wheel-build -q -y -c conda-forge ^
--file=%ARROW_SRC%\ci\conda_env_cpp.yml ^
--file=%ARROW_SRC%\ci\conda_env_gandiva.yml ^
python=%PYTHON_VERSION% ^
numpy=%NUMPY_VERSION% ^
|| exit /B
-call activate wheel-build
+call conda.bat activate wheel-build
@rem Cannot use conda_env_python.yml here because conda-forge has
@rem ceased providing up-to-date packages for Python 3.5
@@ -84,17 +84,17 @@ pushd %ARROW_SRC%\python
python setup.py bdist_wheel || exit /B
popd
-call deactivate
+call conda.bat deactivate
set ARROW_TEST_DATA=%ARROW_SRC%\testing\data
@rem test the wheel
@rem TODO For maximum reliability, we should test in a plain virtualenv instead.
-call conda create -n wheel-test -c conda-forge -q -y ^
+conda create -n wheel-test -c conda-forge -q -y ^
--file %ARROW_SRC%\ci\conda_env_python.yml ^
python=%PYTHON_VERSION% ^
numpy=%NUMPY_VERSION% || exit /B
-call activate wheel-test
+call conda.bat activate wheel-test
@rem install the built wheel
pip install -vv --no-index --find-links=%ARROW_SRC%\python\dist\ pyarrow || exit /B
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index 9be55bd518..e656e7ed25 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -37,17 +37,21 @@ groups:
- wheel-manylinux1-cp35m
- wheel-manylinux1-cp36m
- wheel-manylinux1-cp37m
+ - wheel-manylinux1-cp38
- wheel-manylinux2010-cp27m
- wheel-manylinux2010-cp27mu
- wheel-manylinux2010-cp35m
- wheel-manylinux2010-cp36m
- wheel-manylinux2010-cp37m
+ - wheel-manylinux2010-cp38
- wheel-osx-cp27m
- wheel-osx-cp35m
- wheel-osx-cp36m
- wheel-osx-cp37m
+ - wheel-osx-cp38
- wheel-win-cp36m
- wheel-win-cp37m
+ - wheel-win-cp38
linux:
- debian-stretch
@@ -208,17 +212,21 @@ groups:
- wheel-manylinux1-cp35m
- wheel-manylinux1-cp36m
- wheel-manylinux1-cp37m
+ - wheel-manylinux1-cp38
- wheel-manylinux2010-cp27m
- wheel-manylinux2010-cp27mu
- wheel-manylinux2010-cp35m
- wheel-manylinux2010-cp36m
- wheel-manylinux2010-cp37m
+ - wheel-manylinux2010-cp38
- wheel-osx-cp27m
- wheel-osx-cp35m
- wheel-osx-cp36m
- wheel-osx-cp37m
+ - wheel-osx-cp38
- wheel-win-cp36m
- wheel-win-cp37m
+ - wheel-win-cp38
- debian-stretch
- debian-buster
- ubuntu-xenial
@@ -366,9 +374,9 @@ tasks:
############################## Wheel Linux ##################################
wheel-manylinux1-cp27m:
- ci: travis
+ ci: azure
platform: linux
- template: python-wheels/travis.linux.yml
+ template: python-wheels/azure.linux.yml
params:
python_version: 2.7
unicode_width: 16
@@ -379,9 +387,9 @@ tasks:
- pyarrow-{no_rc_version}-cp27-cp27m-manylinux1_x86_64.whl
wheel-manylinux1-cp27mu:
- ci: travis
+ ci: azure
platform: linux
- template: python-wheels/travis.linux.yml
+ template: python-wheels/azure.linux.yml
params:
python_version: 2.7
unicode_width: 32
@@ -393,9 +401,9 @@ tasks:
- pyarrow-{no_rc_version}-cp27-cp27mu-manylinux1_x86_64.whl
wheel-manylinux1-cp35m:
- ci: travis
+ ci: azure
platform: linux
- template: python-wheels/travis.linux.yml
+ template: python-wheels/azure.linux.yml
params:
python_version: 3.5
unicode_width: 16
@@ -407,9 +415,9 @@ tasks:
- pyarrow-{no_rc_version}-cp35-cp35m-manylinux1_x86_64.whl
wheel-manylinux1-cp36m:
- ci: travis
+ ci: azure
platform: linux
- template: python-wheels/travis.linux.yml
+ template: python-wheels/azure.linux.yml
params:
python_version: 3.6
unicode_width: 16
@@ -421,9 +429,9 @@ tasks:
- pyarrow-{no_rc_version}-cp36-cp36m-manylinux1_x86_64.whl
wheel-manylinux1-cp37m:
- ci: travis
+ ci: azure
platform: linux
- template: python-wheels/travis.linux.yml
+ template: python-wheels/azure.linux.yml
params:
python_version: 3.7
unicode_width: 16
@@ -434,10 +442,24 @@ tasks:
artifacts:
- pyarrow-{no_rc_version}-cp37-cp37m-manylinux1_x86_64.whl
+ wheel-manylinux1-cp38:
+ ci: azure
+ platform: linux
+ template: python-wheels/azure.linux.yml
+ params:
+ python_version: 3.8
+ unicode_width: 16
+ wheel_tag: manylinux1
+ test_docker_images:
+ - python:3.8
+ test_remove_system_libs: true
+ artifacts:
+ - pyarrow-{no_rc_version}-cp38-cp38-manylinux1_x86_64.whl
+
wheel-manylinux2010-cp27m:
- ci: travis
+ ci: azure
platform: linux
- template: python-wheels/travis.linux.yml
+ template: python-wheels/azure.linux.yml
params:
python_version: 2.7
unicode_width: 16
@@ -448,9 +470,9 @@ tasks:
- pyarrow-{no_rc_version}-cp27-cp27m-manylinux2010_x86_64.whl
wheel-manylinux2010-cp27mu:
- ci: travis
+ ci: azure
platform: linux
- template: python-wheels/travis.linux.yml
+ template: python-wheels/azure.linux.yml
params:
python_version: 2.7
unicode_width: 32
@@ -462,9 +484,9 @@ tasks:
- pyarrow-{no_rc_version}-cp27-cp27mu-manylinux2010_x86_64.whl
wheel-manylinux2010-cp35m:
- ci: travis
+ ci: azure
platform: linux
- template: python-wheels/travis.linux.yml
+ template: python-wheels/azure.linux.yml
params:
python_version: 3.5
unicode_width: 16
@@ -476,9 +498,9 @@ tasks:
- pyarrow-{no_rc_version}-cp35-cp35m-manylinux2010_x86_64.whl
wheel-manylinux2010-cp36m:
- ci: travis
+ ci: azure
platform: linux
- template: python-wheels/travis.linux.yml
+ template: python-wheels/azure.linux.yml
params:
python_version: 3.6
unicode_width: 16
@@ -490,9 +512,9 @@ tasks:
- pyarrow-{no_rc_version}-cp36-cp36m-manylinux2010_x86_64.whl
wheel-manylinux2010-cp37m:
- ci: travis
+ ci: azure
platform: linux
- template: python-wheels/travis.linux.yml
+ template: python-wheels/azure.linux.yml
params:
python_version: 3.7
unicode_width: 16
@@ -503,6 +525,20 @@ tasks:
artifacts:
- pyarrow-{no_rc_version}-cp37-cp37m-manylinux2010_x86_64.whl
+ wheel-manylinux2010-cp38:
+ ci: azure
+ platform: linux
+ template: python-wheels/azure.linux.yml
+ params:
+ python_version: 3.8
+ unicode_width: 16
+ wheel_tag: manylinux2010
+ test_docker_images:
+ - python:3.8
+ test_remove_system_libs: true
+ artifacts:
+ - pyarrow-{no_rc_version}-cp38-cp38-manylinux2010_x86_64.whl
+
############################## Wheel OSX ####################################
wheel-osx-cp27m:
@@ -550,6 +586,15 @@ tasks:
artifacts:
- pyarrow-{no_rc_version}-cp37-cp37m-macosx_10_6_intel.whl
+ wheel-osx-cp38:
+ ci: travis
+ platform: osx
+ template: python-wheels/travis.osx.yml
+ params:
+ python_version: 3.8
+ artifacts:
+ - pyarrow-{no_rc_version}-cp38-cp38-macosx_10_6_intel.whl
+
############################## Wheel Windows ################################
wheel-win-cp36m:
@@ -570,6 +615,15 @@ tasks:
artifacts:
- pyarrow-{no_rc_version}-cp37-cp37m-win_amd64.whl
+ wheel-win-cp38:
+ ci: appveyor
+ platform: win
+ template: python-wheels/appveyor.yml
+ params:
+ python_version: 3.8
+ artifacts:
+ - pyarrow-{no_rc_version}-cp38-cp38-win_amd64.whl
+
############################## Linux PKGS ####################################
debian-stretch:
diff --git a/docker-compose.yml b/docker-compose.yml
index 1f4229ee8e..4ebfacde00 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -560,9 +560,7 @@ services:
########################## Python Wheels ####################################
centos-python-manylinux1:
- # TODO(kszucs): change to ${REPO}:tag once
- # https://issues.apache.org/jira/browse/INFRA-19499 is resolved
- image: arrowdev/amd64-centos-5.11-python-manylinux1:latest
+ image: ${REPO}:amd64-centos-5.11-python-manylinux1
build:
context: python/manylinux1
dockerfile: Dockerfile-x86_64_base
@@ -579,9 +577,7 @@ services:
command: &manylinux-command /io/build_arrow.sh
centos-python-manylinux2010:
- # TODO(kszucs): change to ${REPO}:tag once
- # https://issues.apache.org/jira/browse/INFRA-19499 is resolved
- image: arrowdev/amd64-centos-6.10-python-manylinux2010:latest
+ image: ${REPO}:amd64-centos-6.10-python-manylinux2010
build:
context: python/manylinux2010
dockerfile: Dockerfile-x86_64_base