Skip to main content

Create a virtual environment to run Tox

[Home | Download | GitLab | PyPI | ReadTheDocs]

Overview

The vetox tool creates a virtual environment, installs a suitable version of Tox within it, and then runs Tox with the specified arguments. It does not use any modules outside of the Python standard library, so it is suitable for use when testing with different Python versions.

Note that the vetox tool's main file, the src/vetox/__main__.py file in the source distribution, may be copied into another project's source tree and invoked using a Python 3.x interpreter.

Invocation

The vetox tool accepts two subcommands: run and run-parallel, as well as a -c / --conf option with the path to a tox.ini file. Any positional arguments after the run or run-parallel subcommand are passed on to Tox unmodified.

Examples

Run Tox in an ephemeral virtual environment, use the tox.ini file found in the current working directory, run all the default Tox environments in parallel:

vetox run-parallel

Same, but use Tox 3.x and pass it some environment selection options:

vetox run-parallel -t '>= 3, < 4' -- -e first,second

Use the uv tool to create the ephemeral virtual environment faster, and (independently) install the tox-uv plugin in there so that Tox can create its own virtual environments faster:

vetox --uv --tox-uv run-parallel

Use the tox.ini file in the parent directory, run the test environments sequentially, one by one:

vetox -c ../tox.ini run

Display the version of the vetox tool:

vetox version

Display the list of features supported by the vetox tool in a format compatible with the feature-check tool:

vetox features

If the src/vetox/__main__.py file was copied to another project, it may be used to run that project's test suite:

python3 tests/vetox.py run-parallel

Contact

The vetox tool was written by Peter Pentchev. It is developed in a GitLab repository. This documentation is hosted at Ringlet with a copy at ReadTheDocs.

Metadata

Release files for vetox 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vetox 0.2.1
File Size Uploaded
vetox-0.2.1.tar.gz 15.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vetox 0.2.1
File Interpreter ABI Platform
vetox-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 22.4 kB

Release files / vetox-0.2.1.tar.gz

Download URL vetox-0.2.1.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
758dd53783c0c842d130ea477f0244ad1697c54cae2e33469d026da36b2ac68e
BLAKE2b-256 checksum
How to use checksums
107f0be57bbe54ac3b676eee00f3d8bf35c6d86f6d9fc1815d8c700529214434
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / vetox-0.2.1-py3-none-any.whl

Download URL vetox-0.2.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b1f5aec8edcdb697fed95a43961750fc39a86dc8fae81b1672a3df5dc6f99ef
BLAKE2b-256 checksum
How to use checksums
edbee4f5ad83b67688cc6cb548c2aac47d4784dcad7079597334a553c1cc4d6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page