forked from orcasgit/django-fernet-fields
-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
45 lines (38 loc) · 1022 Bytes
/
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
[tox]
envlist =
py36-{docs,flake8},
py{27,35,36,37,py}-django111-{pg,sqlite},
py{35,36,37}-{django21,django22,djangolatest}-{pg,sqlite},
flake8,
docs
[testenv]
deps =
-crequirements.txt
cryptography
pytest-django
pytest
coverage
psycopg2
psycopg2cffi
django111: Django>=1.11,<2
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
djangolatest: Django>=2.2
# Older PyPy versions (and all released PyPy3 versions) don't work with cryptography 1.0
py{py,py3}: cryptography<1
setenv =
sqlite: DJANGO_SETTINGS_MODULE = fernet_fields.test.settings.sqlite
pg: DJANGO_SETTINGS_MODULE = fernet_fields.test.settings.pg
commands =
coverage run -a runtests.py fernet_fields/test --tb short
[testenv:py36-flake8]
deps = flake8
changedir = {toxinidir}
commands = flake8 .
[testenv:py36-docs]
deps = Sphinx
changedir = {toxinidir}/doc
commands =
sphinx-build -aEWq -b html . _build/html
[flake8]
exclude = .tox,.git,__pycache__,doc/conf.py