Skip to content

Commit dd2e74d

Browse files
authored
feat: add django 5.2 support (#373)
1 parent 6ec0850 commit dd2e74d

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
os: [ubuntu-latest]
1717
python-version: ['3.11', '3.12']
18-
toxenv: [quality, django42, check_keywords]
18+
toxenv: [quality, django42, django52, check_keywords]
1919

2020
steps:
2121
- uses: actions/checkout@v3
@@ -36,7 +36,7 @@ jobs:
3636
run: tox
3737

3838
- name: Run Coverage
39-
if: matrix.python-version == '3.11' && matrix.toxenv=='django42'
39+
if: matrix.python-version == '3.12' && matrix.toxenv=='django52'
4040
uses: codecov/codecov-action@v4
4141
with:
4242
token: ${{ secrets.CODECOV_TOKEN }}

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Unreleased
1717
Added
1818
~~~~~~~
1919

20+
[4.5.0] - 2025-04-09
21+
--------------------
22+
23+
* Added support for Django 5.2
24+
2025
[4.4.0] - 2024-09-10
2126
--------------------
2227

auth_backends/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
These package is designed to be used primarily with Open edX Django projects, but should be compatible with non-edX
44
projects as well.
55
"""
6-
__version__ = '4.4.0' # pragma: no cover
6+
__version__ = '4.5.0' # pragma: no cover

auth_backends/urls.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
33
Add these to your project's `urlpatterns` to avoid duplicating code.
44
"""
5-
from django.urls import include, re_path
5+
from django.urls import path
6+
from django.urls import include
67

78
from auth_backends.views import (
89
EdxOAuth2LoginView,
910
EdxOAuth2LogoutView,
1011
)
1112

1213
oauth2_urlpatterns = [
13-
re_path(r'^login/$', EdxOAuth2LoginView.as_view(), name='login'),
14-
re_path(r'^logout/$', EdxOAuth2LogoutView.as_view(), name='logout'),
15-
re_path('', include('social_django.urls', namespace='social')),
14+
path('login/', EdxOAuth2LoginView.as_view(), name='login'),
15+
path('logout/', EdxOAuth2LogoutView.as_view(), name='logout'),
16+
path('', include('social_django.urls', namespace='social')),
1617
]

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def get_version(*file_paths):
134134
'Programming Language :: Python :: 3.12',
135135
'Framework :: Django',
136136
'Framework :: Django :: 4.2',
137+
'Framework :: Django :: 5.2',
137138
'Topic :: Internet',
138139
],
139140
keywords='authentication edx',

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[tox]
2-
envlist = py{38,311,312}-django{42},quality
2+
envlist = py{38,311,312}-django{42,52},quality
33

44
[pycodestyle]
55
max-line-length = 120
66

77
[testenv]
88
deps =
99
django42: Django>=4.2,<4.3
10+
django52: Django>=5.2,<5.3
1011
-r{toxinidir}/requirements/test.txt
1112
commands =
1213
pytest {posargs}

0 commit comments

Comments
 (0)