-
Notifications
You must be signed in to change notification settings - Fork 51
/
tox.ini
79 lines (72 loc) · 1.62 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
[tox]
envlist = py3-django{31,32,40,41,42,50},pypy3-django{42}
[testenv]
commands = {envpython} -m pytest {posargs}
deps =
django31: Django >= 3.1, <3.2
django32: Django >= 3.2, <3.3
django40: Django >= 4.0, <4.1
django41: Django >= 4.1, <4.2
django42: Django >= 4.2, <4.3
django50: Django >= 5.0, <5.1
-rtest_requirements.txt
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
usedevelop = True
passenv = HOME
[testenv:django-with-jinja2]
setenv =
DJANGO_SETTINGS_MODULE = tests.settings_jinja2_only
commands = {envpython} -m pytest {posargs}
deps =
django42: Django >= 4.2, <4.3
jinja2
-rtest_requirements.txt
usedevelop = True
passenv = HOME
[testenv:docs]
basepython = python3
usedevelop = True
commands =
make -C docs clean
make -C docs html
allowlist_externals =
make
rm
deps =
-rdocs/requirements.txt
-rtest_requirements.txt
[testenv:coverage]
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
basepython = python3
usedevelop = True
commands =
{envpython} -m pytest --cov iommi --cov tests --cov-config .coveragerc {posargs}
{envpython} -m coverage report -m
{envpython} -m coverage html
deps =
Django >= 4.0, <4.1
coverage
pytest-cov
-rtest_requirements.txt
[testenv:venv]
envdir = venv
usedevelop = True
basepython = python3
commands = {posargs:python --version}
deps =
Django >= 4.0, <4.3
-rtest_requirements.txt
whitelist_externals =
make
[testenv:venv_flask]
envdir = venv
usedevelop = True
basepython = python3
commands = {posargs:python --version}
deps =
flask
-rvenv_requirements.txt
whitelist_externals =
make