-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
69 lines (59 loc) · 2.17 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
[tox]
# see https://docs.djangoproject.com/en/1.10/faq/install/#what-python-version-can-i-use-with-django
# beware, update README.in if you add new python/django version, and update deps accordingly
envlist = {py37}-django{1_8,1_9,1_10,1_11},{py37,py38,py39}-django{2_0,2_1,2_2,3_0,3_1,3_2},py310-django{2_1,2_2,3_0,3_1,3_2},{py38,py39,py310}-django4_0,{py38,py39,py310,py311}-django{4_1,4_2},{py37,py38,py39,py310,py311}-nocontribcomments
skip_missing_interpreters=True
toxworkdir=.tox
[testenv]
changedir=tests
deps=
django1_8: Django>=1.8,<1.9
django1_9: Django>=1.9,<1.10
django1_10: Django>=1.10,<1.11
django1_11: Django>=1.11,<1.12
django2_0: Django>=2,<2.1
django2_1: Django>=2.1,<2.2
django2_2: Django>=2.2,<3.0
django3_0: Django>=3.0,<3.1
django3_1: Django>=3.1,<3.2
django3_2: Django>=3.2,<4.0
django4_0: Django>=4.0,<4.1
django4_1: Django>=4.1,<4.2
django4_2: Django>=4.2,<4.3
{py37,py38,py39,py310,py311}-nocontribcomments: Django>=2.2,<3.2
django1_{8,9,10}: django-contrib-comments==1.7.0
django1_11: django-contrib-comments<2
django2_{0,1,2},django3_{0,1,2},django4_{0,1,2}: django-contrib-comments>=1.9.2
-r requirements-base.txt
commands=
pip list
pytest
# We ensure that by default postgres-specific fixers are skipped
pip uninstall -y psycopg2-binary
python check_behaviour_with_minimal_settings.py
python check_behaviour_with_environment_variables.py
commands_post=
# We must restore psycopg2 else tox env will be broken for subsequent uses (recreate env if this command is not reached)
pip install psycopg2-binary>=2.8
setenv =
INSIDE_TOX_FOR_DCP = true
[testenv:py37-nocontribcomments]
setenv =
IGNORE_CONTRIB_COMMENTS = true
INSIDE_TOX_FOR_DCP = true
[testenv:py38-nocontribcomments]
setenv =
IGNORE_CONTRIB_COMMENTS = true
INSIDE_TOX_FOR_DCP = true
[testenv:py39-nocontribcomments]
setenv =
IGNORE_CONTRIB_COMMENTS = true
INSIDE_TOX_FOR_DCP = true
[testenv:py310-nocontribcomments]
setenv =
IGNORE_CONTRIB_COMMENTS = true
INSIDE_TOX_FOR_DCP = true
[testenv:py311-nocontribcomments]
setenv =
IGNORE_CONTRIB_COMMENTS = true
INSIDE_TOX_FOR_DCP = true