在 tox 安装依赖项之前将 pip 版本升级到 github 中的 master 分支
Upgrading pip version to master branch in github before tox install dependencies
我想将我的 pip 版本升级到 pip 10.0.0.dev0
,在 github 中使用主 pip 版本,就像 pip install -I https://github.com/pypa/pip/archive/master.zip#egg=pip
在 tox 安装依赖项之前。有办法吗?
我当前的 tox 文件如下所示
[tox]
envlist = py36
[testenv]
passenv = *
deps=
-rrequirements.txt
commands=
pip --version
pytest tests
我认为在安装依赖之前升级pip
的方法是
停止使用 deps
和 运行 commands
中的所有内容:
[testenv]
commands=
pip install -I https://github.com/pypa/pip/archive/master.zip#egg=pip
pip install -rrequirements.txt
pytest tests
我想将我的 pip 版本升级到 pip 10.0.0.dev0
,在 github 中使用主 pip 版本,就像 pip install -I https://github.com/pypa/pip/archive/master.zip#egg=pip
在 tox 安装依赖项之前。有办法吗?
我当前的 tox 文件如下所示
[tox]
envlist = py36
[testenv]
passenv = *
deps=
-rrequirements.txt
commands=
pip --version
pytest tests
我认为在安装依赖之前升级pip
的方法是
停止使用 deps
和 运行 commands
中的所有内容:
[testenv]
commands=
pip install -I https://github.com/pypa/pip/archive/master.zip#egg=pip
pip install -rrequirements.txt
pytest tests