python_add_uv()
def python_add_uv(name, uv_version, ruff_version, python_version, packages)Add Python to your sysroot.
This sets up the workspace to use the spaces store to cache uv python
installations. It sets VIRTUAL_ENV and UV_PROJECT_ENVIRONMENT to the workspace venv directory
which is created by a setup rule created with this function.
Args
name-strThe name of the rule.uv_version-struv version from //@packages/star/github.com/astral-sh/uvruff_version-strruff version from //@packages/star/github.com/astral-sh/ruffpython_version-strThe version of Python to installpackages-[str]The Python packages to install