File tree 4 files changed +22
-2
lines changed
4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 3
3
language : python
4
4
5
5
python :
6
+ - " 3.10"
6
7
- " 3.9"
7
8
- " 3.8"
8
9
- " 3.7"
15
16
- DJANGO=20
16
17
- DJANGO=22
17
18
- DJANGO=31
19
+ - DJANGO=32
20
+ - DJANGO=40
18
21
19
22
matrix :
20
23
fast_finish : true
@@ -25,8 +28,16 @@ matrix:
25
28
env : DJANGO=22
26
29
- python : " 2.7"
27
30
env : DJANGO=31
31
+ - python : " 2.7"
32
+ env : DJANGO=32
33
+ - python : " 2.7"
34
+ env : DJANGO=40
28
35
- python : " 3.5"
29
36
env : DJANGO=31
37
+ - python : " 3.5"
38
+ env : DJANGO=32
39
+ - python : " 3.5"
40
+ env : DJANGO=40
30
41
31
42
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
32
43
install : pip install -r requirements_test.txt
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ codecov>=2.0.0
6
6
7
7
8
8
# Additional test requirements go here
9
- psycopg2>=2.7.0
9
+ psycopg2-binary >=2.7.0
Original file line number Diff line number Diff line change 13
13
14
14
from django .test import TestCase
15
15
from django .db import models , DEFAULT_DB_ALIAS
16
- from django .utils .translation import ugettext_lazy as _
16
+ try :
17
+ from django .utils .translation import ugettext_lazy as _
18
+ except ImportError :
19
+ # django 4.0 removed ugettext_lazy
20
+ from django .utils .translation import gettext_lazy as _
17
21
18
22
from django_db_comments .db_comments import (
19
23
get_comments_for_model ,
Original file line number Diff line number Diff line change 1
1
[tox]
2
2
envlist =
3
+ {py38,py39,py310}-django-40
4
+ {py38,py39,py310}-django-32
3
5
{py37,py38,py39}-django-31
4
6
{py37,py38,py39}-django-22
5
7
{py35,py36,py37}-django-20
@@ -13,8 +15,11 @@ deps =
13
15
django-20: Django>=2.0,<2.1
14
16
django-22: Django>=2.2,<3.0
15
17
django-31: Django>=3.1,<3.2
18
+ django-32: Django>=3.2,<4.0
19
+ django-40: Django>=4.0,<4.1
16
20
-r{toxinidir}/requirements_test.txt
17
21
basepython =
22
+ py310: python3.10
18
23
py39: python3.9
19
24
py38: python3.8
20
25
py37: python3.7
You can’t perform that action at this time.
0 commit comments