-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (56 loc) · 1.46 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
[tox]
skipsdist = true
skip_missing_interpreters = true
envlist =
py{py,py3,27,34,35,36}-dj111-{postgresql,mysql,sqlite},
py{py3,34,35,36,37}-dj20-{postgresql,mysql,sqlite},
py{py3,35,36,37}-dj21-{postgresql,mysql,sqlite},
py{py3,35,36,37}-djmaster-{postgresql,mysql,sqlite},
flake8,
isort,
readme,
check-manifest
[testenv]
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
pypy: pypy
pypy3: pypy3
deps =
dj111: Django>=1.11,<2.0
dj20: Django>=2.0,<2.1
dj21: Django>=2.1,<2.2
djmaster: https://github.com/django/django/archive/master.tar.gz
py27: mock
py37-dj21-postgresql: codecov
mysql: -rrequirements/mysql.txt
postgresql: -rrequirements/postgresql.txt
coverage
passenv = CODECOV_TOKEN DATABASE_URL LANG LC_ALL PYTHONIOENCODING TRAVIS TRAVIS_*
commands =
python tests/bootstrap.py
coverage run --source=lookup_extensions setup.py test
py37-dj21-postgresql: codecov
[testenv:flake8]
skip_install = true
basepython = python3
deps = flake8
commands = flake8 lookup_extensions tests
[testenv:isort]
skip_install = true
basepython = python3
deps = isort
commands = isort --recursive --verbose --check-only --diff lookup_extensions tests setup.py
[testenv:readme]
skip_install = true
basepython = python3
deps = readme_renderer
commands = python setup.py check -r -s
[testenv:check-manifest]
skip_install = true
basepython = python3
deps = check-manifest
commands = check-manifest {toxinidir}