是否可以指向 tox 从分支中拉取依赖项(也就是在幕后使用 `pip -e`)?
Is it possible to point tox to pull a dependency from a branch (aka use `pip -e` behind the scenes)?
当 py37 更改未打包到 pypi 时,如何在 tox 中测试 py27 和 py37
repo 分支中存在 py3.7 兼容更改。
它们可以通过 pip -e 手动安装它们 运行 并且 运行ning pytest 没有 tox。
我想 运行 通过 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
对于 VCS URL pip
需要知道应该随 #egg=name
一起提供的包的名称:
git+ssh//repo_url/location1.git@branchname_that_supports_py37#egg=package1
否则你的 tox.ini
看起来不错。我use同样的做法,比如
当 py37 更改未打包到 pypi 时,如何在 tox 中测试 py27 和 py37
repo 分支中存在 py3.7 兼容更改。
它们可以通过 pip -e 手动安装它们 运行 并且 运行ning pytest 没有 tox。
我想 运行 通过 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
对于 VCS URL pip
需要知道应该随 #egg=name
一起提供的包的名称:
git+ssh//repo_url/location1.git@branchname_that_supports_py37#egg=package1
否则你的 tox.ini
看起来不错。我use同样的做法,比如