Skip to content

Commit 9ca0cc7

Browse files
committed
Add workaround for issue with pip 19.1, fixes #54
1 parent 1e2724e commit 9ca0cc7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ skip_missing_interpreters = True
66

77

88
[testenv]
9+
# Pin pip at version less than 19.1, see https://gitlab.com/python-devs/importlib_metadata/issues/54 for background
10+
# Full discussion at https://discuss.python.org/t/pip-19-1-and-installing-in-editable-mode-with-pyproject-toml/1553
11+
# One liner copied from https://github.com/ansible/molecule/pull/2009/files
12+
install_command =
13+
python -c 'import subprocess, sys; pip_inst_cmd = sys.executable, "-m", "pip", "install"; subprocess.check_call(pip_inst_cmd + ("pip<19.1", )); subprocess.check_call(pip_inst_cmd + tuple(sys.argv[1:]))' {opts} {packages}
914
commands =
1015
nocov: python -m unittest discover
1116
cov,diffcov: python -m coverage run {[coverage]rc} -m unittest discover {posargs}

0 commit comments

Comments
 (0)