tox-uv-bare

1.35.0 · active · verified Thu Apr 09

tox-uv-bare is a plugin for tox that integrates the `uv` dependency manager, allowing tox to leverage `uv`'s speed for virtual environment creation and dependency resolution. This 'bare' package requires users to provide their own `uv` installation. The current version is 1.35.0, and the project has a frequent release cadence, often issuing multiple bug fix and minor feature updates per month.

Warnings

Install

Imports

Quickstart

To use tox-uv-bare, you need to enable it as a plugin in your `tox.ini` or `pyproject.toml` file under the `[tox]` section. Remember that `uv` itself must be installed and available in your system's PATH, as this is the 'bare' package. `tox-uv-bare` integrates `uv` for virtual environment creation and dependency installation, but does not provide `uv` as a Python dependency within the created environment.

# tox.ini
[tox]
requires = tox-uv-bare
plugins = tox_uv
env_list = py

[testenv:py]
commands = python -c "import sys; print(f'Python: {sys.version}')"
           python -c "import uv; print(f'uv is available')" # This command will fail, uv is not imported into the venv directly
           # To check uv is working, ensure it was used to create the venv and install deps
           python -c "print('Hello from uv-managed environment!')"

# Or a minimal example in pyproject.toml
# [tool.tox]
# requires = ["tox-uv-bare"]
# plugins = ["tox_uv"]
# env_list = ["py"]

# [testenv:py]
# commands = ["python -c \"import sys; print(f'Python: {sys.version}')\""]

view raw JSON →