python_add_uv()
def python_add_uv(name, uv_version, ruff_version, python_version, venv_name, packages, visibility) -> dictAdd Python to your sysroot.
This sets up the workspace to use the spaces store to cache uv data and
Python installations. It configures VIRTUAL_ENV and
UV_PROJECT_ENVIRONMENT to a virtual environment created under
STORE_PATH/uv during checkout.
Args
name: string: The name of the rule.uv_version: string: uv version from //@packages/star/github.com/astral-sh/uvruff_version: string: ruff version from //@packages/star/github.com/astral-sh/ruffpython_version: string: The version of Python to installvenv_name: string: the folder name for where to store the virtual environmentpackages: list: The Python packages to installvisibility: Rule visibility. See visibility.star for more info.
Returns
The rules added by this function (see rules_new())