Skip to content

Commit cd0c54f

Browse files
committed
fix: drop extra-files pyproject.toml writer to preserve PEP 440 normalization
Per aao-ipr-bot review on #804: the generic JSON `extra-files` updater writes the raw SemVer version string into `pyproject.toml`, bypassing PEP 440 normalization. For stable releases this is inert (SemVer == PEP 440), but for prereleases it produces invalid versions like `6.0.0-beta.1` instead of `6.0.0b1` — and PyPI rejects the wheel. The Python release-type natively handles `pyproject.toml`'s `[project] version` field and applies the SemVer → PEP 440 conversion automatically. Dropping the redundant `extra-files` entry lets the native updater do its job. Refs: #802, #804
1 parent fecf6a3 commit cd0c54f

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

release-please-config.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,7 @@
88
"bump-patch-for-minor-pre-major": false,
99
"versioning": "default",
1010
"prerelease": true,
11-
"prerelease-type": "beta",
12-
"extra-files": [
13-
{
14-
"type": "json",
15-
"path": "pyproject.toml",
16-
"jsonpath": "$.project.version"
17-
}
18-
]
11+
"prerelease-type": "beta"
1912
}
2013
},
2114
"changelog-sections": [

0 commit comments

Comments
 (0)