From 4a459062c750a6d800bbbbf9ee83e2a7ebf3d187 Mon Sep 17 00:00:00 2001 From: Andriy Ivaneyko Date: Wed, 6 Dec 2023 18:59:13 -0500 Subject: [PATCH] Support for Python 3.12 #2836 --- .github/workflows/tests.yml | 1 + tox.ini | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b071e7e4e3..531ca5d149 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,6 +41,7 @@ jobs: - { python-version: "3.10", tox-env: py310, max-attempts: 3 } - { python-version: "3.10", tox-env: py310-no-ext, max-attempts: 3 } - { python-version: "3.11", tox-env: py311, max-attempts: 3 } + - { python-version: "3.12", tox-env: py312, max-attempts: 3 } - { python-version: "3.11", tox-env: py311-no-ext, max-attempts: 3 } - { python-version: "3.8", tox-env: py38-no-ext, platform: windows-latest, ignore-errors: true } - { python-version: "3.9", tox-env: py39-no-ext, platform: windows-latest, ignore-errors: true } diff --git a/tox.ini b/tox.ini index e84a43c037..47366cb9cb 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,12 @@ [tox] -envlist = py38, py39, py310, py311, pyNightly, pypy310, {py38,py39,py310,py311,pyNightly,pypy310}-no-ext, lint, check, security, docs, type-checking +envlist = py38, py39, py310, py311, py312, pyNightly, pypy310, {py38,py39,py310,py311,py312,pyNightly,pypy310}-no-ext, lint, check, security, docs, type-checking [testenv] usedevelop = true setenv = - {py38,py39,py310,py311,pyNightly}-no-ext: SANIC_NO_UJSON=1 - {py38,py39,py310,py311,pyNightly}-no-ext: SANIC_NO_UVLOOP=1 -extras = test, http3 + {py38,py39,py310,py311,py312,pyNightly}-no-ext: SANIC_NO_UJSON=1 + {py38,py39,py310,py311,py312,pyNightly}-no-ext: SANIC_NO_UVLOOP=1 +extras = test, http3, setuptools deps = httpx>=0.23 allowlist_externals =