Skip to content

Commit d3967d4

Browse files
authored
Merge pull request #46 from opalsecurity/fix/restore-setuptools-scm-versioning
Restore setuptools_scm dynamic versioning so tag pushes actually publish to PyPI
2 parents d9915af + d26d373 commit d3967d4

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.openapi-generator-ignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@
2121
#docs/*.md
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
24+
25+
# pyproject.toml is hand-maintained: it uses setuptools_scm dynamic versioning
26+
# (PLAT-193) so releases derive their version from git tags. Regenerating it
27+
# would revert to a hardcoded version and silently break PyPI publishing.
28+
pyproject.toml

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "opal_security"
3-
version = "1.0.0"
3+
dynamic = ["version"]
44
description = "Opal API"
55
authors = [
66
{name = "Opal Team",email = "hello@opal.dev"},
@@ -32,7 +32,7 @@ mypy = ">= 1.5"
3232

3333

3434
[build-system]
35-
requires = ["setuptools"]
35+
requires = ["setuptools", "setuptools_scm"]
3636
build-backend = "setuptools.build_meta"
3737

3838
[tool.pylint.'MESSAGES CONTROL']

0 commit comments

Comments
 (0)