//python/uv:uv_toolchain.bzl

The uv_toolchain rule.

rule uv_toolchain(name, uv, version)

Defines a uv toolchain.

Attributes:
  • name – (Name)

    A unique name for this target.

    mandatory

  • uv – (label)

    The uv executable or a wrapper that forwards its arguments to uv. Runtime dependencies belong in the executable target’s runfiles.

    Changed in version 2.5.0: Executable targets with multiple output files are supported. Lock actions and runnable targets include the executable target’s runfiles.

    mandatory

  • version – (str)

    Version of the uv binary.

    mandatory