1
1
[tox]
2
- envlist = py26, py27, pypy, pypy3, py34, docs, style
2
+ envlist = py{26,27,34,py,py3}, docs, style
3
+
3
4
4
5
[testenv]
5
6
# by default tox runs with --pre which tickles this bug:
@@ -8,50 +9,31 @@ install_command = pip install {opts} {packages}
8
9
commands =
9
10
py.test [] jsonschema
10
11
{envpython} -m doctest README.rst
11
- deps =
12
- {[testenv:notpy34]deps}
13
- {[testenv:py34]deps}
14
-
15
- [testenv:py26]
16
- deps =
17
- {[testenv:notpy34]deps}
18
- {[testenv:all]deps}
19
- argparse
20
- unittest2
21
-
22
- [testenv:py34]
23
- commands =
24
- py.test [] jsonschema
25
- {envpython} -m doctest README.rst
26
- deps =
27
- {[testenv:all]deps}
28
- {[testenv:notpy26]deps}
29
-
30
- [testenv:notpy34]
31
- deps =
32
- mock
33
-
34
- [testenv:notpy26]
35
- deps =
36
- rfc3987
37
-
38
- [testenv:all]
12
+ py{26,27,34,py}: sphinx-build -b doctest docs {envtmpdir}/html
39
13
deps =
40
14
pytest
41
- sphinx
42
15
strict-rfc3339
43
16
webcolors
17
+ py{27,34,py,py3}: rfc3987
18
+
19
+ py26: argparse
20
+ py26: unittest2
21
+ py{26,27,py,py3}: mock
22
+
23
+ py{26,27,34}: lxml
24
+ pypy: git+https://github.com/amauryfa/lxml.git@cffi
25
+ py{26,27,34,py}: sphinx
26
+
44
27
45
28
[testenv:coverage]
46
29
commands =
47
30
coverage run --branch --source jsonschema [] {envbindir}/py.test jsonschema
48
31
coverage report --show-missing
49
32
coverage html
50
33
deps =
51
- {[testenv:notpy34]deps}
52
- {[testenv:py34]deps}
53
34
coverage
54
35
36
+
55
37
[testenv:docs]
56
38
basepython = python
57
39
changedir = docs
@@ -60,13 +42,16 @@ deps =
60
42
commands =
61
43
sphinx-build [] -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
62
44
45
+
63
46
[testenv:style]
64
47
deps = flake8
65
48
commands =
66
49
flake8 [] --max-complexity 10 jsonschema
67
50
51
+
68
52
[flake8]
69
53
ignore = E203,E302,E303,E701,F811
70
54
55
+
71
56
[pytest]
72
57
addopts = -r s -s
0 commit comments