Skip to content

Commit

Permalink
fix: Update version string formatting to comply with PEP 440
Browse files Browse the repository at this point in the history
  • Loading branch information
ctoth committed Dec 11, 2024
1 parent 8bdb788 commit 11e4056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ jobs:
pip install wheel
HASH=$(git rev-parse --short HEAD)
for wheel in dist/*.whl; do
NEW_WHEEL=$(echo $wheel | sed "s/-\([0-9.]*\)-/-\1.dev${HASH}-/")
NEW_WHEEL=$(echo $wheel | sed "s/-\([0-9.]*\)-/-\1.dev0+g${HASH}-/")
mv "$wheel" "$NEW_WHEEL"
done
for sdist in dist/*.tar.gz; do
NEW_SDIST=$(echo $sdist | sed "s/-\([0-9.]*\)\./-\1.dev${HASH}./")
NEW_SDIST=$(echo $sdist | sed "s/-\([0-9.]*\)\./-\1.dev0+g${HASH}./")
mv "$sdist" "$NEW_SDIST"
done
- name: Publish distribution 📦 to TestPyPI
Expand Down

0 comments on commit 11e4056

Please sign in to comment.