Skip to content

Commit

Permalink
Upgrade pip to a particular version during local test and CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
witten authored and Gitea committed May 14, 2019
2 parents 2cffa8d + 60b1f99 commit 869cccf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions scripts/pip
Original file line number Diff line number Diff line change
@@ -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 $*

3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,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
sh scripts/black
Expand Down

0 comments on commit 869cccf

Please sign in to comment.