【发布时间】:2023-04-06 22:03:01
【问题描述】:
我使用tox 来测试一个具有以下基本配置 (tox.ini) 的 python 项目:
[tox]
envlist = py3
isolated_build = True
[testenv]
deps =
pytest
pytest-cov
commands =
pytest --cov {envsitepackagesdir}/foobar --cov-report xml --cov-report term
不幸的是,软件包的可选依赖项(在setup.cfg 中指定)没有安装;原始点子中的相应行将是
pip install .[all]
如何让 tox 安装所有可选依赖项?
【问题讨论】: