Skip to content

Commit 4de8aa3

Browse files
authored
Add django 5.2 support [fixes #180] (#181)
* Add django 5.2 support
1 parent 294a937 commit 4de8aa3

14 files changed

Lines changed: 96 additions & 57 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414

1515
- name: Setup Python
16-
uses: actions/setup-python@v3
16+
uses: actions/setup-python@v5
1717
with:
1818
python-version: '3.9'
1919
cache: pip

.github/workflows/test.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,16 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version:
14-
- '3.7'
15-
- '3.8'
1614
- '3.9'
1715
- '3.10'
1816
- '3.11'
1917
- '3.12'
2018
django-version:
21-
- '32'
22-
- '41'
2319
- '42'
2420
- '50'
2521
exclude:
26-
- python-version: '3.7'
27-
django-version: '41'
28-
- python-version: '3.7'
29-
django-version: '42'
30-
- python-version: '3.7'
31-
django-version: '50'
32-
- python-version: '3.8'
33-
django-version: '50'
3422
- python-version: '3.9'
3523
django-version: '50'
36-
- python-version: '3.11'
37-
django-version: '32'
38-
- python-version: '3.12'
39-
django-version: '32'
40-
- python-version: '3.12'
41-
django-version: '41'
4224
env:
4325
PYTHON_VERSION: ${{ matrix.python-version }}
4426
DJANGO_VERSION: ${{ matrix.django-version }}
@@ -48,7 +30,7 @@ jobs:
4830
- uses: actions/checkout@v3
4931

5032
- name: Set up Python ${{ matrix.python-version }}
51-
uses: actions/setup-python@v3
33+
uses: actions/setup-python@v5
5234
with:
5335
python-version: ${{ matrix.python-version }}
5436
cache: pip

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ settings_local.py
2929
venv/
3030
.pyenv/
3131
lcov.info
32+
cert.*

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ native-migrate: native-install-all
6262
PYTHONPATH='.' python example_project/manage.py migrate
6363

6464
native-run-example: native-migrate
65-
PYTHONPATH='.' python example_project/manage.py runsslserver 0.0.0.0:$(PORT)
65+
PYTHONPATH='.' python example_project/manage.py runserver_plus --cert-file cert.crt 0.0.0.0:$(PORT)
6666

6767
native-clean:
6868
find . -path ./venv -prune | grep -E "(__pycache__|\.pyc|\.pyo$$)" | xargs rm -rf

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ OAuth signin with django rest framework.
1414
Requirements
1515
-----------
1616

17-
- python (3.7, 3.8, 3.9, 3.10, 3.11, 3.12)
18-
- django (3.2, 4.1, 4.2, 5.0, 5.1)
17+
- python (3.9, 3.10, 3.11, 3.12)
18+
- django (4.2, 5.0, 5.1, 5.2)
1919
- djangorestframework (>=3.9, <4.0)
20-
- social-auth-core (>=4.3, <5.0)
21-
- social-auth-app-django (>=5.0, <6.0)
20+
- social-auth-core (>=4.6.1, <5.0)
21+
- social-auth-app-django (>=5.4.3, <6.0)
2222
- [optional] djangorestframework-simplejwt (>=5.0.0)
2323
- [optional] django-rest-knox (>=4.0.0, <5.0.0)
2424

@@ -497,7 +497,7 @@ There is an [example project](https://github.com/st4lk/django-rest-social-auth/t
497497

498498
- open [https://127.0.0.1:8000/](https://127.0.0.1:8000/) in your browser
499499

500-
Note: `runsslserver` is used instead of built-in `runserver` to serve the project with TLS (aka SSL) certificate.
500+
Note: `runserver_plus` is used instead of built-in `runserver` to serve the project with TLS (aka SSL) certificate.
501501
HTTPS is required by some social providers (facebook), without it they won't work.
502502
The certificate will not be trusted by your system - that is expected.
503503
Just tell your browser to proceed with this untrusted certificate - it is acceptable for development purposes.

RELEASE_NOTES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
rest_social_auth release notes
22
==============================
33

4+
v9.0.0
5+
------
6+
- Add support of Django 5.2
7+
- Drop support of Django 3.2, 4.1
8+
- Drop support of Python 3.7, 3.8
9+
- Updated minimal required social-auth versions:
10+
* social-auth-core (>=4.6.1, <5.0)
11+
* social-auth-app-django (>=5.4.3, <6.0)
12+
13+
Issues: #180
14+
415
v8.4.0
516
------
617
- Add support of Django 5.1

example_project/config/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
'rest_framework.authtoken',
4444
'social_django',
4545
'rest_social_auth',
46-
'sslserver', # some social providers require https
4746
'knox', # For django-rest-knox
47+
'django_extensions', # some social providers require https
4848

4949
'users',
5050
)

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
django>=3.2,<5.2
1+
django>=4.2
22
djangorestframework<4.0
3-
social-auth-core>=4.3,<5.0
4-
social-auth-app-django>=5.0,<6.0
3+
social-auth-core>=4.6.1,<5.0
4+
social-auth-app-django>=5.4.3,<6.0

requirements_test.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
pytest-django==4.5.2
2-
httpretty==1.1.4
32
unittest2==1.1.0
4-
django-sslserver>=0.22
5-
flake8==4.0.0
3+
django-extensions==4.1
4+
flake8==7.2.0
5+
responses==0.25.7
6+
typing_extensions==4.13.2
7+
Werkzeug==3.1.3
8+
pyOpenSSL==25.1.0

rest_social_auth/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__author__ = 'st4lk'
2-
__version__ = '8.4.0'
2+
__version__ = '9.0.0'

0 commit comments

Comments
 (0)