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
|
[tox]
envlist = py{26,27,34,py,py3}, docs, style
[testenv]
commands =
py.test [] jsonschema
{envpython} -m doctest README.rst
py{26,27,34,py}: sphinx-build -b doctest docs {envtmpdir}/html
deps =
pytest
strict-rfc3339
webcolors
py{27,34,py,py3}: rfc3987
py26: argparse
py26: unittest2
py{26,27,py,py3}: mock
py{26,27,34}: lxml
pypy: git+https://github.com/amauryfa/lxml.git@cffi
py{26,27,34,py}: sphinx
[testenv:coverage]
commands =
coverage run --branch --source jsonschema [] {envbindir}/py.test jsonschema
coverage report --show-missing
coverage html
deps =
coverage
[testenv:docs]
basepython = python
changedir = docs
deps =
-r{toxinidir}/docs/doc-requirements.txt
commands =
sphinx-build [] -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:style]
deps = flake8
commands =
flake8 [] --max-complexity 10 jsonschema
[flake8]
ignore = E203,E302,E303,E701,F811
[pytest]
addopts = -r s -s
|