Skip to content

Commit

Permalink
Make sure we have PyPI compatible versions
Browse files Browse the repository at this point in the history
  • Loading branch information
leouieda committed Sep 20, 2023
1 parent 5cd8bc7 commit 9213bf7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9213bf7

Please sign in to comment.