Skip to content

Commit

Permalink
apacheGH-44578: [Release][Packaging] Verify wheel version
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 31, 2024
1 parent 5b68eca commit daa2c59
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ci/scripts/python_wheel_unix_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ import pyarrow.parquet
fi
fi

if [ "${CHECK_VERSION}" == "ON" ]; then
pyarrow_version=$(python -c "import pyarrow; print(pyarrow.__version__)")
[ "${pyarrow_version}" = "${ARROW_VERSION}" ]
fi

if [ "${CHECK_WHEEL_CONTENT}" == "ON" ]; then
python ${source_dir}/ci/scripts/python_wheel_validate_contents.py \
--path ${source_dir}/python/repaired_wheels
Expand Down
15 changes: 12 additions & 3 deletions dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,11 @@ test_linux_wheels() {
continue
fi
pip install pyarrow-${TEST_PYARROW_VERSION:-${VERSION}}-cp${pyver/.}-cp${python/.}-${platform}.whl
CHECK_WHEEL_CONTENT=${wheel_content:-"ON"} INSTALL_PYARROW=OFF ARROW_GCS=${check_gcs} \
ARROW_GCS=${check_gcs} \
ARROW_VERSION=${VERSION} \
CHECK_VERSION=ON \
CHECK_WHEEL_CONTENT=${wheel_content:-"ON"} \
INSTALL_PYARROW=OFF \
${ARROW_DIR}/ci/scripts/python_wheel_unix_test.sh ${ARROW_SOURCE_DIR}
done
done
Expand Down Expand Up @@ -1102,8 +1106,13 @@ test_macos_wheels() {
fi

pip install pyarrow-${VERSION}-cp${pyver/.}-cp${python/.}-${platform}.whl
CHECK_WHEEL_CONTENT=${wheel_content:-"ON"} INSTALL_PYARROW=OFF ARROW_FLIGHT=${check_flight} \
ARROW_GCS=${check_gcs} ARROW_S3=${check_s3} \
ARROW_FLIGHT=${check_flight} \
ARROW_GCS=${check_gcs}
ARROW_S3=${check_s3} \
ARROW_VERSION=${VERSION} \
CHECK_WHEEL_CONTENT=${wheel_content:-"ON"} \
CHECK_VERSION=ON \
INSTALL_PYARROW=OFF
${ARROW_DIR}/ci/scripts/python_wheel_unix_test.sh ${ARROW_SOURCE_DIR}
done
done
Expand Down

0 comments on commit daa2c59

Please sign in to comment.