Skip to content

Commit 28e0c76

Browse files
authored
feat: django 5.2 support (#1608)
which adds python 3.14 in turn
1 parent 0164aec commit 28e0c76

File tree

7 files changed

+32
-10
lines changed

7 files changed

+32
-10
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,28 @@ jobs:
1919
- '3.10'
2020
- '3.11'
2121
- '3.12'
22+
- '3.13'
2223
django-version:
2324
- '4.2'
2425
- '5.0'
2526
- '5.1'
27+
- '5.2'
2628
- 'main'
2729
include:
2830
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
2931
- python-version: '3.8'
3032
django-version: '4.2'
3133
- python-version: '3.9'
3234
django-version: '4.2'
35+
- python-version: '3.14'
36+
django-version: '5.2'
37+
- python-version: '3.14'
38+
django-version: 'main'
39+
exclude:
40+
- python-version: '3.13'
41+
django-version: '5.0'
42+
- python-version: '3.13'
43+
django-version: '4.2'
3344

3445
steps:
3546
- uses: actions/checkout@v4

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [unreleased]
8-
<!--
8+
99
### Added
10+
* Support for Django 5.2
11+
* Support for Python 3.14 (Django >= 5.2.8)
12+
13+
<!--
1014
### Changed
1115
### Deprecated
1216
### Removed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ Please report any security issues to the Django OAuth security team at <django-o
3939
Requirements
4040
------------
4141

42-
* Python 3.8+
43-
* Django 4.2, 5.0 or 5.1
42+
* Python 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 or 3.14
43+
* Django 4.2, 5.0, 5.1 or 5.2
4444
* oauthlib 3.2.2+
4545

4646
Installation

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ If you need help please submit a `question <https://github.com/django-oauth/djan
2121
Requirements
2222
------------
2323

24-
* Python 3.8+
25-
* Django 4.2, 5.0 or 5.1
24+
* Python 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 or 3.14
25+
* Django 4.2, 5.0, 5.1 or 5.2
2626
* oauthlib 3.2.2+
2727

2828
Index

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "django-oauth-toolkit"
77
dynamic = ["version"]
8-
requires-python = ">= 3.8"
8+
requires-python = ">=3.8,<=3.14"
99
authors = [
1010
{name = "Federico Frenguelli"},
1111
{name = "Massimiliano Pippi"},
@@ -22,6 +22,7 @@ classifiers = [
2222
"Framework :: Django :: 4.2",
2323
"Framework :: Django :: 5.0",
2424
"Framework :: Django :: 5.1",
25+
"Framework :: Django :: 5.2",
2526
"Intended Audience :: Developers",
2627
"License :: OSI Approved :: BSD License",
2728
"Operating System :: OS Independent",
@@ -31,6 +32,8 @@ classifiers = [
3132
"Programming Language :: Python :: 3.10",
3233
"Programming Language :: Python :: 3.11",
3334
"Programming Language :: Python :: 3.12",
35+
"Programming Language :: Python :: 3.13",
36+
"Programming Language :: Python :: 3.14",
3437
"Topic :: Internet :: WWW/HTTP",
3538
]
3639
dependencies = [

tests/app/idp/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Django>=4.2,<=5.1
1+
Django>=4.2,<=5.2
22
django-cors-headers==3.14.0
33
django-environ==0.11.2
44

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ envlist =
55
docs,
66
lint,
77
sphinxlint,
8-
py{38,39,310,311,312,313}-dj42,
8+
py{38,39,310,311,312}-dj42,
99
py{310,311,312,313}-dj50,
1010
py{310,311,312,313}-dj51,
11-
py{310,311,312,313}-djmain,
11+
py{310,311,312,313,314}-dj52,
12+
py{310,311,312,313,314}-djmain,
1213
py39-multi-db-dj-42
1314

1415
[gh-actions]
@@ -19,12 +20,14 @@ python =
1920
3.11: py311
2021
3.12: py312
2122
3.13: py313
23+
3.14: py314
2224

2325
[gh-actions:env]
2426
DJANGO =
2527
4.2: dj42
2628
5.0: dj50
2729
5.1: dj51
30+
5.2: dj52
2831
main: djmain
2932

3033
[testenv]
@@ -40,6 +43,7 @@ deps =
4043
dj42: Django>=4.2,<4.3
4144
dj50: Django>=5.0,<5.1
4245
dj51: Django>=5.1,<5.2
46+
dj52: Django>=5.2,<6.0
4347
djmain: https://github.com/django/django/archive/main.tar.gz
4448
djangorestframework
4549
oauthlib>=3.2.2
@@ -55,7 +59,7 @@ deps =
5559
passenv =
5660
PYTEST_ADDOPTS
5761

58-
[testenv:py{310,311,312,313}-djmain]
62+
[testenv:py{310,311,312,313,314}-djmain]
5963
ignore_errors = true
6064
ignore_outcome = true
6165

0 commit comments

Comments
 (0)