Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
os: [ubuntu-latest]
python-version: ['3.11', '3.12']
toxenv: [quality, django42, check_keywords]
toxenv: [quality, django42, django52, check_keywords]

steps:
- uses: actions/checkout@v3
Expand All @@ -36,7 +36,7 @@ jobs:
run: tox

- name: Run Coverage
if: matrix.python-version == '3.11' && matrix.toxenv=='django42'
if: matrix.python-version == '3.12' && matrix.toxenv=='django52'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ Unreleased
Added
~~~~~~~

[4.5.0] - 2025-04-09
--------------------

* Added support for Django 5.2

[4.4.0] - 2024-09-10
--------------------

Expand Down
2 changes: 1 addition & 1 deletion auth_backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
These package is designed to be used primarily with Open edX Django projects, but should be compatible with non-edX
projects as well.
"""
__version__ = '4.4.0' # pragma: no cover
__version__ = '4.5.0' # pragma: no cover
9 changes: 5 additions & 4 deletions auth_backends/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

Add these to your project's `urlpatterns` to avoid duplicating code.
"""
from django.urls import include, re_path
from django.urls import path
from django.urls import include

from auth_backends.views import (
EdxOAuth2LoginView,
EdxOAuth2LogoutView,
)

oauth2_urlpatterns = [
re_path(r'^login/$', EdxOAuth2LoginView.as_view(), name='login'),
re_path(r'^logout/$', EdxOAuth2LogoutView.as_view(), name='logout'),
re_path('', include('social_django.urls', namespace='social')),
path('login/', EdxOAuth2LoginView.as_view(), name='login'),
path('logout/', EdxOAuth2LogoutView.as_view(), name='logout'),
path('', include('social_django.urls', namespace='social')),
]
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def get_version(*file_paths):
'Programming Language :: Python :: 3.12',
'Framework :: Django',
'Framework :: Django :: 4.2',
'Framework :: Django :: 5.2',
'Topic :: Internet',
],
keywords='authentication edx',
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[tox]
envlist = py{38,311,312}-django{42},quality
envlist = py{38,311,312}-django{42,52},quality

[pycodestyle]
max-line-length = 120

[testenv]
deps =
django42: Django>=4.2,<4.3
django52: Django>=5.2,<5.3
-r{toxinidir}/requirements/test.txt
commands =
pytest {posargs}
Expand Down