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: I98102f5adfe7c84f413e0bb290040a68220c6d5c
  • Loading branch information
jagapiou authored and copybara-github committed Nov 26, 2024
1 parent 3643ac0 commit 85c31fd
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 bdist_wheel
run: |
python setup.py sdist bdist_wheel
# Workaround old setuptools not normalizing name in sdist.
for OLD in ./dist/gdm-concordia-*; do
NEW="$(echo "$OLD" | sed s/gdm-concordia/gdm_concordia/)"
mv "$OLD" "$NEW"
done
ls dist/*
- name: Save artifact
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
with:
Expand Down

0 comments on commit 85c31fd

Please sign in to comment.