Use externally created wheels with Tox
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tox-external-wheels-0.1.8.tar.gz.
File metadata
- Download URL: tox-external-wheels-0.1.8.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5eca7c2017c547302146af7dc04c1b35a1142c4388fc7e01db7a695887c6498
|
|
| MD5 |
2672a68527b1ef542150c928ebe6dc91
|
|
| BLAKE2b-256 |
fa0d129ea3bc669b1b390d5c4e304f265232d6bc865445abf66a86edef9c510b
|
File details
Details for the file tox_external_wheels-0.1.8-py2.py3-none-any.whl.
File metadata
- Download URL: tox_external_wheels-0.1.8-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f8072e2b953f58ff8b083e9d7a8ccacd1044687fb8f80de6a9f9fd85cefe892
|
|
| MD5 |
f4d126dd395c3e27b8a4116acd8a3a29
|
|
| BLAKE2b-256 |
f22cbb20ff2551f3bbfdabb71e657ebda7fe54c73d715f0c4b8ed15703fa3c9a
|