Skip to content

Commit c012094

Browse files
authored
ci: fix python setup (#370)
Cryptography 3.4.7 wheel cannot be easily installed with an old version of pip (does not support the required wheel tag and whatever that entails). Update pip before installation to fix this, bump cache key version to force running this. Accidentally broken in #366 -- this pip update was there initially but I removed it later because I thought it was not needed in the newer python docker image. Due to the cache, the later CI runs did not encounter the problem.
1 parent a8d42ea commit c012094

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.circleci/config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,22 @@ commands:
5050
steps:
5151
- restore_cache:
5252
keys:
53-
- v4-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "dev-requirements.txt" }}
53+
- v5-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "dev-requirements.txt" }}
5454
# fallback to using the latest cache if no exact match is found
55-
- v4-dependencies-
55+
- v5-dependencies-
5656

5757
- run:
5858
name: Install dependencies
5959
command: |
6060
python3 -m venv /tmp/venv 2>&1
6161
. /tmp/venv/bin/activate
62+
pip install -U pip # need pip >= 19.0 to install cryptography
6263
pip install --require-hashes -r requirements.txt -r dev-requirements.txt
6364
6465
- save_cache:
6566
paths:
6667
- /tmp/venv
67-
key: v4-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "dev-requirements.txt" }}
68+
key: v5-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "dev-requirements.txt" }}
6869

6970

7071
jobs:

0 commit comments

Comments
 (0)