forked from django-tastypie/django-tastypie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (55 loc) · 2.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
62
63
64
[tox]
envlist =
py{3.6,3.7,3.8,3.9,3.10}-dj{2.2,3.2}
py{3.8,3.9,3.10}-dj{4.0,4.1,dev}
py{3.6,3.7,3.8,3.9,3.10}-docs,
py{3.6,3.7,3.8,3.9,3.10}-flake8,
py{3.8,3.9,3.10}-flake8-strict
skipsdist=True
[testenv]
usedevelop=True
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/tests
PYTHONWARNINGS = always
TESTEXE = {envbindir}/coverage run --append --source=tastypie,tests {envbindir}/django-admin.py
dj{4.0,4.1,dev}: TESTEXE = {envbindir}/coverage run --append --source=tastypie,tests {envbindir}/django-admin
commands =
dj{2.2,3.2,4.0,4.1,dev}: {env:TESTEXE} test -p '*' core.tests --settings=settings_core
dj{2.2,3.2,4.0,4.1,dev}: {env:TESTEXE} test basic.tests --settings=settings_basic
dj{2.2,3.2,4.0,4.1,dev}: {env:TESTEXE} test related_resource.tests --settings=settings_related
dj{2.2,3.2,4.0,4.1,dev}: {env:TESTEXE} test alphanumeric.tests --settings=settings_alphanumeric
dj{2.2,3.2,4.0,4.1,dev}: {env:TESTEXE} test authorization.tests --settings=settings_authorization
dj{2.2,3.2,4.0,4.1,dev}: {env:TESTEXE} test content_gfk.tests --settings=settings_content_gfk
dj{2.2,3.2,4.0,4.1,dev}: {env:TESTEXE} test customuser.tests --settings=settings_customuser
dj{2.2,3.2,4.0,4.1,dev}: {env:TESTEXE} test namespaced.tests --settings=settings_namespaced
dj{2.2,3.2,4.0,4.1,dev}: {env:TESTEXE} test slashless.tests --settings=settings_slashless
dj{2.2,3.2,4.0,4.1,dev}: {env:TESTEXE} test validation.tests --settings=settings_validation
dj{2.2,3.2,4.0,4.1,dev}: {env:TESTEXE} 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 =
py3.6: python3.6
py3.7: python3.7
py3.8: python3.8
py3.9: python3.9
py3.10: python3.10
deps =
dj2.2: Django>=2.2,<2.3
dj3.2: Django>=3.2,<3.3
dj4.0: Django>=4.0,<4.1
dj4.1: Django>=4.1,<4.2
djdev: https://github.com/django/django/archive/refs/heads/main.zip
dj{2.2,3.2,4.0,4.1,dev}: python3-digest>=1.8b4
dj{2.2,3.2,4.0,4.1,dev}: -r{toxinidir}/tests/requirements.txt
py{3.6,3.7}-docs: Django~=2.2
py{3.8,3.9,3.10}-docs: Django<4.2
docs: Sphinx
docs: mock
docs: sphinx_rtd_theme
{flake8,flake8-strict}: flake8
changedir =
docs: docs/
sitepackages =
docs: True