Skip to content

Commit 11e4056

Browse files
committed
fix: Update version string formatting to comply with PEP 440
1 parent 8bdb788 commit 11e4056

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ jobs:
7474
pip install wheel
7575
HASH=$(git rev-parse --short HEAD)
7676
for wheel in dist/*.whl; do
77-
NEW_WHEEL=$(echo $wheel | sed "s/-\([0-9.]*\)-/-\1.dev${HASH}-/")
77+
NEW_WHEEL=$(echo $wheel | sed "s/-\([0-9.]*\)-/-\1.dev0+g${HASH}-/")
7878
mv "$wheel" "$NEW_WHEEL"
7979
done
8080
for sdist in dist/*.tar.gz; do
81-
NEW_SDIST=$(echo $sdist | sed "s/-\([0-9.]*\)\./-\1.dev${HASH}./")
81+
NEW_SDIST=$(echo $sdist | sed "s/-\([0-9.]*\)\./-\1.dev0+g${HASH}./")
8282
mv "$sdist" "$NEW_SDIST"
8383
done
8484
- name: Publish distribution 📦 to TestPyPI

0 commit comments

Comments
 (0)