Skip to content

Commit 9dd1033

Browse files
Test on Django 4.2 (#1264)
* Test on Django 4.2 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent edc47bf commit 9dd1033

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
13-
django-version: ['2.2', '3.2', '4.0', '4.1', 'main']
13+
django-version: ['2.2', '3.2', '4.0', '4.1', '4.2', 'main']
1414
exclude:
1515
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
1616

@@ -23,6 +23,8 @@ jobs:
2323
django-version: '4.0'
2424
- python-version: '3.7'
2525
django-version: '4.1'
26+
- python-version: '3.7'
27+
django-version: '4.2'
2628
- python-version: '3.7'
2729
django-version: 'main'
2830

README.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ capabilities to your Django projects. Django OAuth Toolkit makes extensive use o
3535
`OAuthLib <https://github.com/idan/oauthlib>`_, so that everything is
3636
`rfc-compliant <http://tools.ietf.org/html/rfc6749>`_.
3737

38-
Note: If you have issues installing Django 4.0.0, it is because we only support
39-
Django 4.0.1+ due to a regression in Django 4.0.0. Besides 4.0.0, Django 2.2+ is supported.
40-
`Explanation <https://github.com/jazzband/django-oauth-toolkit/pull/1046#issuecomment-998015272>`_.
41-
42-
4338
Reporting security issues
4439
-------------------------
4540

@@ -49,7 +44,7 @@ Requirements
4944
------------
5045

5146
* Python 3.7+
52-
* Django 2.2, 3.2, or >=4.0.1
47+
* Django 2.2, 3.2, 4.0 (4.0.1+ due to a regression), 4.1, or 4.2
5348
* oauthlib 3.1+
5449

5550
Installation

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ classifiers =
1616
Framework :: Django :: 3.2
1717
Framework :: Django :: 4.0
1818
Framework :: Django :: 4.1
19+
Framework :: Django :: 4.2
1920
Intended Audience :: Developers
2021
License :: OSI Approved :: BSD License
2122
Operating System :: OS Independent

tests/settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import django
2+
3+
14
ADMINS = ()
25

36
MANAGERS = ADMINS
@@ -23,7 +26,8 @@
2326
SITE_ID = 1
2427

2528
USE_I18N = True
26-
USE_L10N = True
29+
if django.VERSION < (4, 0):
30+
USE_L10N = True
2731
USE_TZ = True
2832

2933
MEDIA_ROOT = ""

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ envlist =
99
py{37,38,39,310}-dj32,
1010
py{38,39,310}-dj40,
1111
py{38,39,310,311}-dj41,
12+
py{38,39,310,311}-dj42,
1213
py{310,311}-djmain,
1314

1415
[gh-actions]
@@ -25,6 +26,7 @@ DJANGO =
2526
3.2: dj32
2627
4.0: dj40
2728
4.1: dj41
29+
4.2: dj42
2830
main: djmain
2931

3032
[pytest]
@@ -51,6 +53,7 @@ deps =
5153
dj32: Django>=3.2,<3.3
5254
dj40: Django>=4.0.0,<4.1
5355
dj41: Django>=4.1,<4.2
56+
dj42: Django>=4.2,<4.3
5457
djmain: https://github.com/django/django/archive/main.tar.gz
5558
djangorestframework
5659
oauthlib>=3.1.0

0 commit comments

Comments
 (0)