Skip to content

Commit

Permalink
Ensure distribution name is normalized when sent to PyPI.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 700378288
Change-Id: Ia1b7f8c0a0109afe8e130bef499ee7e850a090ef
  • Loading branch information
jagapiou authored and copybara-github committed Nov 26, 2024
1 parent 663653f commit e787e1b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ jobs:
python --version
pip list
- name: Build distribution
run: python setup.py sdist
run: |
python setup.py sdist
# Workaround old setuptools not normalizing name in sdist.
for OLD in ./dist/dm-meltingpot-*; do
NEW="$(echo "$OLD" | sed s/dm-meltingpot/dm_meltingpot/)"
mv "$OLD" "$NEW"
done
ls dist/*
- name: Save artifact
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
with:
Expand Down

0 comments on commit e787e1b

Please sign in to comment.