Skip to content

Commit

Permalink
Support distribution from setuptools prior to 69.3.0 as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
shunping committed Oct 10, 2024
1 parent a44dfb6 commit b29c71c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdks/python/scripts/run_snapshot_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 will 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 b29c71c

Please sign in to comment.