Skip to content

build(uv): bump default uv to 0.13.1 - #4273

Merged
aignas merged 1 commit into
bazel-contrib:mainfrom
gfrankliu:uv-bump-0.13.1
Oct 16, 2026
Merged

aignas merged 1 commit into
bazel-contrib:mainfrom
gfrankliu:uv-bump-0.13.1

Conversation

@gfrankliu

Copy link
Copy Markdown
Contributor

Scoped override-dependencies in [tool.uv], e.g.
{ package = { name = "a" }, dependencies = ["x>=1.0"] }, need uv 0.11.25 or
newer. The default uv (0.11.2) fails to parse them, so users of the lock
rule had to set uv.configure(version = ...) themselves. This bumps the
default and the dev uv to 0.13.1. It supports the same platforms as 0.11.2.

Before: a pyproject.toml with a scoped override passed to lock fails to
parse with the default uv.
After: it works without any uv.configure override.

Fixes #2992

Scoped override-dependencies in [tool.uv] need uv 0.11.25 or newer; the
previous default (0.11.2) fails to parse them.

Fixes bazel-contrib#2992
Copilot AI balanced review requested due to automatic review settings October 15, 2026 17:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Release-artifact compatibility, platform support, and scoped-override behavior remain unverified.

0 open findings

What changed in this PR

Updates uv to 0.13.1 so the lock rule can support scoped dependency overrides without a user-supplied version override.

Changes:

  • Bumps default, development, and integration-test uv versions.
  • Adds a release note explaining scoped-override support.
File Description
tests/​integration/​uv_lock/​MODULE.bazel Updates integration-test uv to 0.13.1.
news/​2992.changed.md Documents the version bump and scoped-override support.
MODULE.bazel Updates default and development uv to 0.13.1.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@gfrankliu

Copy link
Copy Markdown
Contributor Author

Notes on what Copilot listed as unverified:

  • Release artifacts: 0.13.1 downloads and runs via the dist manifest. //tests/uv/... (57 tests) and //tests/integration:uv_lock_test_bazel_self pass locally.
  • Platforms: the 0.13.1 dist-manifest.json lists the same target triples as 0.11.2, so no registered platform loses a uv binary.
  • Scoped overrides: I verified this outside this repo. A lock target with a pyproject.toml scoped override resolves as expected on 0.13.1, and a genuine conflicting requirement still fails resolution. There's no test for it here yet. @aignas, would you like me to add one under tests/uv/lock/ (scoped override in pyproject.toml plus a check of the expected output), or keep this PR to the version bump?

@aignas

aignas commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

It's OK to not have a test for this because it is just a uv feature with which we have very loose coupling.

@aignas
aignas added this pull request to the merge queue Oct 16, 2026
Merged via the queue into bazel-contrib:main with commit 92f36f1 Oct 16, 2026
5 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.

Patch METADATA file in the whl doesn't work

3 participants