Skip to content

Commit 027e44c

Browse files
authored
Added Python 3.12 support (#1185)
1 parent 4d27bbd commit 027e44c

File tree

8 files changed

+17
-9
lines changed

8 files changed

+17
-9
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: ["3.8", "3.9", "3.10", "3.11"]
17+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1818
env:
1919
PYTHON: ${{ matrix.python-version }}
2020
steps:

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ any parts of the framework not mentioned in the documentation should generally b
1010

1111
## [Unreleased]
1212

13+
### Added
14+
15+
* Added support for Python 3.12
16+
1317
### Fixed
1418

1519
* Fixed OpenAPI schema generation for `Serializer` when used inside another `Serializer` or as a child of `ListField`.

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ As a Django REST framework JSON:API (short DJA) we are trying to address followi
9292
Requirements
9393
------------
9494

95-
1. Python (3.8, 3.9, 3.10, 3.11)
95+
1. Python (3.8, 3.9, 3.10, 3.11, 3.12)
9696
2. Django (3.2, 4.1, 4.2)
9797
3. Django REST framework (3.13, 3.14)
9898

docs/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ like the following:
5151

5252
## Requirements
5353

54-
1. Python (3.8, 3.9, 3.10, 3.11)
54+
1. Python (3.8, 3.9, 3.10, 3.11, 3.12)
5555
2. Django (3.2, 4.1, 4.2)
5656
3. Django REST framework (3.13, 3.14)
5757

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
django-filter==23.3
2-
django-polymorphic==3.1.0
2+
# once next version has been released (>3.1.0) this
3+
# should be set to pinned version again
4+
# see https://github.com/django-polymorphic/django-polymorphic/pull/541
5+
django-polymorphic@git+https://github.com/django-polymorphic/django-polymorphic@master
36
pyyaml==6.0.1
47
uritemplate==4.1.1

setup.cfg

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ filterwarnings =
6565
error::PendingDeprecationWarning
6666
# Remove when DRF is not depending on it anymore
6767
ignore:The django.utils.timezone.utc alias is deprecated.
68-
# can be removed once fixed in django polymorphic
69-
ignore:pkg_resources is deprecated as an API
70-
ignore:Deprecated call to `pkg_resource
7168
# Django filter schema generation. Can be removed once we remove
7269
# schema support
7370
ignore:Built-in schema generation is deprecated.
71+
# can be removed once django filter has released a new version including
72+
# https://github.com/carltongibson/django-filter/pull/1623
73+
ignore:'pkgutil.find_loader' is deprecated and slated for removal
7474
testpaths =
7575
example
7676
tests

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def get_package_data(package):
9090
"Programming Language :: Python :: 3.9",
9191
"Programming Language :: Python :: 3.10",
9292
"Programming Language :: Python :: 3.11",
93+
"Programming Language :: Python :: 3.12",
9394
"Topic :: Internet :: WWW/HTTP",
9495
"Topic :: Software Development :: Libraries :: Application Frameworks",
9596
"Topic :: Software Development :: Libraries :: Python Modules",

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
envlist =
33
py{38,39,310}-django32-drf{313,314,master},
44
py{38,39,310,311}-django41-drf{314,master},
5-
py{38,39,310,311}-django42-drf{314,master},
5+
py{38,39,310,311,312}-django42-drf{314,master},
66
black,
77
docs,
88
lint
@@ -54,5 +54,5 @@ ignore_outcome = true
5454
[testenv:py{38,39,310,311}-django41-drfmaster]
5555
ignore_outcome = true
5656

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

0 commit comments

Comments
 (0)