Skip to content

Commit df18730

Browse files
mschoettlebrowniebrokeiMerica
authored
Add support for Django 6 (#719)
* Drop support for Python 3.8 and 3.9 * Run tests on ubuntu-latest * Add support for Python 3.13 and 3.14 and use Django 5.2 * Pin django-allauth in tests * Pin djangorestframework-simplejwt as well * Add support for Django 6 * Makes deps less tight * Support Django 5.1 --------- Co-authored-by: Bruno Alla <alla.brunoo@gmail.com> Co-authored-by: @iMerica <michaelmartinez@me.com>
1 parent af73a5f commit df18730

5 files changed

Lines changed: 37 additions & 23 deletions

File tree

.github/workflows/main.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17-
- name: Set up Python 3.8
17+
- name: Set up Python
1818
uses: actions/setup-python@v5
1919
with:
20-
python-version: 3.8
20+
python-version: '3.10'
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
@@ -31,10 +31,10 @@ jobs:
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v4
34-
- name: Set up Python 3.8
34+
- name: Set up Python
3535
uses: actions/setup-python@v5
3636
with:
37-
python-version: 3.8
37+
python-version: '3.10'
3838
- name: Install dependencies
3939
run: |
4040
python -m pip install --upgrade pip
@@ -46,18 +46,30 @@ jobs:
4646
name: dist
4747
path: dist/
4848
test:
49-
runs-on: ubuntu-20.04
49+
runs-on: ubuntu-latest
5050
name: Test Python ${{ matrix.python-version }} + Django ~= ${{ matrix.django-version }}
5151
needs: [ build ]
5252
strategy:
5353
matrix:
54-
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
55-
django-version: [ '4.2', '5.0' ]
54+
python-version: [ '3.10', '3.11', '3.12', '3.13', '3.14' ]
55+
django-version: [ '4.2', '5.1', '5.2', '6.0' ]
5656
exclude:
57-
- python-version: '3.8'
58-
django-version: '5.0'
59-
- python-version: '3.9'
60-
django-version: '5.0'
57+
# Django 4.2 only supports Python up to 3.12.
58+
- python-version: 3.13
59+
django-version: 4.2
60+
- python-version: 3.14
61+
django-version: 4.2
62+
# Django 5.1 supports Python up to 3.13.
63+
- python-version: 3.14
64+
django-version: 5.1
65+
# Django 5.2 supports Python up to 3.13.
66+
- python-version: 3.14
67+
django-version: 5.2
68+
# Django 6 supports Python 3.12+.
69+
- python-version: 3.10
70+
django-version: 6.0
71+
- python-version: 3.11
72+
django-version: 6.0
6173
steps:
6274
- name: Checkout
6375
uses: actions/checkout@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ with SPAs (e.g., React, Vue, Angular), and Mobile applications.
77

88
## Requirements
99
- Django >= 4.2 (See Unit Test Coverage in CI)
10-
- Python >= 3.8
10+
- Python >= 3.10
1111

1212
## Quick Setup
1313

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
coveralls==1.11.1
2-
django-allauth[socialaccount]>=64.0.0
3-
djangorestframework-simplejwt>=5.3.1
2+
django-allauth[socialaccount]~=65.4.1
3+
djangorestframework-simplejwt~=5.3.1
44
flake8==7.1.1
55
responses==0.12.1
66
unittest-xml-reporting==3.2.0

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
keywords='django rest auth registration rest-framework django-registration api',
2929
zip_safe=False,
3030
install_requires=[
31-
'Django>=4.2,<6.0',
31+
'Django>=4.2',
3232
'djangorestframework>=3.13.0',
3333
],
3434
extras_require={
@@ -44,7 +44,7 @@
4444
],
4545
test_suite='runtests.runtests',
4646
include_package_data=True,
47-
python_requires='>=3.8',
47+
python_requires='>=3.10',
4848
classifiers=[
4949
'Framework :: Django',
5050
'Intended Audience :: Developers',

tox.ini

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,25 @@
1010
[tox]
1111
skipsdist = true
1212
envlist =
13-
python{3.8,3.9,3.10,3.11,3.12}-django{4,5}
13+
python{3.10,3.11,3.12,3.13,3.14}-django{4,5.1,5.2,6}
1414

1515
[gh-actions]
1616
python =
17-
3.8: python3.8-django4
18-
3.9: python3.9-django4
19-
3.10: python3.10-django4, python3.10-django5
20-
3.11: python3.11-django4, python3.11-django5
21-
3.12: python3.12-django4, python3.12-django5
17+
3.10: python3.10-django4, python3.10-django5.1, python3.10-django5.2
18+
3.11: python3.11-django4, python3.11-django5.1, python3.11-django5.2
19+
3.12: python3.12-django4, python3.12-django5.1, python3.12-django5.2, python3.12-django6
20+
3.13: python3.13-django5.1, python3.13-django5.2, python3.13-django6
21+
3.14: python3.14-django5.2, python3.14-django6
2222

2323
[testenv]
2424
commands =
2525
python ./runtests.py
2626
deps =
2727
-r dj_rest_auth/tests/requirements.txt
2828
django4: Django>=4.2,<5.0
29-
django5: Django>=5.0,<6.0
29+
django5.1: Django>=5.1,<5.2
30+
django5.2: Django>=5.2,<6.0
31+
django6: Django>=6.0,<7.0
3032

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

0 commit comments

Comments
 (0)