py3.7 兼容的更改存在于 repo 分支中。
它们可以通过 pip -e 安装它们并运行 pytest 来手动运行,而无需毒害。
我想通过 tox 来运行它们,但我无法找出正确的字符串来提供 deps 列表,或者也许这是以另一种方式完成的。
尝试的解决方案:
毒物文件
[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
Run Code Online (Sandbox Code Playgroud)
对于 VCS URLpip需要知道应提供的包的名称#egg=name:
git+ssh//repo_url/location1.git@branchname_that_supports_py37#egg=package1
Run Code Online (Sandbox Code Playgroud)
否则你tox.ini看起来不错。例如,我使用相同的方法。
| 归档时间: |
|
| 查看次数: |
1739 次 |
| 最近记录: |