From 87dbb46a250ae95bfd39aa98fb52d36e5a7dec9f Mon Sep 17 00:00:00 2001 From: Tom Most Date: Sun, 30 Apr 2023 16:56:08 -0700 Subject: [PATCH] Test with Python 3.11 --- .github/workflows/ci.yaml | 9 +++------ changelog.d/364.feature.rst | 1 + setup.py | 1 + tox.ini | 6 +++--- 4 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 changelog.d/364.feature.rst diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4fbc305f..58d8027b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -63,16 +63,12 @@ jobs: continue-on-error: ${{ matrix.experimental }} strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.8", "pypy-3.9"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.8", "pypy-3.9"] twisted-version: ["lowest", "latest"] experimental: [false] include: - - python-version: "3.8" - twisted-version: "trunk" - experimental: true - - - python-version: "3.9" + - python-version: "3.12.0-alpha.7" twisted-version: "trunk" experimental: true @@ -101,6 +97,7 @@ jobs: "3.8": "py38", "3.9": "py39", "3.10": "py310", + "3.11": "py311", "pypy-3.8": "pypy3", "pypy-3.9": "pypy3", } diff --git a/changelog.d/364.feature.rst b/changelog.d/364.feature.rst new file mode 100644 index 00000000..e7f26571 --- /dev/null +++ b/changelog.d/364.feature.rst @@ -0,0 +1 @@ +Python 3.11 is now supported. diff --git a/setup.py b/setup.py index 83027633..8cf3ae7a 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,7 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] diff --git a/tox.ini b/tox.ini index 2c308623..f348fcc2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,8 @@ [tox] envlist = py37-twisted_lowest, - {pypy3,py37,py38,py39,py310}-twisted_latest, - {pypy3,py37,py38,py39,py310}-twisted_trunk, + {pypy3,py37,py38,py39,py310,py311}-twisted_latest, + {pypy3,py37,py38,py39,py310,py311}-twisted_trunk, twine, check-manifest, flake8, docs, coverage-report isolated_build = true @@ -58,7 +58,7 @@ commands = sphinx-build -b html . html [testenv:coverage-report] -depends = pypy3,py37,py38,py39 +depends = pypy3,py37,py38,py39,py310,py311 commands = coverage combine coverage report