tox-uv

1.34.0 · active · verified Thu Apr 09

tox-uv is a plugin that integrates uv, the fast Python package installer and resolver, with tox, the standard virtual environment management and test automation tool. It provides a drop-in replacement for tox's default virtual environment creation and dependency management, leveraging uv for significantly faster operations. The current version is 1.34.0, and it follows an active release cadence with frequent updates.

Warnings

Install

Imports

Quickstart

To use tox-uv, first install it. Then, configure your `pyproject.toml` (recommended for tox 4+) or `tox.ini` to declare `tox-uv` as a required plugin. tox will automatically detect and use `uv` for virtual environment creation and dependency management for all defined test environments.

# pyproject.toml
[tool.tox]
min_version = "4.0"
requires = ["tox-uv"]
env_list = ["py311", "py312"]

[testenv]
package = "skip"
deps = ["pytest"]
commands = ["pytest"]

# Or for a simple tox.ini:
# [tox]
# min_version = 4.0
# requires = tox-uv
# env_list = py

# [testenv:py]
# deps = pytest
# commands = pytest

view raw JSON →