From 2a2b092864a2b33b41336b83f8b2ebf6c5ef6076 Mon Sep 17 00:00:00 2001 From: Paolo Melchiorre Date: Mon, 21 Nov 2022 11:47:21 +0100 Subject: [PATCH] Fix #8751 - Add support to Python 3.11 (#8752) --- .github/workflows/main.yml | 1 + docs/index.md | 2 +- setup.py | 1 + tox.ini | 6 +++++- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c88dc55cd..b635573f2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,6 +19,7 @@ jobs: - '3.8' - '3.9' - '3.10' + - '3.11' steps: - uses: actions/checkout@v3 diff --git a/docs/index.md b/docs/index.md index 0c428c8ec..cab5511ac 100644 --- a/docs/index.md +++ b/docs/index.md @@ -85,7 +85,7 @@ continued development by **[signing up for a paid plan][funding]**. REST framework requires the following: -* Python (3.6, 3.7, 3.8, 3.9, 3.10) +* Python (3.6, 3.7, 3.8, 3.9, 3.10, 3.11) * Django (2.2, 3.0, 3.1, 3.2, 4.0, 4.1) We **highly recommend** and only officially support the latest patch release of diff --git a/setup.py b/setup.py index 181740165..d00470268 100755 --- a/setup.py +++ b/setup.py @@ -104,6 +104,7 @@ setup( 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3 :: Only', 'Topic :: Internet :: WWW/HTTP', ], diff --git a/tox.ini b/tox.ini index 957d8a2e7..2b421f6c2 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,7 @@ envlist = {py36,py37,py38,py39}-django31, {py36,py37,py38,py39,py310}-django32, {py38,py39,py310}-{django40,django41,djangomain}, + {py311}-{django41,djangomain}, base,dist,docs, [travis:env] @@ -26,7 +27,7 @@ deps = django31: Django>=3.1,<3.2 django32: Django>=3.2,<4.0 django40: Django>=4.0,<4.1 - django41: Django>=4.1a1,<4.2 + django41: Django>=4.1,<4.2 djangomain: https://github.com/django/django/archive/main.tar.gz -rrequirements/requirements-testing.txt -rrequirements/requirements-optionals.txt @@ -59,3 +60,6 @@ ignore_outcome = true [testenv:py310-djangomain] ignore_outcome = true + +[testenv:py311-djangomain] +ignore_outcome = true