Use pip==20.2.4 in tox venv 33/71733/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Thu, 10 Dec 2020 18:06:19 +0000 (19:06 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Thu, 10 Dec 2020 18:08:13 +0000 (19:08 +0100)
pip 20.3 is disruptive and would lead to big changes in stable
branches.

Change-Id: Ifc4abd2d1f28bfb63ba66796e1690b398c1e4760
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 9c9f1888d682cf1b794c956d7f6ab448cb42c6d7)

.circleci/config.yml
.travis.yml
tox.ini

index 566e3ce..69a9483 100644 (file)
@@ -11,7 +11,7 @@ jobs:
           command: sudo apt-get update && sudo apt-get install python2.7-dev
       - run:
           name: Run tox
-          command: sudo pip install tox && tox
+          command: sudo pip install tox tox-pip-version && tox
       - store_artifacts:
           path: api/build
           destination: api
index bf0c220..56c2137 100644 (file)
@@ -13,7 +13,7 @@ before_script:
   - sudo add-apt-repository -y ppa:deadsnakes/ppa
   - sudo apt-get update
   - sudo apt-get install python3.7 python3.7-dev
-  - sudo pip install tox
+  - sudo pip install tox tox-pip-version
   - sudo -E docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"
   - (cd .. && git clone https://github.com/estesp/manifest-tool)
   - (cd ../manifest-tool && git checkout v0.9.0)
diff --git a/tox.ini b/tox.ini
index 50315a3..1c6e43b 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -3,6 +3,7 @@ envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,py27,py37,cover,perm
 skipsdist = True
 
 [testenv]
+pip_version = pip==20.2.4
 usedevelop = True
 deps =
   -c{toxinidir}/upper-constraints.txt