From 6170ce68de16204cf75d5991ab1290b8fc46836d Mon Sep 17 00:00:00 2001 From: Shunping Huang Date: Wed, 8 Jul 2026 10:39:56 -0400 Subject: [PATCH 1/2] Fix download_files() in python-release. --- .../python_release_automation_utils.sh | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/release/src/main/python-release/python_release_automation_utils.sh b/release/src/main/python-release/python_release_automation_utils.sh index 337ece8ba643..cfdc318a331a 100644 --- a/release/src/main/python-release/python_release_automation_utils.sh +++ b/release/src/main/python-release/python_release_automation_utils.sh @@ -82,23 +82,25 @@ function get_version() { ####################################### function download_files() { if [[ $1 = *"wheel"* ]]; then - if [[ $2 == "python3.7" ]]; then - BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" - elif [[ $2 == "python3.8" ]]; then - BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" - elif [[ $2 == "python3.9" ]]; then - BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" - elif [[ $2 == "python3.10" ]]; then - BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" + if [[ $2 == "python3.10" ]]; then + BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl" + elif [[ $2 == "python3.11" ]]; then + BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl" + elif [[ $2 == "python3.12" ]]; then + BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl" + elif [[ $2 == "python3.13" ]]; then + BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl" + elif [[ $2 == "python3.14" ]]; then + BEAM_PYTHON_SDK_WHL="apache_beam-$VERSION*-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl" else echo "Unable to determine a Beam wheel for interpreter version $2." exit 1 fi - wget -r -l2 --no-parent -nd -A "$BEAM_PYTHON_SDK_WHL*" $RC_STAGING_URL + wget -e robots=off -r -l2 --no-parent -nd -A "$BEAM_PYTHON_SDK_WHL*" $RC_STAGING_URL else - BEAM_PYTHON_SDK_ZIP="apache-beam-$VERSION.tar.gz" - wget -r -l2 --no-parent -nd -A "$BEAM_PYTHON_SDK_ZIP*" $RC_STAGING_URL + BEAM_PYTHON_SDK_ZIP="apache_beam-$VERSION.tar.gz" + wget -e robots=off -r -l2 --no-parent -nd -A "$BEAM_PYTHON_SDK_ZIP*" $RC_STAGING_URL fi } From 51b9e4d3266e4dc81c826cad3d3786038c88e0f3 Mon Sep 17 00:00:00 2001 From: Shunping Huang Date: Wed, 8 Jul 2026 10:48:33 -0400 Subject: [PATCH 2/2] Quote the url --- .../main/python-release/python_release_automation_utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/src/main/python-release/python_release_automation_utils.sh b/release/src/main/python-release/python_release_automation_utils.sh index cfdc318a331a..7a0529482b6f 100644 --- a/release/src/main/python-release/python_release_automation_utils.sh +++ b/release/src/main/python-release/python_release_automation_utils.sh @@ -97,10 +97,10 @@ function download_files() { exit 1 fi - wget -e robots=off -r -l2 --no-parent -nd -A "$BEAM_PYTHON_SDK_WHL*" $RC_STAGING_URL + wget -e robots=off -r -l2 --no-parent -nd -A "$BEAM_PYTHON_SDK_WHL*" "$RC_STAGING_URL" else BEAM_PYTHON_SDK_ZIP="apache_beam-$VERSION.tar.gz" - wget -e robots=off -r -l2 --no-parent -nd -A "$BEAM_PYTHON_SDK_ZIP*" $RC_STAGING_URL + wget -e robots=off -r -l2 --no-parent -nd -A "$BEAM_PYTHON_SDK_ZIP*" "$RC_STAGING_URL" fi }