diff --git a/.drone.yml b/.drone.yml index c236e1c6..5f94096b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,7 +3,7 @@ pipeline: image: python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} pull: true commands: - - pip install --upgrade pip==19.1.1 + - python -m pip install --upgrade pip==19.1.1 - pip install tox==3.10.0 - tox - apk add --no-cache borgbackup diff --git a/scripts/pip b/scripts/pip new file mode 100755 index 00000000..21cd953e --- /dev/null +++ b/scripts/pip @@ -0,0 +1,6 @@ +#!/usr/bin/env sh + +# Temporary work around for https://github.com/pypa/pip/issues/6434 +python -m pip install --upgrade pip==19.1.1 +python -m pip install --no-use-pep517 $* + diff --git a/tox.ini b/tox.ini index bdce51fd..60b19f15 100644 --- a/tox.ini +++ b/tox.ini @@ -9,8 +9,7 @@ usedevelop = True deps = -rtest_requirements.txt whitelist_externals = sh install_command = - # temporary work around for https://github.com/pypa/pip/issues/6434 - python -m pip install --no-use-pep517 {opts} {packages} + sh scripts/pip {opts} {packages} commands = pytest py36,py37: black --check .