Skip to content

fix(release): the bump moves uv.lock with the version - #67

Merged
maksimtech merged 1 commit into
mainfrom
fix/bump-moves-uv-lock
Oct 18, 2026
Merged

maksimtech merged 1 commit into
mainfrom
fix/bump-moves-uv-lock

Conversation

@maksimtech

Copy link
Copy Markdown
Owner

pyproject.toml holds the version statically, so uv.lock records it too, and bump_version.py moved only pyproject.toml and __init__.py. On 2026-10-17 the first bump since uv.lock arrived, #66 (2026.47), was refused by Quality:

error: The lockfile at `uv.lock` needs to be updated, but `--check` was provided.

#66 got the lock line by hand, checked with uv 0.12.18, Quality's version. This makes the script do it.

  • update_lock moves the project's own [[package]] entry, nothing that only shares the number, and keeps the line endings.
  • BUMPED_FILES (what the bump commits) includes uv.lock.
  • main() calls it after the other two, before the suite.
  • test_the_lock_carries_the_version_pyproject_states holds the real lock to the real version, so the suite bump_version.py runs after writing the version refuses a bump that leaves the lock behind, on this machine, before any commit.

TDD: red, 5 failed (the two main() sequences and three TestLock cases); green, 71 passed across test_bump_version, test_release_through_pr, test_release_script_encoding. ruff and mypy clean.

Only patchradar is affected: the other five have dynamic = ["version"] and their locks carry no version for the project.

CHANGELOG: under [Unreleased], since 2026.47 is already on its way.

🤖 Generated with Claude Code

pyproject.toml holds the version statically, so uv.lock records it too, and
bump_version.py moved only pyproject.toml and __init__.py. On 2026-10-17 the
first bump since uv.lock arrived, 2026.47, was refused by Quality ("The
lockfile at uv.lock needs to be updated") and the lock was moved by hand on
its branch.

update_lock moves the project's own entry and nothing that only shares the
number, the bump commits uv.lock, and a test holds the lock to the version
pyproject.toml states, so the suite bump_version.py runs after writing the
version refuses a bump that leaves it behind.

Red: 5 failed, green: 71 passed across the release tests; ruff, mypy clean.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@codspeed

codspeed Bot commented Oct 17, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ 11 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

✅ 17 untouched benchmarks


Comparing fix/bump-moves-uv-lock (099fe19) with main (7f4cc54)

Open in CodSpeed

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Oct 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@maksimtech
maksimtech merged commit ca770e2 into main Oct 18, 2026
25 checks 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