From b4dab3aca301f49dd937fd29a06f1766cf138493 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Thu, 28 Apr 2022 21:28:46 +0300 Subject: [PATCH] Test Python 3.11-dev --- .ci/install.sh | 3 ++- .github/workflows/macos-install.sh | 3 ++- .github/workflows/test-windows.yml | 2 +- .github/workflows/test.yml | 3 +++ docs/installation.rst | 9 ++++++--- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.ci/install.sh b/.ci/install.sh index 100424ee9..028d68795 100755 --- a/.ci/install.sh +++ b/.ci/install.sh @@ -32,7 +32,8 @@ python3 -m pip install -U pytest-cov python3 -m pip install -U pytest-timeout python3 -m pip install pyroma python3 -m pip install test-image-results -python3 -m pip install numpy +# TODO Remove condition when NumPy supports 3.11 +if ! [ "$GHA_PYTHON_VERSION" == "3.11-dev" ]; then python3 -m pip install numpy ; fi # PyQt6 doesn't support PyPy3 if [[ $GHA_PYTHON_VERSION == 3.* ]]; then diff --git a/.github/workflows/macos-install.sh b/.github/workflows/macos-install.sh index 8260cf8d8..06b829645 100755 --- a/.github/workflows/macos-install.sh +++ b/.github/workflows/macos-install.sh @@ -15,7 +15,8 @@ python3 -m pip install pyroma python3 -m pip install test-image-results echo -e "[openblas]\nlibraries = openblas\nlibrary_dirs = /usr/local/opt/openblas/lib" >> ~/.numpy-site.cfg -python3 -m pip install numpy +# TODO Remove condition when NumPy supports 3.11 +if ! [ "$GHA_PYTHON_VERSION" == "3.11-dev" ]; then python3 -m pip install numpy ; fi # extra test images pushd depends && ./install_extra_test_images.sh && popd diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index 6ed8bb0c5..71b54021c 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"] architecture: ["x86", "x64"] include: # PyPy 7.3.4+ only ships 64-bit binaries for Windows diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7b13addfd..d41f4b571 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,7 @@ jobs: python-version: [ "pypy-3.8", "pypy-3.7", + "3.11-dev", "3.10", "3.9", "3.8", @@ -59,6 +60,8 @@ jobs: if: startsWith(matrix.os, 'macOS') run: | .github/workflows/macos-install.sh + env: + GHA_PYTHON_VERSION: ${{ matrix.python-version }} - name: Build run: | diff --git a/docs/installation.rst b/docs/installation.rst index 41e99797c..05a12188f 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -465,11 +465,13 @@ These platforms are built and tested for every change. +----------------------------------+----------------------------+---------------------+ | Gentoo | 3.9 | x86-64 | +----------------------------------+----------------------------+---------------------+ -| macOS 10.15 Catalina | 3.7, 3.8, 3.9, 3.10, PyPy3 | x86-64 | +| macOS 11 Big Sur | 3.7, 3.8, 3.9, 3.10, 3.11 | x86-64 | +| | PyPy3 | | +----------------------------------+----------------------------+---------------------+ | Ubuntu Linux 18.04 LTS (Bionic) | 3.9 | x86-64 | +----------------------------------+----------------------------+---------------------+ -| Ubuntu Linux 20.04 LTS (Focal) | 3.7, 3.8, 3.9, 3.10, PyPy3 | x86-64 | +| Ubuntu Linux 20.04 LTS (Focal) | 3.7, 3.8, 3.9, 3.10, 3.11 | x86-64 | +| | PyPy3 | | | +----------------------------+---------------------+ | | 3.8 | arm64v8, ppc64le, | | | | s390x | @@ -478,7 +480,8 @@ These platforms are built and tested for every change. +----------------------------------+----------------------------+---------------------+ | Windows Server 2016 | 3.7 | x86-64 | +----------------------------------+----------------------------+---------------------+ -| Windows Server 2019 | 3.7, 3.8, 3.9, 3.10, PyPy3 | x86, x86-64 | +| Windows Server 2022 | 3.7, 3.8, 3.9, 3.10, 3.11 | x86, x86-64 | +| | PyPy3 | | | +----------------------------+---------------------+ | | 3.9/MinGW | x86, x86-64 | +----------------------------------+----------------------------+---------------------+