This project has been archived by its maintainers, and is no longer receiving any updates.
tox-py
Unmaintained (2022-12-08)
With the release of tox 4, this package is no longer necessary, and so is not being maintained. You can instead use tox 4’s -f option - see below.
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.11 supported.
Only tox 3 is supported.
On tox 4, you can use the new -f factor option to select environments by Python version:
$ tox -f py310
On GitHub Actions, you can use -f with your matrix python version like so:
jobs:
tests:
name: Python ${{ matrix.python-version }}
strategy:
matrix:
python-version:
- 3.7
- 3.8
- 3.9
- '3.10'
- '3.11'
steps:
- ...
- name: Run tox targets for ${{ matrix.python-version }}
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)
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.
Metadata
Release files for tox-py 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tox-py-1.3.1.tar.gz | 4.8 kB | Without provenance | Details for tox-py-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tox_py-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for tox_py-1.3.1-py3-none-any.whl |
Total release size: 9.1 kB
Release files / tox-py-1.3.1.tar.gz
| Download URL | tox-py-1.3.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
749ceb27062db13268881ec2f9bb0d8673839ea75feb0957f74756025737e256
|
|
BLAKE2b-256 checksum How to use checksums |
0db5a6a46d87686e2b6d306aafde6424348ce789b0bd3c2ae28aa24dfc13749f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / tox_py-1.3.1-py3-none-any.whl
| Download URL | tox_py-1.3.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51393c6df0b0d16c4d0acdfba947820a028c673f7b9e3ff1fd06146827884daf
|
|
BLAKE2b-256 checksum How to use checksums |
7be7f9cb516fc144aa2129f0fb24a4c4d8ee4590873942b6ba5c6ce79742ec5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for tox-py 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.