forked from DiSoftCo/django-gm2m
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
103 lines (78 loc) · 1.61 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[tox]
envlist =
# Django pre-release
# py38djpre,
# Django 3.1
py36dj31,
py37dj31,
py38dj31,
# Django 3.0
py36dj30,
py37dj30,
py38dj30,
# Django 2.2
py35dj22,
py36dj22,
py37dj22,
py38dj22,
[testenv]
deps =
pytest_django
xmltodict
PyYAML
deps_djpre =
{[testenv]deps}
# using pip_pre, no need to specify version
Django
deps_dj31 =
{[testenv]deps}
Django>=3.1,<3.2
deps_dj30 =
{[testenv]deps}
Django>=3.0,<3.1
deps_dj22 =
{[testenv]deps}
Django>=2.2,<2.3
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}
changedir = tests
commands = pytest
# Django pre-release
[testenv:py38djpre]
pip_pre = True
basepython = python3.8
deps = {[testenv]deps_djpre}
# Django 3.1
[testenv:py36dj31]
basepython = python3.6
deps = {[testenv]deps_dj31}
[testenv:py37dj31]
basepython = python3.7
deps = {[testenv]deps_dj31}
[testenv:py38dj31]
basepython = python3.8
deps = {[testenv]deps_dj31}
# Django 3.0
[testenv:py36dj30]
basepython = python3.6
deps = {[testenv]deps_dj30}
[testenv:py37dj30]
basepython = python3.7
deps = {[testenv]deps_dj30}
[testenv:py38dj30]
basepython = python3.8
deps = {[testenv]deps_dj30}
# Django 2.2
[testenv:py35dj22]
basepython = python3.5
deps = {[testenv]deps_dj22}
[testenv:py36dj22]
basepython = python3.6
deps = {[testenv]deps_dj22}
[testenv:py37dj22]
basepython = python3.7
deps = {[testenv]deps_dj22}
[testenv:py38dj22]
basepython = python3.8
deps = {[testenv]deps_dj22}