forked from ionelmc/sphinx-py3doc-enhanced-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
49 lines (44 loc) · 1.02 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
; a generative tox configuration, see: https://testrun.org/tox/latest/config.html#generative-envlist
[tox]
envlist =
check,
clean,
docs-{default,bare},
import
[testenv]
basepython = {env:TOXPYTHON:python3.4}
envdir = {toxinidir}/.tox/docs
setenv =
default: EXTRASTYLING=true
bare: EXTRASTYLING=false
passenv =
*
deps =
sphinx
ghp-import2
commands =
clean: python -c 'import shutil; shutil.rmtree("dist", True)'
default: sphinx-build {posargs:-E} -b html tests dist/default
bare: sphinx-build {posargs:-E} -b html tests dist/bare
import: ghp-import -n -p -m "Update gh-pages." dist
usedevelop = true
[testenv:check]
basepython = python3.4
deps =
docutils
check-manifest
flake8
readme
pygments
skip_install = true
usedevelop = false
commands =
python setup.py check --strict --metadata --restructuredtext
check-manifest {toxinidir}
flake8 src
[testenv:import]
skip_install = true
usedevelop = false
[testenv:clean]
skip_install = true
usedevelop = false