Upgrade pip to a particular version during local test and CI.

This commit is contained in:
Dan Helfman 2019-05-14 19:17:30 +00:00 committed by Gitea
commit 869cccf884
3 changed files with 8 additions and 3 deletions

View file

@ -3,7 +3,7 @@ pipeline:
image: python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} image: python:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
pull: true pull: true
commands: commands:
- pip install --upgrade pip==19.1.1 - python -m pip install --upgrade pip==19.1.1
- pip install tox==3.10.0 - pip install tox==3.10.0
- tox - tox
- apk add --no-cache borgbackup - apk add --no-cache borgbackup

6
scripts/pip Executable file
View file

@ -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 $*

View file

@ -8,8 +8,7 @@ usedevelop = True
deps = -rtest_requirements.txt deps = -rtest_requirements.txt
whitelist_externals = sh whitelist_externals = sh
install_command = install_command =
# temporary work around for https://github.com/pypa/pip/issues/6434 sh scripts/pip {opts} {packages}
python -m pip install --no-use-pep517 {opts} {packages}
commands = commands =
pytest pytest
sh scripts/black sh scripts/black