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/codecov/c/github/adamchainz/tox-py/main?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.6 to 3.9 supported.


Testing a Django project? Check out my book Speed Up Your Django Tests which covers loads of best practices so you can 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.0.0.tar.gz (4.3 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.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tox-py-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for tox-py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 06bb6bd3e0244e29a3e29eab34ca347132690f2d6734f3ce1a0dffe97964a8f5
MD5 854f6bdc28f80ca90c60a484402f22db
BLAKE2b-256 8b7734d8c5e8bb492433c19846a8d92dbdac412a1e2058400a53a33e76eabea3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tox_py-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for tox_py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 412bbbe4dc69035df975e7c88ace381c556584fb49a03fef1a0900bc3408717a
MD5 31d55ec8bef6e38f0679584e244cf8cc
BLAKE2b-256 11a25cdf9f35ae55188ddd5687f3185eabd5c21bf4e3b1016aa9723c41cbfda2

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