Skip to main content

Adds the --py flag to tox to run environments matching a given Python interpreter.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

https://img.shields.io/github/workflow/status/adamchainz/tox-py/CI/main?style=for-the-badge https://img.shields.io/badge/Coverage-100%25-success?style=for-the-badge https://img.shields.io/pypi/v/tox-py.svg?style=for-the-badge https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge pre-commit

Adds the --py flag to tox to run environments matching a given Python interpreter.

Installation

Use pip:

python -m pip install tox-py

Python 3.7 to 3.10 supported.

Only tox 3 is supported. On tox 4, ensure only your target Python version is installed, and run tox --skip-missing-interpreters. (See discussion.)


Testing a Django project? Check out my book Speed Up Your Django Tests which covers loads of ways to write faster, more accurate tests.


Usage

After installation, the plugin will be automatically picked up by tox. It adds one argument: --py, which takes the version to filter environments against. The version can be specified either as a tox.ini-style dotless version number, or the special string current for the version of Python that tox is running under.

For example, to run all Python 3.9 environments:

tox --py 39

Or to run all environments matching the version of Python that tox is running under:

tox --py current

This makes configuring CI really easy: configure your CI to trigger each Python version in parallel, running tox --py current.

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-py-1.2.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tox_py-1.2.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file tox-py-1.2.0.tar.gz.

File metadata

  • Download URL: tox-py-1.2.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for tox-py-1.2.0.tar.gz
Algorithm Hash digest
SHA256 202621df2e2861b4c34b3657f1403686acac90c2bbdf0172911f7926b8784b48
MD5 c9351a59f0e8e31cca5100d6f5b15e1a
BLAKE2b-256 4c1ff94a5d7e54d21448a3d8787604acbb0a8a0aca26c4e574b1b68a3328be4f

See more details on using hashes here.

File details

Details for the file tox_py-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: tox_py-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for tox_py-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 453a97aaba511dfb7584c7102d24b64c7f1d59d2a7454de30cb68c35252e77af
MD5 74eb1c3c8fa5e1bfda9dc48bea20483b
BLAKE2b-256 a6da4a5bb9578950569b39ac5fd7613b76c94178a1cd3f701e8d45bf49fd0c78

See more details on using hashes here.

Supported by

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