diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 3a38e16..ced1744 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -57,6 +57,14 @@ jobs: - name: List installed packages run: python -m pip freeze + - name: Don't use local version numbers for TestPyPI uploads + if: github.event_name != 'release' + run: | + # Change setuptools-scm local_scheme to "no-local-version" so the + # local part of the version isn't included, making the version string + # compatible with PyPI. + sed --in-place "s/node-and-date/no-local-version/g" pyproject.toml + - name: Build source and wheel distributions run: | make build