//python/uv
- //python/uv:current_toolchain
Exposes the resolved
uvtoolchain for the target/execution platform as an executable target and template variable provider ($(UV)and$(UV_BIN)). Shorter aliases for this target are also available at//python/uv/bin:uvand@uv//:uv.Can be run directly with
bazel run:bazel run @rules_python//python/uv:current_toolchain -- --help
Or integrated with
bazel_env.bzlto exposeuvon your localPATH:bazel_env( name = "bazel_env", toolchains = { "uv": "@rules_python//python/uv:current_toolchain", }, tools = { "uv": "$(UV)", }, )
Added in version 2.5.0.
- //python/uv:uv_toolchain_type
Toolchain type identifier for the
uvtoolchain, implemented byuv_toolchain.