Skip to content

Commit

Permalink
Fix failed pushes to testpypi
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinmacaulay committed Oct 6, 2024
1 parent ed3b42f commit 528c10e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
pip install
build
--user
- name: Get history and tags for SCM versioning to work
run: |
git branch
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ dynamic = [ 'version']
[tool.hatch.version]
source = 'vcs'

[tool.hatch.version.raw-options]
local_scheme = "no-local-version" # otherwise the non-tagged version is not accepted by testpypi

[project.optional-dependencies]
dev = [
"mkdocstrings[python]",
Expand Down

0 comments on commit 528c10e

Please sign in to comment.