forked from django-tastypie/django-tastypie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
66 lines (58 loc) · 2.48 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
[tox]
envlist =
py{27}-dj{111}
py{34}-dj{20}
py{35,36}-dj{20,21,dev}
py{27,36}-docs,
py{27,36}-flake8,
py{27,36}-flake8-strict
skipsdist=True
[testenv]
usedevelop=True
test-executable =
{envbindir}/coverage run --append --source=tastypie,tests {envbindir}/django-admin.py
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/tests
PYTHONWARNINGS = always
commands =
dj{111,20,21,dev}: {[testenv]test-executable} test -p '*' core.tests --settings=settings_core
dj{111,20,21,dev}: {[testenv]test-executable} test basic.tests --settings=settings_basic
dj{111,20,21,dev}: {[testenv]test-executable} test related_resource.tests --settings=settings_related
dj{111,20,21,dev}: {[testenv]test-executable} test alphanumeric.tests --settings=settings_alphanumeric
dj{111,20,21,dev}: {[testenv]test-executable} test authorization.tests --settings=settings_authorization
dj{111,20,21,dev}: {[testenv]test-executable} test content_gfk.tests --settings=settings_content_gfk
dj{111,20,21,dev}: {[testenv]test-executable} test customuser.tests --settings=settings_customuser
dj{111,20,21,dev}: {[testenv]test-executable} test namespaced.tests --settings=settings_namespaced
dj{111,20,21,dev}: {[testenv]test-executable} test slashless.tests --settings=settings_slashless
dj{111,20,21,dev}: {[testenv]test-executable} test validation.tests --settings=settings_validation
dj{111,20,21,dev}: {[testenv]test-executable} test gis.tests --settings=settings_gis_spatialite
docs: sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
docs: sphinx-build -W -b doctest -d {envtmpdir}/doctrees . {envtmpdir}/html
flake8: {envbindir}/flake8 .
flake8-strict: {envbindir}/flake8 --ignore=E128 --max-complexity 10 .
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
deps =
dj111: Django>=1.11,<1.12
dj20: Django>=2.0,<2.1
dj21: Django>=2.1,<2.2
djdev: https://github.com/django/django/archive/master.tar.gz
py27-dj{111}: django-oauth-plus==2.2.9
py27-dj{111,20,21,dev}: python-digest
py27-dj{111,20,21,dev}: oauth2
py27-dj{111,20,21,dev}: pysqlite==2.7.0
py{34,35,36}-dj{111,20,21,dev}: python3-digest>=1.8b4
dj{111,20,21,dev}: -r{toxinidir}/tests/requirements.txt
docs: Sphinx
py27-docs: Django<2.0
py{34,35,36}-docs: Django<2.2
docs: mock
docs: sphinx_rtd_theme
{flake8,flake8-strict}: flake8
changedir =
docs: docs/
sitepackages =
docs: True