Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 28, 2019
2 parents a1815cc + 123b0b2 commit 32ce0dd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
dist: xenial
sudo: false
language: python

python:
Expand Down
20 changes: 20 additions & 0 deletions pin-pip.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"""
Downgrade to pip 19.0 before installing requirements, working
around limitations introduced in 19.1 (ref
https://github.com/pypa/pip/issues/6434)
"""

import sys
import subprocess
import shlex


def main():
subprocess.check_call(shlex.split(
'python -m pip install pip<19.1'
))
subprocess.check_call(shlex.split(
'python -m pip install') + sys.argv[1:])


__name__ == '__main__' and main()
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[tox]
envlist = python
minversion = 2.4
minversion = 3.2
# https://github.com/jaraco/skeleton/issues/6
tox_pip_extensions_ext_venv_update = true

[testenv]
install_command = python pin-pip.py {opts} {packages}
deps =
setuptools>=31.0.1
commands =
Expand Down

0 comments on commit 32ce0dd

Please sign in to comment.