Skip to content

Commit

Permalink
Use a custom install_command to work around tox-dev/tox#786.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 10, 2018
1 parent 6c52f6b commit 24633cb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
19 changes: 19 additions & 0 deletions pip-10-install.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""
Upgrade to pip 10 before installing requirements, working
around error reported in tox-dev/tox#786
"""

import sys
import subprocess
import shlex


def main():
subprocess.check_call(shlex.split(
'python -m pip install git+https://github.com/pypa/pip@release/10.0.0'
))
subprocess.check_call(shlex.split(
'python -m pip install') + sys.argv[1:])


__name__ == '__main__' and main()
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ envlist = python
minversion = 2.4

[testenv]
install_command = python pip-10-install.py {opts} {packages}
deps =
setuptools>=31.0.1
# workaround for yaml/pyyaml#126
# git+https://github.com/yaml/pyyaml@master#egg=pyyaml;python_version=="3.7"

# test against PIP 10 beta
git+https://github.com/pypa/pip@release/10.0.0
commands =
py.test {posargs}
python setup.py checkdocs
Expand Down

0 comments on commit 24633cb

Please sign in to comment.