Python/tox将依赖项安装为可编辑
在中,指定要在其创建的virtualenvs中安装的软件包Python/tox将依赖项安装为可编辑,python,testing,tox,Python,Testing,Tox,在中,指定要在其创建的virtualenvs中安装的软件包 [testenv] deps = mock pytest commands = python setup.py test -q python setup.py flake8 本例告诉tox在运行测试之前,将mock和pytest安装到每个virtualenv中。Tox将使用pip从PyPI安装这些依赖项 我如何告诉tox从本地签出而不是从PyPI安装一个依赖项?我仍然希望从PyPI安装其余的依赖项。一种
[testenv]
deps =
mock
pytest
commands =
python setup.py test -q
python setup.py flake8
本例告诉tox在运行测试之前,将mock和pytest安装到每个virtualenv中。Tox将使用pip从PyPI安装这些依赖项
我如何告诉tox从本地签出而不是从PyPI安装一个依赖项?我仍然希望从PyPI安装其余的依赖项。一种方法是从deps变量中删除依赖项,并将本地pip install作为tox将在其测试运行中执行的第一个命令来运行
[testenv]
deps =
mock
commands =
pip install -e ~/path/to/pytest
python setup.py test -q
python setup.py flake8