From 5c85e844ca94b55cb703980adee637baeab8a457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kriszti=C3=A1n=20Sz=C5=B1cs?= Date: Wed, 27 Oct 2021 13:36:00 +0200 Subject: [PATCH] ARROW-14435: [Release] Update verification scripts to check python 3.10 wheels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cherry picking the commit to the verification PR it can be tested before merging. Closes #11519 from kszucs/verify-python-310-wheels Authored-by: Krisztián Szűcs Signed-off-by: Krisztián Szűcs --- .../verify-release-candidate-wheels.bat | 6 ++++++ dev/release/verify-release-candidate.sh | 20 ++++++++++++++----- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/dev/release/verify-release-candidate-wheels.bat b/dev/release/verify-release-candidate-wheels.bat index 5bcefe80d6059..322e0cb56e1c2 100644 --- a/dev/release/verify-release-candidate-wheels.bat +++ b/dev/release/verify-release-candidate-wheels.bat @@ -65,6 +65,12 @@ if errorlevel 1 GOTO error CALL :verify_wheel 3.8 if errorlevel 1 GOTO error +CALL :verify_wheel 3.9 +if errorlevel 1 GOTO error + +CALL :verify_wheel 3.10 +if errorlevel 1 GOTO error + :done cd %_CURRENT_DIR% diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh index d2d299a3e2c10..0222fafcdce70 100755 --- a/dev/release/verify-release-candidate.sh +++ b/dev/release/verify-release-candidate.sh @@ -599,12 +599,17 @@ test_linux_wheels() { local arch="x86_64" fi - local py_arches="3.6m 3.7m 3.8 3.9" + local py_arches="3.6m 3.7m 3.8 3.9 3.10" local platform_tags="manylinux_2_12_${arch}.manylinux2010_${arch} manylinux_2_17_${arch}.manylinux2014_${arch}" for py_arch in ${py_arches}; do local env=_verify_wheel-${py_arch} - conda create -yq -n ${env} python=${py_arch//[mu]/} + if [ $py_arch = "3.10" ]; then + local channels="-c conda-forge -c defaults" + else + local channels="-c conda-forge" + fi + conda create -yq -n ${env} ${channels} python=${py_arch//[mu]/} conda activate ${env} pip install -U pip @@ -619,7 +624,7 @@ test_linux_wheels() { } test_macos_wheels() { - local py_arches="3.6m 3.7m 3.8 3.9" + local py_arches="3.6m 3.7m 3.8 3.9 3.10" local macos_version=$(sw_vers -productVersion) local macos_short_version=${macos_version:0:5} @@ -632,14 +637,19 @@ test_macos_wheels() { fi # apple silicon processor if [ "$(uname -m)" = "arm64" ]; then - local py_arches="3.8 3.9" + local py_arches="3.8 3.9 3.10" local check_flight=OFF fi # verify arch-native wheels inside an arch-native conda environment for py_arch in ${py_arches}; do local env=_verify_wheel-${py_arch} - conda create -yq -n ${env} python=${py_arch//m/} + if [ $py_arch = "3.10" ]; then + local channels="-c conda-forge -c defaults" + else + local channels="-c conda-forge" + fi + conda create -yq -n ${env} ${channels} python=${py_arch//m/} conda activate ${env} pip install -U pip