Skip to content

Commit

Permalink
Fix the snapshot publishing script (#32744)
Browse files Browse the repository at this point in the history
* Fix the snapshot publishing script

* Support distribution from setuptools prior to 69.3.0 as well.
  • Loading branch information
shunping authored Oct 10, 2024
1 parent 4cf99ea commit 84aa5ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdks/python/scripts/run_snapshot_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 84aa5ac

Please sign in to comment.