From c7efd6738c26f04442625d6cf8f1b133c0ee0d3f Mon Sep 17 00:00:00 2001 From: Shunping Huang Date: Thu, 10 Oct 2024 15:35:32 -0400 Subject: [PATCH] Support distribution from setuptools prior to 69.3.0 as well. --- sdks/python/scripts/run_snapshot_publish.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdks/python/scripts/run_snapshot_publish.sh b/sdks/python/scripts/run_snapshot_publish.sh index b6e10a94cdd3..0d7c7764748d 100755 --- a/sdks/python/scripts/run_snapshot_publish.sh +++ b/sdks/python/scripts/run_snapshot_publish.sh @@ -30,10 +30,10 @@ DEP_SNAPSHOT_FILE_NAME="beam-py-requirements-$time.txt" # and located under Gradle build directory. cd $WORKSPACE/sdks/python/build -# Rename the file to be apache_beam-{VERSION}-{datetime}.tar.gz -# Notice that the distribution name of beam has been normalized as "apache_beam" -# since setuptools 69.3.0. -for file in "apache_beam-$VERSION*.tar.gz"; do +# Rename the file to be apache-beam-{VERSION}-{datetime}.tar.gz +# Notice that the distribution name of beam can be "apache-beam" with +# setuptools<69.3.0 or "apache_beam" with setuptools>=69.3.0. +for file in "apache[-_]beam-$VERSION*.tar.gz"; do mv $file $SNAPSHOT done