-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtox.ini
77 lines (63 loc) · 2.06 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
[tox]
envlist =
py27-{flake8,coverage}
py37-{docs,flake8,coverage},
pypy-django{18,19,110,111}-{sqlite,sqlite_file,postgres},
py27-django{18,19,110,111}-{sqlite,sqlite_file,postgres},
py34-django{18,19,110,111,20}-{sqlite,sqlite_file,postgres},
py35-django{18,19,110,111,20,21,22}-{sqlite,sqlite_file,postgres},
py{36,37,py3}-django{111,20,21,22,trunk}-{sqlite,sqlite_file,postgres},
[testenv]
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
pypy: pypy
pypy3: pypy3
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
coveralls
pytest<4.0
pytest-django
py
six>=1.11.0
coverage: coverage==4.4.2
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django>=1.10,<1.11
django111: Django>=1.11a1,<2
django20: Django>=2,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
djangotrunk: https://github.com/django/django/tarball/master
pypy,pypy3: psycopg2cffi
py{27,34,35,36,37}: psycopg2-binary
mysql_myisam: mysqlclient
mysql_innodb: mysqlclient
setenv =
PYTHONWARNINGS=module::DeprecationWarning
sqlite: DJANGO_SETTINGS_MODULE = computed_property.tests.settings.sqlite
sqlite_file: DJANGO_SETTINGS_MODULE = computed_property.tests.settings.sqlite_file
mysql_innodb: DJANGO_SETTINGS_MODULE = computed_property.tests.settings.mysql_innodb
mysql_myisam: DJANGO_SETTINGS_MODULE = computed_property.tests.settings.mysql_myisam
postgres: DJANGO_SETTINGS_MODULE = computed_property.tests.settings.postgres
commands =
!coverage: ./runtests.py computed_property/tests
coverage: coverage erase && coverage run -a runtests.py computed_property/tests
[testenv:py27-flake8]
deps = flake8
changedir = {toxinidir}
commands = flake8 .
[testenv:py37-flake8]
deps = flake8
changedir = {toxinidir}
commands = flake8 .
[testenv:py37-docs]
deps = Sphinx
changedir = {toxinidir}/doc
commands =
sphinx-build -aEWq -b html . _build/html
[flake8]
exclude = .tox,.git,__pycache__,doc/conf.py,venv/