Skip to content

Added Python 3.12 support#1185

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

Merged
merged 3 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
env:
PYTHON: ${{ matrix.python-version }}
steps:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,10 @@ any parts of the framework not mentioned in the documentation should generally b

## [Unreleased]

### Added

* Added support for Python 3.12

### Fixed

* Fixed OpenAPI schema generation for `Serializer` when used inside another `Serializer` or as a child of `ListField`.
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line numberDiff line numberDiff line change
Expand Up@@ -92,7 +92,7 @@ As a Django REST framework JSON:API (short DJA) we are trying to address followi
Requirements
------------

1. Python (3.8, 3.9, 3.10, 3.11)
1. Python (3.8, 3.9, 3.10, 3.11, 3.12)
2. Django (3.2, 4.1, 4.2)
3. Django REST framework (3.13, 3.14)

Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -51,7 +51,7 @@ like the following:

## Requirements

1. Python (3.8, 3.9, 3.10, 3.11)
1. Python (3.8, 3.9, 3.10, 3.11, 3.12)
2. Django (3.2, 4.1, 4.2)
3. Django REST framework (3.13, 3.14)

Expand Down
5 changes: 4 additions & 1 deletion requirements/requirements-optionals.txt
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
django-filter==23.3
django-polymorphic==3.1.0
# once next version has been released (>3.1.0) this
# should be set to pinned version again
# see https://github.com/django-polymorphic/django-polymorphic/pull/541
django-polymorphic@git+https://github.com/django-polymorphic/django-polymorphic@master
pyyaml==6.0.1
uritemplate==4.1.1
6 changes: 3 additions & 3 deletions setup.cfg
Original file line numberDiff line numberDiff line change
Expand Up@@ -65,12 +65,12 @@ filterwarnings =
error::PendingDeprecationWarning
# Remove when DRF is not depending on it anymore
ignore:The django.utils.timezone.utc alias is deprecated.
# can be removed once fixed in django polymorphic
ignore:pkg_resources is deprecated as an API
ignore:Deprecated call to `pkg_resource
# Django filter schema generation. Can be removed once we remove
# schema support
ignore:Built-in schema generation is deprecated.
# can be removed once django filter has released a new version including
# https://github.com/carltongibson/django-filter/pull/1623
ignore:'pkgutil.find_loader' is deprecated and slated for removal
testpaths =
example
tests
1 change: 1 addition & 0 deletions setup.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -90,6 +90,7 @@ def get_package_data(package):
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,7 +2,7 @@
envlist =
py{38,39,310}-django32-drf{313,314,master},
py{38,39,310,311}-django41-drf{314,master},
py{38,39,310,311}-django42-drf{314,master},
py{38,39,310,311,312}-django42-drf{314,master},
black,
docs,
lint
Expand DownExpand Up@@ -54,5 +54,5 @@ ignore_outcome = true
[testenv:py{38,39,310,311}-django41-drfmaster]
ignore_outcome = true

[testenv:py{38,39,310,311}-django42-drfmaster]
[testenv:py{38,39,310,311,312}-django42-drfmaster]
ignore_outcome = true
close