4
4
# install tox" and then run "tox" from this directory.
5
5
6
6
[tox]
7
- envlist = {py35,py36,py37,py38}-{tests,install},py36-docs
7
+ envlist = {py35,py36,py37,py38}-{tests,install},docs,install, py36-docs
8
8
9
9
[testenv]
10
10
download = true
@@ -20,34 +20,43 @@ deps =
20
20
-rrequirements/runtime.txt
21
21
-rrequirements/tests.txt
22
22
23
- [testenv:py37- install]
23
+ [testenv:install]
24
24
skip_install = True
25
25
commands =
26
26
python setup.py bdist_wheel
27
27
pip install --no-index --find-links =dist pydocstyle
28
28
pydocstyle --help
29
29
30
+ [testenv:docs]
31
+ changedir = docs
32
+ deps =
33
+ -rrequirements/runtime.txt
34
+ -rrequirements/docs.txt
35
+ commands = sphinx-build -b html . _build
36
+
37
+ [testenv:py36-docs]
38
+ changedir = {[testenv:docs]changedir}
39
+ deps = {[testenv:docs]deps}
40
+ commands = {[testenv:docs]commands}
41
+
30
42
# There's no way to generate sub-sections in tox.
31
43
# The following sections are all references to the `py37-install`.
32
44
33
45
[testenv:py35-install]
34
- skip_install = {[testenv:py37- install]skip_install}
35
- commands = {[testenv:py37- install]commands}
46
+ skip_install = {[testenv:install]skip_install}
47
+ commands = {[testenv:install]commands}
36
48
37
49
[testenv:py36-install]
38
- skip_install = {[testenv:py37- install]skip_install}
39
- commands = {[testenv:py37- install]commands}
50
+ skip_install = {[testenv:install]skip_install}
51
+ commands = {[testenv:install]commands}
40
52
41
- [testenv:py38 -install]
42
- skip_install = {[testenv:py37- install]skip_install}
43
- commands = {[testenv:py37- install]commands}
53
+ [testenv:py37 -install]
54
+ skip_install = {[testenv:install]skip_install}
55
+ commands = {[testenv:install]commands}
44
56
45
- [testenv:py36-docs]
46
- changedir =docs
47
- deps =
48
- -rrequirements/runtime.txt
49
- -rrequirements/docs.txt
50
- commands =sphinx-build -b html . _build
57
+ [testenv:py38-install]
58
+ skip_install = {[testenv:install]skip_install}
59
+ commands = {[testenv:install]commands}
51
60
52
61
[pytest]
53
62
pep8ignore =
0 commit comments