Skip to content

version.py: accept semver-style prerelease tags (v0.10.0-rc.1) - #44

Merged
mlin merged 1 commit into
mlin:mainfrom
Wid-L-Hacker:conrad/version-py-semver-rc
Oct 29, 2026
Merged

mlin merged 1 commit into
mlin:mainfrom
Wid-L-Hacker:conrad/version-py-semver-rc

Conversation

@Wid-L-Hacker

Copy link
Copy Markdown
Contributor

Found dry-running the release procedure: release tags are semver-style (v0.10.0-rc.1) because Cargo requires that form for the crate version, but version.py only parsed the PEP 386 form (0.10.0rc1) — a semver tag made get_version() raise, which would have failed the release's sdist step. This normalizes the prerelease segment (-rc.1 to rc1) before parsing; final and historic rc tags parse as before. Verified against synthetic tags in a scratch clone (v0.10.0-rc.1 yields 0.10.0rc1; the original version.py raises on it).

@mlin
mlin merged commit 6964871 into mlin:main Oct 29, 2026
12 of 14 checks passed
@mlin
mlin deleted the conrad/version-py-semver-rc branch October 29, 2026 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants