Skip to content

Commit 9bc7130

Browse files
committed
Merge branch 'pip-19_1-issue' into 'master'
Add workaround for pip 6434 issue (pip v19.1) Closes #54 See merge request python-devs/importlib_metadata!54
2 parents 9092fa9 + 5fec7b3 commit 9bc7130

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ codecov:
3333
dependencies:
3434
- coverage
3535
script:
36-
- codecov -t $CODECOV_TOKEN
36+
- codecov
3737
when: on_success
3838

3939
release:

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)