I use tox to test a python project with the following basic config (tox.ini
):
[tox]
envlist = py3
isolated_build = True
[testenv]
deps =
pytest
pytest-cov
commands =
pytest --cov {envsitepackagesdir}/foobar --cov-report xml --cov-report term
Unfortunately, the package's optional dependencies (as specified in setup.cfg
) don't get installed; the corresponding line in raw pip would be
pip install .[all]
How to make tox install all optional dependencies?