Skip to content

Commit cb9f947

Browse files
authored
Merge pull request #39246 from shunping/fix-python-release-scripts
Fix download_files() in python-release.
2 parents 3c28e77 + 51b9e4d commit cb9f947

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

release/src/main/python-release/python_release_automation_utils.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,23 +82,25 @@ function get_version() {
8282
#######################################
8383
function download_files() {
8484
if [[ $1 = *"wheel"* ]]; then
85-
if [[ $2 == "python3.7" ]]; then
86-
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
87-
elif [[ $2 == "python3.8" ]]; then
88-
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
89-
elif [[ $2 == "python3.9" ]]; then
90-
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
91-
elif [[ $2 == "python3.10" ]]; then
92-
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
85+
if [[ $2 == "python3.10" ]]; then
86+
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl"
87+
elif [[ $2 == "python3.11" ]]; then
88+
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl"
89+
elif [[ $2 == "python3.12" ]]; then
90+
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl"
91+
elif [[ $2 == "python3.13" ]]; then
92+
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl"
93+
elif [[ $2 == "python3.14" ]]; then
94+
BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl"
9395
else
9496
echo "Unable to determine a Beam wheel for interpreter version $2."
9597
exit 1
9698
fi
9799

98-
wget -r -l2 --no-parent -nd -A "$BEAM_PYTHON_SDK_WHL*" $RC_STAGING_URL
100+
wget -e robots=off -r -l2 --no-parent -nd -A "$BEAM_PYTHON_SDK_WHL*" "$RC_STAGING_URL"
99101
else
100-
BEAM_PYTHON_SDK_ZIP="apache-beam-$VERSION.tar.gz"
101-
wget -r -l2 --no-parent -nd -A "$BEAM_PYTHON_SDK_ZIP*" $RC_STAGING_URL
102+
BEAM_PYTHON_SDK_ZIP="apache_beam-$VERSION.tar.gz"
103+
wget -e robots=off -r -l2 --no-parent -nd -A "$BEAM_PYTHON_SDK_ZIP*" "$RC_STAGING_URL"
102104
fi
103105
}
104106

0 commit comments

Comments
 (0)