Skip to main content

Integration of uv with tox.

Project description

tox-uv

PyPI version PyPI Supported Python Versions check Downloads

tox-uv is a tox plugin which replaces virtualenv and pip with uv in your tox environments. Note that you will get both the benefits (performance) or downsides (bugs) of uv.

How to use

Install tox-uv into the environment of your tox and it will replace virtualenv and pip for all runs:

python -m pip install tox-uv
python -m tox r -e py312 # will use uv

Configuration

  • uv-venv-runner is the ID for the tox environments runner.
  • uv-venv-pep-517 is the ID for the PEP-517 packaging environment.
  • uv-venv-cmd-builder is the ID for the external cmd builder.

uv_seed

This flag, set on a tox environment level, controls if the created virtual environment injects pip/setuptools/wheel into the created virtual environment or not. By default, is off. You will need to set this if you have a project that uses the old legacy editable mode, or your project does not support the pyproject.toml powered isolated build model.

uv_resolution

This flag, set on a tox environment level, informs uv of the desired resolution strategy:

  • highest - (default) selects the highest version of a package that satisfies the constraints
  • lowest - install the lowest compatible versions for all dependencies, both direct and transitive
  • lowest-direct - opt for the lowest compatible versions for all direct dependencies, while using the latest compatible versions for all transitive dependencies

This is a uv specific feature that may be used as an alternative to frozen constraints for test environments, if the intention is to validate the lower bounds of your dependencies during test executions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tox_uv-1.8.2.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

tox_uv-1.8.2-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file tox_uv-1.8.2.tar.gz.

File metadata

  • Download URL: tox_uv-1.8.2.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for tox_uv-1.8.2.tar.gz
Algorithm Hash digest
SHA256 264b829d0e2d117dec27c3b83d90f83ac674f7b52a367d5449fe5073e4508c23
MD5 dd005cb9e05ef2fd73b8574588e3eaab
BLAKE2b-256 f087873e6483f00cebe7c53fc5e45f3e25c8c1919cf6010f3bb23b273283c4b4

See more details on using hashes here.

Provenance

File details

Details for the file tox_uv-1.8.2-py3-none-any.whl.

File metadata

  • Download URL: tox_uv-1.8.2-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for tox_uv-1.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f3159ccf651dca68f882ebb5f81ac695564f89a455c417c04c7eda4efa83ef9d
MD5 a9701a3db29e3b99781f591cb95be5c8
BLAKE2b-256 0cea66e0fb285103f8c4d1234aa6f1f6e756aa4d3b996d0d5f793a32ad58fa06

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page