fix(scripts): Only update poetry version in release script#398
Merged
fix(scripts): Only update poetry version in release script#398
Conversation
The bump command was replacing ALL version strings in pyproject.toml, including typer version, python_version in mypy config, and minversion in pytest config. Now it only updates the [tool.poetry] version. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.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
scripts/release.py bumpcommand was replacing ALL version strings in pyproject.toml, corrupting other version configs.Problem
Before this fix, running
python scripts/release.py bump 0.9.1would change:version = "0.8.0"→version = "0.9.1"(correct)typer = {version = "^0.15.0"}→typer = {version = "0.9.1"}(wrong!)python_version = "3.13"→python_version = "0.9.1"(wrong!)minversion = "7.0.0"→minversion = "0.9.1"(wrong!)Fix
Updated the regex to only match the version in
[tool.poetry]section by anchoring it to the preceding lines.🤖 Generated with Claude Code