【问题标题】:Upgrading pip version to master branch in github before tox install dependencies在 tox 安装依赖项之前将 pip 版本升级到 github 中的 master 分支
【发布时间】:2018-03-15 21:10:36
【问题描述】:

我想将我的 pip 版本升级到 pip 10.0.0.dev0,在 github 中使用主 pip 版本,例如 pip install -I https://github.com/pypa/pip/archive/master.zip#egg=pipbefore tox 安装依赖项。有办法吗?

我当前的 tox 文件如下所示

[tox]
envlist = py36

[testenv]
passenv = *
deps=
  -rrequirements.txt
commands=
  pip --version
  pytest tests

【问题讨论】:

    标签: python pip tox


    【解决方案1】:

    我认为在安装依赖项之前升级pip 的方法是 停止使用deps 并运行commands 中的所有内容:

    [testenv]
    commands=
      pip install -I https://github.com/pypa/pip/archive/master.zip#egg=pip
      pip install -rrequirements.txt
      pytest tests
    

    【讨论】:

      猜你喜欢
      • 2015-07-04
      • 2016-08-11
      • 2016-08-21
      • 1970-01-01
      • 2017-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-30
      相关资源
      最近更新 更多