Skip to content

Commit

Permalink
ARROW-14435: [Release] Update verification scripts to check python 3.…
Browse files Browse the repository at this point in the history
…10 wheels

Cherry picking the commit to the verification PR it can be tested before merging.

Closes apache#11519 from kszucs/verify-python-310-wheels

Authored-by: Krisztián Szűcs <[email protected]>
Signed-off-by: Krisztián Szűcs <[email protected]>
  • Loading branch information
kszucs committed Oct 27, 2021
1 parent 85c09b4 commit 5c85e84
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
6 changes: 6 additions & 0 deletions dev/release/verify-release-candidate-wheels.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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%

Expand Down
20 changes: 15 additions & 5 deletions dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}

Expand All @@ -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

Expand Down

0 comments on commit 5c85e84

Please sign in to comment.