-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use default version scheme for setuptools_scm (#149)
Co-authored-by: Tom Nicholas <[email protected]>
- Loading branch information
1 parent
7d242a7
commit 27a6f94
Showing
2 changed files
with
3 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ on: | |
- published | ||
# push: | ||
# branches: [ "main" ] | ||
# pull_request: | ||
# branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -29,14 +29,6 @@ jobs: | |
python -m pip install setuptools setuptools-scm wheel twine check-manifest | ||
git clean -xdf | ||
git restore -SW . | ||
# This step is only necessary for testing purposes and for TestPyPI | ||
- name: Fix up version string for TestPyPI | ||
if: ${{ !startsWith(github.ref, 'refs/tags') }} | ||
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/guess-next-dev/no-local-version/g" pyproject.toml | ||
- name: Build tarball and wheels | ||
run: | | ||
python -m build --sdist --wheel . | ||
|
@@ -82,6 +74,7 @@ jobs: | |
python -m pip install dist/virtualizarr*.whl | ||
python -c "import virtualizarr; print(virtualizarr.__version__)" | ||
- name: Publish package to TestPyPI | ||
if: github.event_name == 'release' | ||
uses: pypa/[email protected] | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters