From f58c4862a23c3841a80dcbef5dbe46ec497c3f40 Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Wed, 13 Oct 2021 13:18:45 -0700 Subject: [PATCH] PYTHON-2923 Add Python 3.10 to release tasks --- .evergreen/build-mac.sh | 2 +- .evergreen/build-manylinux-internal.sh | 2 +- .evergreen/build-manylinux.sh | 3 ++- .evergreen/build-windows.sh | 2 +- setup.py | 1 + 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.evergreen/build-mac.sh b/.evergreen/build-mac.sh index 79b947d718..5671ae6c6f 100755 --- a/.evergreen/build-mac.sh +++ b/.evergreen/build-mac.sh @@ -8,7 +8,7 @@ rm -rf validdist mkdir -p validdist mv dist/* validdist || true -for VERSION in 3.6 3.7 3.8 3.9; do +for VERSION in 3.6 3.7 3.8 3.9 3.10; do PYTHON=/Library/Frameworks/Python.framework/Versions/$VERSION/bin/python3 rm -rf build diff --git a/.evergreen/build-manylinux-internal.sh b/.evergreen/build-manylinux-internal.sh index 4016782e79..1b74fc68e1 100755 --- a/.evergreen/build-manylinux-internal.sh +++ b/.evergreen/build-manylinux-internal.sh @@ -11,7 +11,7 @@ mv dist/* validdist || true # Compile wheels for PYTHON in /opt/python/*/bin/python; do - if [[ ! $PYTHON =~ (cp36|cp37|cp38|cp39) ]]; then + if [[ ! $PYTHON =~ (cp36|cp37|cp38|cp39|cp310) ]]; then continue fi # https://github.com/pypa/manylinux/issues/49 diff --git a/.evergreen/build-manylinux.sh b/.evergreen/build-manylinux.sh index 61b8b840d3..602a8e1e6c 100755 --- a/.evergreen/build-manylinux.sh +++ b/.evergreen/build-manylinux.sh @@ -37,7 +37,8 @@ unexpected=$(find dist \! \( -iname dist -or \ -iname '*cp36*' -or \ -iname '*cp37*' -or \ -iname '*cp38*' -or \ - -iname '*cp39*' \)) + -iname '*cp39*' -or \ + -iname '*cp310*' \)) if [ -n "$unexpected" ]; then echo "Unexpected files:" $unexpected exit 1 diff --git a/.evergreen/build-windows.sh b/.evergreen/build-windows.sh index f44cff18ac..97c7940769 100755 --- a/.evergreen/build-windows.sh +++ b/.evergreen/build-windows.sh @@ -8,7 +8,7 @@ rm -rf validdist mkdir -p validdist mv dist/* validdist || true -for VERSION in 36 37 38 39; do +for VERSION in 36 37 38 39 310; do _pythons=(C:/Python/Python${VERSION}/python.exe \ C:/Python/32/Python${VERSION}/python.exe) for PYTHON in "${_pythons[@]}"; do diff --git a/setup.py b/setup.py index 88df14ee07..cdf9113911 100755 --- a/setup.py +++ b/setup.py @@ -336,6 +336,7 @@ def build_extension(self, ext): "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Database"],