From a102434afa8b7d40bf20b6f9dc504df27a21d5b7 Mon Sep 17 00:00:00 2001 From: Matthias Bach Date: Fri, 26 Jan 2024 13:07:52 +0100 Subject: [PATCH] Suppress local version when pushing to TestPyPI --- .github/workflows/stage.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index ec964e5..7e25207 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -27,7 +27,12 @@ jobs: python -m pip install --upgrade pip python -m pip install build - name: Build package - run: python -m build + run: + # Published packages must not have a local version. As we know that we are pushing from the main + # branch, the difference from the last tag is already unique anyhow. Thus, we can just skip it. + export SETUPTOOLS_SCM_OVERRIDES_FOR_DEVPI_PLUMBER='{ local_scheme = "no-local-version" }' + + python -m build - name: Publish package uses: pypa/gh-action-pypi-publish@release/v1 with: