Skip to content

Fix #484: Increment old-style prerelease with dot - #485

Merged
tomschr merged 1 commit into
masterfrom
484-prerelease
Sep 24, 2026
Merged

tomschr merged 1 commit into
masterfrom
484-prerelease

Conversation

@tomschr

@tomschr tomschr commented Sep 24, 2026

Copy link
Copy Markdown
Member

Fix next_version to correctly increment old-style prerelease versions without a dot separator (for example rc3). Previously, calling next_version("prerelease") on such versions would reset the prerelease number to 1 instead of incrementing it.

Fix `next_version` to correctly increment old-style prerelease
versions without a dot separator (for example `rc3`).
Previously, calling `next_version("prerelease")` on such versions
would reset the prerelease number to 1 instead of incrementing it.
@tomschr
tomschr merged commit 8c0a3f7 into master Sep 24, 2026
17 checks passed
@tomschr
tomschr deleted the 484-prerelease branch September 24, 2026 15:40
tomschr pushed a commit that referenced this pull request Sep 26, 2026
* next_version("prerelease") drops the build on every path except the
  old-style one added in #485: 1.2.3-rc.3+build.5 becomes 1.2.3-rc.4, but
  1.2.3-rc3+build.5 became 1.2.3-rc4+build.5. Pass build=None there as the
  token-change branch below it already does.

* Add changelog entry
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.

1 participant