forked from yourlabs/django-cities-light
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
101 lines (94 loc) · 2.21 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
[tox]
envlist =
py{27,35,36}-django{18,19,110,111}{-sqlite,-mysql,-postgresql},
py{35,36}-djangodev{-sqlite,-mysql,-postgresql},
checkqa,
docs
skip_missing_interpreters = True
sitepackages = False
[base]
deps =
# recommended django version and other dependencies
Django>=1.11a,<2.0
django-ajax-selects==1.6.0
djangorestframework==3.6.3
[docs]
deps =
# sphinx
Sphinx==1.3.6
Babel==2.2.0
snowballstemmer==1.2.1
sphinx-rtd-theme==0.1.9
Pygments==2.1.3
Jinja2==2.8
MarkupSafe==0.23
alabaster==0.7.7
docutils==0.12
pytz
# pycco (is this used???)
pycco==0.4.1
markdown==2.6.5
pystache==0.5.4
smartypants==1.8.6
[test]
deps =
pytest
pytest-django
pytest-cov
mock
coverage
django-dbdiff>=0.4.0
djangorestframework==3.7.7
django-ajax-selects==1.6.0
django-autoslug-iplweb==1.9.4.dev0
[testenv]
skipsdist = true
usedevelop = true
commands =
mysql: mysql -u root -e 'drop database if exists test_cities_light_test;'
postgresql: psql -U postgres -c 'drop database if exists test_cities_light_test;'
py.test --cov cities_light --create-db --strict -r fEsxXw {posargs:cities_light}
whitelist_externals =
mysql
psql
deps =
{[test]deps}
django111: Django>=1.11a,<2.0
django20: Django>=2.0,<2.1
djangodev: https://github.com/django/django/archive/master.tar.gz
postgresql: psycopg2
mysql: mysqlclient
setenv =
PIP_ALLOW_EXTERNAL=true
DJANGO_SETTINGS_MODULE=test_project.settings
CI=true
sqlite: DB_NAME=:memory:
postgresql: DB_NAME=cities_light_test
postgresql: DB_ENGINE=postgresql_psycopg2
postgresql: DB_USER=postgres
mysql: DB_NAME=cities_light_test
mysql: DB_ENGINE=mysql
mysql: DB_USER=root
passenv = TEST_* DBDIFF_* DB_*
[testenv:checkqa]
basepython = python3.5
commands = pep8 --ignore=E402,E124,E128 --exclude=tests,migrations cities_light
deps = pep8
[testenv:dev]
commands =
deps =
{[base]deps}
{[docs]deps}
{[test]deps}
# all supported database backends
psycopg2
mysqlclient
# ipython
ipython
[testenv:docs]
deps =
{[base]deps}
{[docs]deps}
changedir = docs
commands = make html
whitelist_externals = make