Skip to content

fix(scripts): Only update poetry version in release script#398

Merged
arockwell merged 1 commit intomainfrom
fix/release-script-version
Jan 29, 2026
Merged

fix(scripts): Only update poetry version in release script#398
arockwell merged 1 commit intomainfrom
fix/release-script-version

Conversation

@arockwell
Copy link
Owner

Summary

The scripts/release.py bump command was replacing ALL version strings in pyproject.toml, corrupting other version configs.

Problem

Before this fix, running python scripts/release.py bump 0.9.1 would 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

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>
@arockwell arockwell merged commit 2bd91f3 into main Jan 29, 2026
1 check passed
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