Skip to content

Add official support for Python 3.13 #2265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 47 additions & 3 deletions .ci/.matrix_exclude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ exclude:
FRAMEWORK: celery-5-django-3
- VERSION: python-3.12 # https://github.com/celery/billiard/issues/377
FRAMEWORK: celery-5-django-4
- VERSION: python-3.13 # https://github.com/celery/billiard/issues/377
FRAMEWORK: celery-5-flask-2
- VERSION: python-3.13 # https://github.com/celery/billiard/issues/377
FRAMEWORK: celery-5-django-3
- VERSION: python-3.13 # https://github.com/celery/billiard/issues/377
FRAMEWORK: celery-5-django-4
- VERSION: python-3.10
FRAMEWORK: graphene-2
- VERSION: python-3.10
Expand Down Expand Up @@ -111,25 +117,47 @@ exclude:
FRAMEWORK: cassandra-3.4
- VERSION: python-3.12
FRAMEWORK: pymongo-3.5
- VERSION: python-3.13
FRAMEWORK: django-1.11
- VERSION: python-3.13
FRAMEWORK: django-2.0
- VERSION: python-3.13
FRAMEWORK: django-2.1
- VERSION: python-3.13
FRAMEWORK: graphene-2
- VERSION: python-3.13
FRAMEWORK: aiohttp-3.0
- VERSION: python-3.13
FRAMEWORK: aiohttp-4.0
- VERSION: python-3.13
FRAMEWORK: cassandra-3.4
- VERSION: python-3.13
FRAMEWORK: pymongo-3.5
# pymongo
- VERSION: python-3.10
FRAMEWORK: pymongo-3.1
- VERSION: python-3.11
FRAMEWORK: pymongo-3.1
- VERSION: python-3.12
FRAMEWORK: pymongo-3.1
- VERSION: python-3.13
FRAMEWORK: pymongo-3.1
- VERSION: python-3.10
FRAMEWORK: pymongo-3.2
- VERSION: python-3.11
FRAMEWORK: pymongo-3.2
- VERSION: python-3.12
FRAMEWORK: pymongo-3.2
- VERSION: python-3.13
FRAMEWORK: pymongo-3.2
- VERSION: python-3.10
FRAMEWORK: pymongo-3.3
- VERSION: python-3.11
FRAMEWORK: pymongo-3.3
- VERSION: python-3.12
FRAMEWORK: pymongo-3.3
- VERSION: python-3.13
FRAMEWORK: pymongo-3.3
- VERSION: python-3.8
FRAMEWORK: pymongo-3.4
- VERSION: python-3.9
Expand All @@ -140,6 +168,8 @@ exclude:
FRAMEWORK: pymongo-3.4
- VERSION: python-3.12
FRAMEWORK: pymongo-3.4
- VERSION: python-3.13
FRAMEWORK: pymongo-3.4
- VERSION: pypy-3
FRAMEWORK: pymongo-3.0
# pymssql
Expand All @@ -163,6 +193,10 @@ exclude:
FRAMEWORK: boto3-1.5
- VERSION: python-3.12
FRAMEWORK: boto3-1.6
- VERSION: python-3.13
FRAMEWORK: boto3-1.5
- VERSION: python-3.13
FRAMEWORK: boto3-1.6
# aiohttp client, only supported in Python 3.7+
- VERSION: pypy-3
FRAMEWORK: aiohttp-3.0
Expand Down Expand Up @@ -254,11 +288,21 @@ exclude:
FRAMEWORK: twisted-16
- VERSION: python-3.12
FRAMEWORK: twisted-15
- VERSION: python-3.13
FRAMEWORK: twisted-18
- VERSION: python-3.13
FRAMEWORK: twisted-17
- VERSION: python-3.13
FRAMEWORK: twisted-16
- VERSION: python-3.13
FRAMEWORK: twisted-15
# pylibmc
- VERSION: python-3.11
FRAMEWORK: pylibmc-1.4
- VERSION: python-3.12
FRAMEWORK: pylibmc-1.4
- VERSION: python-3.13
FRAMEWORK: pylibmc-1.4
# grpc
- VERSION: python-3.6
FRAMEWORK: grpc-newest
Expand All @@ -274,6 +318,8 @@ exclude:
FRAMEWORK: grpc-1.24
- VERSION: python-3.12
FRAMEWORK: grpc-1.24
- VERSION: python-3.13
FRAMEWORK: grpc-1.24
- VERSION: python-3.7
FRAMEWORK: flask-1.0
- VERSION: python-3.7
Expand All @@ -283,7 +329,5 @@ exclude:
# TODO py3.12
- VERSION: python-3.12
FRAMEWORK: sanic-20.12 # no wheels available yet
- VERSION: python-3.12
FRAMEWORK: kafka-python-newest # https://github.com/dpkp/kafka-python/pull/2376
- VERSION: python-3.12
- VERSION: python-3.13
FRAMEWORK: cassandra-newest # c extension issue
2 changes: 1 addition & 1 deletion .ci/.matrix_python.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION:
- python-3.6
- python-3.12
- python-3.13
1 change: 1 addition & 0 deletions .ci/.matrix_python_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ VERSION:
- python-3.10
- python-3.11
- python-3.12
- python-3.13
# - pypy-3 # excluded due to build issues with SQLite/Django
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test:
# delete any __pycache__ folders to avoid hard-to-debug caching issues
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
# pypy3 should be added to the first `if` once it supports py3.7
if [[ "$$PYTHON_VERSION" =~ ^(3.7|3.8|3.9|3.10|3.11|3.12|nightly)$$ ]] ; then \
if [[ "$$PYTHON_VERSION" =~ ^(3.7|3.8|3.9|3.10|3.11|3.12|3.13|nightly)$$ ]] ; then \
echo "Python 3.7+, with asyncio"; \
pytest -v $(PYTEST_ARGS) --showlocals $(PYTEST_MARKER) $(PYTEST_JUNIT); \
else \
Expand Down
1 change: 1 addition & 0 deletions docs/reference/supported-technologies.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ The following Python versions are supported:
* 3.10
* 3.11
* 3.12
* 3.13


### Django [supported-django]
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers =
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
License :: OSI Approved :: BSD License
Expand Down
Loading