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.

uv_python_preference

This flag, set on a tox environment level, controls how uv select the Python interpreter.

By default, uv will attempt to use Python versions found on the system and only download managed interpreters when necessary. However, It's possible to adjust uv's Python version selection preference with the python-preference option.

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.11.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

tox_uv-1.11.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tox_uv-1.11.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tox_uv-1.11.0.tar.gz
Algorithm Hash digest
SHA256 00c6193af6b4ae567a21a98eb7540673e1a8709902e0266c3c9a627758250215
MD5 75c7c781c1f4a945f442dc0c59bdff78
BLAKE2b-256 cbf9b9a9e57b8cb73651a8e5a01d4bffb4f810f7e85758dcc3fe4c6b5596e9fd

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tox_uv-1.11.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tox_uv-1.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22c9d36fdc65f8a2a4001174aa02017bb82dde9ef88a243a4a2f4241c9fe1e78
MD5 7e14bb17b14e966d33a9596233d89629
BLAKE2b-256 27809ec461876e9f72c361828521af3a052d995805996e7d6ad35051d0f10979

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