Skip to content

Commit ed54b72

Browse files
authored
PYTHON-2507 Future proof pip version upgrade for test suite (#549)
1 parent 102a608 commit ed54b72

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.evergreen/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,6 @@ tasks:
866866
- name: "release"
867867
tags: ["release"]
868868
exec_timeout_secs: 216000 # 60 minutes (manylinux task is slow).
869-
git_tag_only: true
870869
commands:
871870
- command: shell.exec
872871
type: test
@@ -2712,6 +2711,7 @@ buildvariants:
27122711
matrix_spec:
27132712
platform: [ubuntu-20.04, windows-64-vsMulti-small, macos-1014]
27142713
display_name: "Release ${platform}"
2714+
batchtime: 20160 # 14 days
27152715
tasks:
27162716
- name: "release"
27172717

.evergreen/utils.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,17 @@ createvirtualenv () {
2525
fi
2626
# Upgrade to the latest versions of pip setuptools wheel so that
2727
# pip can always download the latest cryptography+cffi wheels.
28-
python -m pip install --upgrade pip setuptools wheel
28+
PYTHON_VERSION=$(python -c 'import sys;print("%s.%s" % sys.version_info[:2])')
29+
if [[ $PYTHON_VERSION == "3.4" ]]; then
30+
# pip 19.2 dropped support for Python 3.4.
31+
python -m pip install --upgrade 'pip<19.2'
32+
elif [[ $PYTHON_VERSION == "2.7" || $PYTHON_VERSION == "3.5" ]]; then
33+
# pip 21 will drop support for Python 2.7 and 3.5.
34+
python -m pip install --upgrade 'pip<21'
35+
else
36+
python -m pip install --upgrade pip
37+
fi
38+
python -m pip install --upgrade setuptools wheel
2939
}
3040

3141
# Usage:

0 commit comments

Comments
 (0)