Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Django5+ #610

Closed
wants to merge 1 commit into from
Closed
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 dj_rest_auth/tests/requirements.pip
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
coveralls==1.11.1
django-allauth==0.61.1
django>=2.2,<5.0
djangorestframework-simplejwt==4.6.0
django>=2.2
djangorestframework-simplejwt>=5.3.1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jazzband/djangorestframework-simplejwt#756
without this

ImportError: Could not import 'dj_rest_auth.jwt_auth.JWTCookieAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ImportError: cannot import name 'utc' from 'django.utils.timezone'

flake8==3.8.4
responses==0.12.1
unittest-xml-reporting==3.0.4
2 changes: 1 addition & 1 deletion dj_rest_auth/tests/test_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from allauth.socialaccount.providers.facebook.views import FacebookOAuth2Adapter
from allauth.socialaccount.providers.facebook.views import FacebookProvider
from allauth.socialaccount.models import SocialApp
from allauth.exceptions import ImmediateHttpResponse
from allauth.core.exceptions import ImmediateHttpResponse
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allauth.exceptions is deprecated, use allauth.core.exceptions

from django.contrib.auth import get_user_model
from django.urls import reverse
from django.core.exceptions import ValidationError
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
keywords='django rest auth registration rest-framework django-registration api',
zip_safe=False,
install_requires=[
'Django>=3.2,<5.0',
'Django>=3.2',
'djangorestframework>=3.13.0',
],
extras_require={
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ skipsdist = true
envlist =
python{3.6,3.7,3.8,3.9}-django3
python{3.8,3.9,3.10,3.11}-django4
python{3.10,3.11,3.12}-django5

[testenv]
commands =
python ./runtests.py
deps =
-rdj_rest_auth/tests/requirements.pip
django3: Django>=3.2
django4: Django>=4.0,<4.3
django3: Django>=3.2,<4.0
django4: Django>=4.0,<5.0
django5: Django>=5.0,<6.0

# Configuration for coverage and flake8 is being set in `./setup.cfg`
[testenv:coverage]
Expand Down