Skip to content

Commit af25abe

Browse files
authored
Merge pull request #102 from cognifloyd/update-pip-pin
[BUGFIX] Pin the same pip version as core st2
2 parents a56ff36 + a2ea4ae commit af25abe

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

.circle/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ requirements: virtualenv .clone_st2_repo .install-runners
283283
@echo
284284
@echo "==================== requirements ===================="
285285
@echo
286-
. $(VIRTUALENV_DIR)/bin/activate && $(VIRTUALENV_DIR)/bin/pip install --upgrade "pip>=9.0,<9.1"
286+
. $(VIRTUALENV_DIR)/bin/activate && $(VIRTUALENV_DIR)/bin/pip install --upgrade "pip==20.0.2"
287287
. $(VIRTUALENV_DIR)/bin/activate && $(VIRTUALENV_DIR)/bin/pip install --cache-dir $(HOME)/.pip-cache -q -r $(CI_DIR)/.circle/requirements-dev.txt
288288
. $(VIRTUALENV_DIR)/bin/activate && $(VIRTUALENV_DIR)/bin/pip install --cache-dir $(HOME)/.pip-cache -q -r $(CI_DIR)/.circle/requirements-pack-tests.txt
289289

@@ -292,7 +292,7 @@ requirements-ci:
292292
@echo
293293
@echo "==================== requirements-ci ===================="
294294
@echo
295-
. $(VIRTUALENV_DIR)/bin/activate && $(VIRTUALENV_DIR)/bin/pip install --upgrade "pip>=9.0,<9.1"
295+
. $(VIRTUALENV_DIR)/bin/activate && $(VIRTUALENV_DIR)/bin/pip install --upgrade "pip==20.0.2"
296296
. $(VIRTUALENV_DIR)/bin/activate && $(VIRTUALENV_DIR)/bin/pip install --cache-dir $(HOME)/.pip-cache -q -r $(CI_DIR)/.circle/requirements-dev.txt
297297
. $(VIRTUALENV_DIR)/bin/activate && $(VIRTUALENV_DIR)/bin/pip install --cache-dir $(HOME)/.pip-cache -q -r $(CI_DIR)/.circle/requirements-pack-tests.txt
298298

.circle/dependencies

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ sudo apt-get -y install libldap2-dev libsasl2-dev
3838
# Hit github's API to keep the PAT active (without failing if it's not)
3939
(GH_TOKEN=${MACHINE_PASSWORD} gh repo view | head -n2) || true
4040

41-
sudo pip install -U "pip>=9.0,<9.1" setuptools virtualenv
41+
# This should track the pinned version of pip in st2's Makefile
42+
# Please sync this version with .circle/Makefile and .circleci/config.yml
43+
PIP_VERSION="20.0.2"
4244

43-
virtualenv ~/virtualenv
45+
sudo pip install -U "pip==${PIP_VERSION}" setuptools virtualenv
46+
virtualenv --pip "${PIP_VERSION}" ~/virtualenv
4447
source ~/virtualenv/bin/activate
4548

4649
# Install StackStorm requirements

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
name: Download and Install Dependencies
2222
command: |
2323
git clone --depth 1 --single-branch --branch "${LINT_CONFIGS_BRANCH:-master}" https://github.com/StackStorm/lint-configs.git ~/ci/lint-configs
24-
sudo pip install -U "pip>=9.0,<9.1" setuptools virtualenv pyyaml
24+
sudo pip install -U "pip==20.0.2" setuptools virtualenv pyyaml
2525
virtualenv ~/virtualenv
2626
~/virtualenv/bin/pip install flake8 pylint pyyaml requests
2727
- save_cache:

0 commit comments

Comments
 (0)