From fc69ad151c9acc7acfa571156184f787d8dba5b8 Mon Sep 17 00:00:00 2001 From: Elvis Pranskevichus Date: Sat, 13 Aug 2022 15:10:28 -0700 Subject: [PATCH] Test and build on Python 3.11 Python 3.11 release candidate is out, so it's time. --- .github/workflows/release.yml | 2 +- .github/workflows/tests.yml | 2 +- setup.py | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35d7510..967c9ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,7 +75,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - cibw_python: ["cp37-*", "cp38-*", "cp39-*", "cp310-*"] + cibw_python: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"] cibw_arch: ["x86_64", "aarch64", "universal2"] exclude: - os: ubuntu-latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 61adc21..76e82e0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11.0-rc.1"] os: [ubuntu-latest, macos-latest] env: diff --git a/setup.py b/setup.py index 336085c..8425962 100644 --- a/setup.py +++ b/setup.py @@ -21,14 +21,16 @@ from setuptools.command.build_ext import build_ext from setuptools.command.sdist import sdist -CYTHON_DEPENDENCY = 'Cython(>=0.29.24,<0.30.0)' +CYTHON_DEPENDENCY = 'Cython(>=0.29.32,<0.30.0)' # Minimal dependencies required to test uvloop. TEST_DEPENDENCIES = [ # pycodestyle is a dependency of flake8, but it must be frozen because # their combination breaks too often # (example breakage: https://gitlab.com/pycqa/flake8/issues/427) - 'aiohttp', + # aiohttp doesn't support 3.11 yet, + # see https://github.com/aio-libs/aiohttp/issues/6600 + 'aiohttp ; python_version < "3.11"', 'flake8~=3.9.2', 'psutil', 'pycodestyle~=2.7.0',