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.ini
file):
[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.ini
file):
[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_wheels
in config
[tox]
envlist = py-{a,b,c}
[testenv]
deps = six
external_wheels =
a: {toxinidir}/dist/*py27*.whl (six: six-*.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 (six: six-*.whl);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
Hashes for tox-external-wheels-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23ee0a8b8061867c6091bc50d9c073ee02b115f2ac9ecc9ead269a148ef04157 |
|
MD5 | d6883aa896a80e77a8a6311681eecfa9 |
|
BLAKE2b-256 | edaffa4bb92b5e8ab640834344d2ea99406e9adfb222adc95f4d6bfe10344e47 |
Hashes for tox_external_wheels-0.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c915d3bb9fbe73f3ee11bbb15bf961ba9d9dc13af6e6ee9350515f17ceabecab |
|
MD5 | 5e14b28b2c5d002fd73995820d1bfba8 |
|
BLAKE2b-256 | 5422efff5a187bdb92f232409b660827f319bd2fdd33a2f98aa0dae8c579930d |