Repository navigation
fix: bump the version of prereleases in src/copick_shared_ui/__init__.py - #75
Merged
Merged
Conversation
release-please's Python updater matches the version with [0-9]+\.[0-9]+\.[0-9]+(?:-\w+)?, which a dotted prerelease suffix does not fit: from "2.0.0-alpha.1" on it silently leaves the version alone, so a release builds the previous version again (copick 2.0.0-alpha.2 and copick-mcp 2.0.0-alpha.2 were refused by PyPI as duplicates). - Both release-please configs list src/copick_shared_ui/__init__.py as a generic extra file, and its version line carries an x-release-please- version marker; the generic updater handles dotted prereleases and the final 2.0.0. - The version stays 2.0.0-alpha.1, what v2.0 is; the next alpha would otherwise have built alpha.1 again. - The publish job compares the built wheel's version with the release's and fails, naming the file, instead of on PyPI's duplicate check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
uermel
pushed a commit
that referenced
this pull request
Oct 6, 2026
🤖 I have created a release *beep* *boop* --- ## [2.0.0-alpha.2](copick-shared-ui-v2.0.0-alpha.1...copick-shared-ui-v2.0.0-alpha.2) (2026-10-06) ### 🐞 Bug Fixes * bump the version of prereleases in src/copick_shared_ui/__init__.py ([#75](#75)) ([7130602](7130602)) --- Merging this PR will publish a copick-shared-ui alpha prerelease to PyPI. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The same release-please fix as copick/copick#500 (and copick-mcp#64), for this repo's
v2.0prerelease line.Cause: release-please's Python updater (17.6.0) matches
__version__with[0-9]+\.[0-9]+\.[0-9]+(?:-\w+)?. A dotted prerelease suffix (-alpha.1) does not fit-\w+, so from the first alpha on, every prerelease bump silently leaves the version file alone, and so would the final 2.0.0. The release then builds the previous version, which PyPI refuses as a duplicate. That is what happened to copick 2.0.0-alpha.2 and copick-mcp 2.0.0-alpha.2.mainis unaffected (plain versions).Fix:
src/copick_shared_ui/__init__.pyas a generic extra file, and its version line carries# x-release-please-version. The generic updater handles dotted prereleases.Checked
uv build --wheelbuilds the version in the manifest; the configs and the workflow parse.🤖 Generated with Claude Code