回购分支中存在与py3.7兼容的更改。
可以通过pip -e手动运行它们,安装它们并在没有tox的情况下运行pytest。
我想通过tox运行它们,但我无法找出正确的字符串来提供deps列表,或者这可能是通过另一种方式完成的。
尝试的解决方案:
tox.ini
[tox]
envlist = py27,py37
[testenv:py27]
deps =
pytest
pytest-cov
pytest-mock
pylint
; packages specified by the setup.py cover the other dependencies for py2.7
commands =
pytest -v
[testenv:py37]
deps =
pytest
pytest-cov
pytest-mock
pylint
git+ssh//repo_url/location1.git@branchname_that_supports_py37
git+ssh//repo_url/location2.git@branchname_that_supports_py37
git+ssh//repo_url/location3.git@branchname_that_supports_py37
git+ssh//repo_url/location4.git@branchname_that_supports_py37
git+ssh//repo_url/location5.git@branchname_that_supports_py37
git+ssh//repo_url/location6.git@branchname_that_supports_py37
git+ssh//repo_url/location7.git@branchname_that_supports_py37
git+ssh//repo_url/location8.git@branchname_that_supports_py37
commands =
pytest -v
答案 0 :(得分:3)
对于VCS URL,pip
需要知道#egg=name
应当提供的软件包名称:
git+ssh//repo_url/location1.git@branchname_that_supports_py37#egg=package1
否则,您的tox.ini
看起来不错。例如,我use使用相同的方法。