Skip to content

Commit

Permalink
Suppress local version when pushing to TestPyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bach-by authored and StephanErb committed Jan 26, 2024
1 parent 7ac271b commit d7adfbd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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:
Expand Down

0 comments on commit d7adfbd

Please sign in to comment.