tox-external-wheels
Use externally created wheels with Tox
Features
- The ability to define external wheel files to tests in the tox config (example
tox.inifile):
[tox]
envlist = py-{a,b,c}
[testenv]
external_wheels =
a: {toxinidir}/dist/*py27*.whl
b: {toxinidir}/dist/*py37*.whl
commands =
a,b: pytest test
c: pip list
Or defined in a command line argument
tox -e 'py-{a,b,c}' --external_wheels 'a:dist/*py27*.whl;b:dist/*py37*.whl'
Notes: In this case py-c falls back to installing from source. tox-external_wheels now supports ! in env names
- The ability to define an external command to build wheel(s) with (example
tox.inifile):
[tox]
envlist = py-{a,b,c}
[testenv]
external_build=
./prepare_build.sh
./build.sh
external_wheels =
{toxinidir}/dist/*.whl
commands =
a,b: pytest test
c: pip list
Or defined in a command line argument
tox -e 'py-{a,b,c}' --external_build './build.sh'
Note: if command exits with non-zero return code, error will be reported and exception will be raised.
- Support installing dependencies from external wheel files by adding their name into the
external_wheelsin config
[tox]
envlist = py-{a,b,c}
[testenv]
deps = six
external_wheels =
a: {toxinidir}/dist/*py27*.whl (six: six-*.whl[optional_extra])
b: {toxinidir}/dist/*py37*.whl
commands =
a,b: pytest test
c: pip list
Or defined in a command line argument
tox -e 'py-{a,b,c}' --external_wheels 'a:dist/*py27*.whl (six: six-*.whl[optional_extra]);b:/dist/*py37*.whl'
Requirements
- tox
Installation
You can install "tox-external-wheels" via pip from PyPI:
pip install tox-external-wheels
Usage
Use the external_wheel option. Like shown in usage
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the MIT license, tox-external-wheels is
free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Metadata
Release files for tox-external-wheels 0.1.8
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-external-wheels-0.1.8.tar.gz | 27.3 kB | Without provenance | Details for tox-external-wheels-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tox_external_wheels-0.1.8-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for tox_external_wheels-0.1.8-py2.py3-none-any.whl |
Total release size: 34.4 kB
Release files / tox-external-wheels-0.1.8.tar.gz
| Download URL | tox-external-wheels-0.1.8.tar.gz |
|---|---|
| Size | 27.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5eca7c2017c547302146af7dc04c1b35a1142c4388fc7e01db7a695887c6498
|
|
BLAKE2b-256 checksum How to use checksums |
fa0d129ea3bc669b1b390d5c4e304f265232d6bc865445abf66a86edef9c510b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
|
Release files / tox_external_wheels-0.1.8-py2.py3-none-any.whl
| Download URL | tox_external_wheels-0.1.8-py2.py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2f8072e2b953f58ff8b083e9d7a8ccacd1044687fb8f80de6a9f9fd85cefe892
|
|
BLAKE2b-256 checksum How to use checksums |
f22cbb20ff2551f3bbfdabb71e657ebda7fe54c73d715f0c4b8ed15703fa3c9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
|
Security for tox-external-wheels 0.1.8
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.