Skip to content

Commit c8be79f

Browse files
authored
PYTHON-2367 Add release automation for Python 3.9 (#505)
PYTHON-2375 Reinstate macos system python workaround for missing wheel package Increase task timeout because the manylinux build task takes >30 minutes.
1 parent e340428 commit c8be79f

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

.evergreen/build-mac.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,18 @@ for VERSION in 2.7 3.4 3.5 3.6 3.7 3.8; do
1818
fi
1919
rm -rf build
2020

21-
$PYTHON setup.py bdist_wheel
21+
# Install wheel if not already there.
22+
if ! $PYTHON -m wheel version; then
23+
createvirtualenv $PYTHON releasevenv
24+
WHEELPYTHON=python
25+
pip install --upgrade wheel
26+
else
27+
WHEELPYTHON=$PYTHON
28+
fi
29+
30+
$WHEELPYTHON setup.py bdist_wheel
31+
deactivate || true
32+
rm -rf releasevenv
2233

2334
# Test that each wheel is installable.
2435
for release in dist/*; do

.evergreen/build-manylinux-internal.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ mv dist/* validdist || true
1111

1212
# Compile wheels
1313
for PYTHON in /opt/python/*/bin/python; do
14-
# Skip Python 3.3 and 3.9.
15-
if [[ "$PYTHON" == *"cp33"* || "$PYTHON" == *"cp39"* ]]; then
14+
if [[ ! $PYTHON =~ (cp27|cp34|cp35|cp36|cp37|cp38|cp39) ]]; then
1615
continue
1716
fi
1817
# https://github.com/pypa/manylinux/issues/49

.evergreen/build-manylinux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ unexpected=$(find dist \! \( -iname dist -or \
2727
-iname '*cp35*' -or \
2828
-iname '*cp36*' -or \
2929
-iname '*cp37*' -or \
30-
-iname '*cp38*' \))
30+
-iname '*cp38*' -or \
31+
-iname '*cp39*' \))
3132
if [ -n "$unexpected" ]; then
3233
echo "Unexpected files:" $unexpected
3334
exit 1

.evergreen/build-windows.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rm -rf validdist
88
mkdir -p validdist
99
mv dist/* validdist || true
1010

11-
for VERSION in 27 34 35 36 37 38; do
11+
for VERSION in 27 34 35 36 37 38 39; do
1212
_pythons=(C:/Python/Python${VERSION}/python.exe \
1313
C:/Python/32/Python${VERSION}/python.exe)
1414
for PYTHON in "${_pythons[@]}"; do

.evergreen/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ tasks:
817817
818818
- name: "release"
819819
tags: ["release"]
820+
exec_timeout_secs: 216000 # 60 minutes (manylinux task is slow).
820821
git_tag_only: true
821822
commands:
822823
- command: shell.exec

0 commit comments

Comments
 (0)