Skip to content

Commit bf06939

Browse files
committed
Add Django 4.0 support.
1 parent 8f12646 commit bf06939

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.github/workflows/main.yml

+12
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ jobs:
5555
python: 3.8
5656
allow_failure: false
5757

58+
- name: py310-dj40-postgres-xdist-coverage
59+
python: '3.10'
60+
allow_failure: false
61+
5862
- name: py310-dj32-postgres-xdist-coverage
5963
python: '3.10'
6064
allow_failure: false
@@ -67,6 +71,10 @@ jobs:
6771
python: 3.9
6872
allow_failure: false
6973

74+
- name: py39-dj40-mysql_innodb-coverage
75+
python: 3.9
76+
allow_failure: false
77+
7078
- name: py37-dj31-mysql_innodb-coverage
7179
python: 3.7
7280
allow_failure: false
@@ -87,6 +95,10 @@ jobs:
8795
python: 3.8
8896
allow_failure: false
8997

98+
- name: py38-dj40-sqlite-xdist-coverage
99+
python: 3.8
100+
allow_failure: false
101+
90102
- name: py39-djmain-sqlite-coverage
91103
python: 3.9
92104
allow_failure: true

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pytest-django allows you to test your Django project/applications with the
3232
<https://pytest-django.readthedocs.io/en/latest/contributing.html>`_
3333
* Version compatibility:
3434

35-
* Django: 2.2, 3.1, 3.2 and latest main branch (compatible at the time of
35+
* Django: 2.2, 3.1, 3.2, 4.0 and latest main branch (compatible at the time of
3636
each release)
3737
* Python: CPython>=3.5 or PyPy 3
3838
* pytest: >=5.4

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ classifiers =
1616
Framework :: Django :: 2.2
1717
Framework :: Django :: 3.1
1818
Framework :: Django :: 3.2
19+
Framework :: Django :: 4.0
1920
Intended Audience :: Developers
2021
License :: OSI Approved :: BSD License
2122
Operating System :: OS Independent

tox.ini

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[tox]
22
envlist =
3-
py310-dj{main,32}-postgres
4-
py39-dj{main,32,31,22}-postgres
5-
py38-dj{main,32,31,22}-postgres
3+
py310-dj{main,40,32}-postgres
4+
py39-dj{main,40,32,31,22}-postgres
5+
py38-dj{main,40,32,31,22}-postgres
66
py37-dj{32,31,22}-postgres
77
py36-dj{32,31,22}-postgres
88
py35-dj{22}-postgres
@@ -12,6 +12,7 @@ envlist =
1212
extras = testing
1313
deps =
1414
djmain: https://github.com/django/django/archive/main.tar.gz
15+
dj40: Django>=4.0a1,<4.1
1516
dj32: Django>=3.2,<4.0
1617
dj31: Django>=3.1,<3.2
1718
dj22: Django>=2.2,<2.3

0 commit comments

Comments
 (0)