Skip to content

Commit d26d373

Browse files
committed
Restore setuptools_scm dynamic versioning reverted by SDK regeneration
The SDK regeneration in #45 reverted the PLAT-193 fix (a1fa54f): pyproject.toml went back to a hardcoded version = "1.0.0", so every tag push built opal_security-1.0.0, which already exists on PyPI, and twine --skip-existing silently skipped the upload. Re-apply the fix (dynamic version via setuptools_scm) and add pyproject.toml to .openapi-generator-ignore so regeneration cannot revert it again. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ssy8nmvQp1U5d73pCMFNXi
1 parent d9915af commit d26d373

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)