Skip to content

PYTHON-2367 Add release automation for Python 3.9 #505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .evergreen/build-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,18 @@ for VERSION in 2.7 3.4 3.5 3.6 3.7 3.8; do
fi
rm -rf build

$PYTHON setup.py bdist_wheel
# Install wheel if not already there.
if ! $PYTHON -m wheel version; then
createvirtualenv $PYTHON releasevenv
WHEELPYTHON=python
pip install --upgrade wheel
else
WHEELPYTHON=$PYTHON
fi

$WHEELPYTHON setup.py bdist_wheel
deactivate || true
rm -rf releasevenv

# Test that each wheel is installable.
for release in dist/*; do
Expand Down
3 changes: 1 addition & 2 deletions .evergreen/build-manylinux-internal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ mv dist/* validdist || true

# Compile wheels
for PYTHON in /opt/python/*/bin/python; do
# Skip Python 3.3 and 3.9.
if [[ "$PYTHON" == *"cp33"* || "$PYTHON" == *"cp39"* ]]; then
if [[ ! $PYTHON =~ (cp27|cp34|cp35|cp36|cp37|cp38|cp39) ]]; then
continue
fi
# https://github.com/pypa/manylinux/issues/49
Expand Down
3 changes: 2 additions & 1 deletion .evergreen/build-manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ unexpected=$(find dist \! \( -iname dist -or \
-iname '*cp35*' -or \
-iname '*cp36*' -or \
-iname '*cp37*' -or \
-iname '*cp38*' \))
-iname '*cp38*' -or \
-iname '*cp39*' \))
if [ -n "$unexpected" ]; then
echo "Unexpected files:" $unexpected
exit 1
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/build-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rm -rf validdist
mkdir -p validdist
mv dist/* validdist || true

for VERSION in 27 34 35 36 37 38; do
for VERSION in 27 34 35 36 37 38 39; do
_pythons=(C:/Python/Python${VERSION}/python.exe \
C:/Python/32/Python${VERSION}/python.exe)
for PYTHON in "${_pythons[@]}"; do
Expand Down
1 change: 1 addition & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ tasks:

- name: "release"
tags: ["release"]
exec_timeout_secs: 216000 # 60 minutes (manylinux task is slow).
git_tag_only: true
commands:
- command: shell.exec
Expand Down