Skip to content

build(python): one version source so release PRs keep uv.lock fresh - #27

Merged
amirshabanics merged 1 commit into
mainfrom
ci/release-pr-checks
Oct 27, 2026
Merged

amirshabanics merged 1 commit into
mainfrom
ci/release-pr-checks

Conversation

@amirshabanics

Copy link
Copy Markdown
Contributor

Fixes the CI failures on the release PRs #14 and #16.

  1. Stale uv.lock on Python releases (chore(main): release python 0.2.0 #14).
    • Cause: release-please raises version in pyproject.toml, but uv.lock records it too, so uv sync --locked failed on every job. After the release merged it would have failed on main as well.
    • Fix: the version is now dynamic, read by hatchling from src/bitpin_sdk/__init__.py, which release-please already updates through x-release-please-version. uv.lock no longer stores the project version.
    • Checked: uv lock --check stays green after a version bump; the build produces the right version; release-please's pyproject updater handles the dynamic version without errors.
  2. PR-title check (chore(main): release python 0.2.0 #14, chore(main): release go 0.1.0 #16). release-please titles its PRs chore(main): release …, and the check now allows the main scope.

build, so no new release. After this merges, release-please rebuilds #14 without the lock problem.

🤖 Generated with Claude Code

…allow the main scope in PR titles

release-please raised project.version in pyproject.toml, but uv.lock also
recorded the version, so uv sync --locked failed on the release PR and
would have failed on main after the release. The version is now dynamic
(read from src/bitpin_sdk/__init__.py, which release-please already
updates), and uv.lock no longer stores it.

release-please titles its PRs chore(main): ...; the PR-title check now
accepts the main scope.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@amirshabanics amirshabanics self-assigned this Oct 27, 2026
@amirshabanics
amirshabanics merged commit c5f01cd into main Oct 27, 2026
21 checks passed
@amirshabanics
amirshabanics deleted the ci/release-pr-checks branch October 27, 2026 17:31
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