This is an automated email from the ASF dual-hosted git repository.
yhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 84aa5ac4a77 Fix the snapshot publishing script (#32744)
84aa5ac4a77 is described below
commit 84aa5ac4a7795986a1f0a6031ad890c74d0b5960
Author: Shunping Huang <[email protected]>
AuthorDate: Thu Oct 10 17:06:58 2024 -0400
Fix the snapshot publishing script (#32744)
* Fix the snapshot publishing script
* Support distribution from setuptools prior to 69.3.0 as well.
---
sdks/python/scripts/run_snapshot_publish.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sdks/python/scripts/run_snapshot_publish.sh
b/sdks/python/scripts/run_snapshot_publish.sh
index bc379077349..0d7c7764748 100755
--- a/sdks/python/scripts/run_snapshot_publish.sh
+++ b/sdks/python/scripts/run_snapshot_publish.sh
@@ -31,7 +31,9 @@ DEP_SNAPSHOT_FILE_NAME="beam-py-requirements-$time.txt"
cd $WORKSPACE/sdks/python/build
# Rename the file to be apache-beam-{VERSION}-{datetime}.tar.gz
-for file in "apache-beam-$VERSION*.tar.gz"; do
+# 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