Skip to content

Commit

Permalink
Additional configuration for setuptools.scm (#85)
Browse files Browse the repository at this point in the history
Out of the box, setuptools_scm generates development
package versions in a format that doesn't comply with
PEP 440, so the test-pypi publish workflow failed.

That's by design, to prevent dev releases going to PyPI.
However, our prod PyPI workflow will trigger only when
a tag in the format v[0-9].[0-9].[0-9] is pushed to
GitHub, so the liklihood of inadvertently publishing
a dev version to PyPI is low.
  • Loading branch information
bsweger authored Jan 10, 2025
1 parent 443908f commit 26b0eb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ namespaces = true
where = ["src"]

[tool.setuptools_scm]
local_scheme = "no-local-version"

[tool.pytest.ini_options]
tmp_path_retention_policy = "none"
Expand All @@ -106,4 +107,5 @@ lint.extend-select = ["I"]
"__init__.py" = ["I001"]

[tool.mypy]
ignore_missing_imports = true
ignore_missing_imports = false

0 comments on commit 26b0eb8

Please sign in to comment.