Upgrade pip to a particular version during local test and CI.
This commit is contained in:
parent
f0581271f6
commit
ed2c6053de
4 changed files with 9 additions and 5 deletions
|
@ -3,8 +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
|
- scripts/pip install tox==3.10.0
|
||||||
- pip install tox==3.10.0
|
|
||||||
- tox
|
- tox
|
||||||
- apk add --no-cache borgbackup
|
- apk add --no-cache borgbackup
|
||||||
- tox -e end-to-end
|
- tox -e end-to-end
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -1,10 +1,10 @@
|
||||||
1.3.4.dev0
|
1.3.4.dev0
|
||||||
* Part of #125: Color borgmatic (but not Borg) output when using an interactive terminal.
|
* Part of #125: Color borgmatic (but not Borg) output when using an interactive terminal.
|
||||||
* #168: Update README with continuous integration badge.
|
* #168: Update README with continuous integration badge.
|
||||||
|
* #169: Automatically sort Python imports in code.
|
||||||
* Document installing borgmatic with pip install --user instead of a system Python install.
|
* Document installing borgmatic with pip install --user instead of a system Python install.
|
||||||
* Get more reproducible builds by pinning the versions of pip and tox used to run tests.
|
* Get more reproducible builds by pinning the versions of pip and tox used to run tests.
|
||||||
* Factor out build/test configuration from tox.ini file.
|
* Factor out build/test configuration from tox.ini file.
|
||||||
* Automatically sort Python imports in code.
|
|
||||||
|
|
||||||
1.3.3
|
1.3.3
|
||||||
* Add validate-borgmatic-config command, useful for validating borgmatic config generated by
|
* Add validate-borgmatic-config command, useful for validating borgmatic config generated by
|
||||||
|
|
6
scripts/pip
Executable file
6
scripts/pip
Executable 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 $*
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue