Skip to content

refactor(examples): replace compile_pip_requirements with uv lock rule - #4312

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:use_uv_lock_rule
Oct 22, 2026
Merged

rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:use_uv_lock_rule

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

compile_pip_requirements relies on pip-compile, whereas the
//python/uv:lock.bzl%lock rule uses uv for faster and more modern
lockfile generation.

Replace compile_pip_requirements targets across the examples with
//python/uv:lock.bzl%lock. Where examples previously generated a
separate Windows lockfile via requirements_windows, define a second
lock target passing --python-platform=windows.

`compile_pip_requirements` relies on `pip-compile`, whereas the
`//python/uv:lock.bzl%lock` rule uses `uv` for faster and more modern
lockfile generation.

Replace `compile_pip_requirements` targets across the examples with
`//python/uv:lock.bzl%lock`. Where examples previously generated a
separate Windows lockfile via `requirements_windows`, define a second
`lock` target passing `--python-platform=windows`.
@rickeylev
rickeylev marked this pull request as ready for review October 22, 2026 16:22
@rickeylev
rickeylev added this pull request to the merge queue Oct 22, 2026
Merged via the queue into bazel-contrib:main with commit 3bc38c4 Oct 22, 2026
13 checks passed
@rickeylev
rickeylev deleted the use_uv_lock_rule branch October 22, 2026 17:24
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.

2 participants