From 11e4056a53762473ec66ae39c447cf7e8727a7a8 Mon Sep 17 00:00:00 2001 From: "Christopher Toth (aider)" Date: Tue, 10 Dec 2024 20:54:29 -0500 Subject: [PATCH] fix: Update version string formatting to comply with PEP 440 --- .github/workflows/publish-to-pypi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 4c884b1..1478c1f 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -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