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 committed Jan 26, 2024
1 parent 8911558 commit a102434
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 @@ -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:
Expand Down

0 comments on commit a102434

Please sign in to comment.