forked from rst2pdf/rst2pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (45 loc) · 965 Bytes
/
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
[tox]
minversion = 3.1
envlist = py37,docs,style
ignore_basepython_conflict = true
[testenv]
basepython = python3
usedevelop = true
description =
Run unit tests against {envname}.
deps =
-r requirements.txt
pytest
pytest-cov
pytest-xdist
pymupdf
coverage
commands =
pytest -n auto {posargs}
[testenv:coverage]
description =
Generate coverage data.
commands =
pytest -n auto --cov {posargs}
coverage html
[testenv:docs]
description =
Build documentation.
changedir =
{toxinidir}/doc
whitelist_externals =
cp
deps =
-r requirements.txt
commands =
rst2pdf manual.rst --custom-cover=assets/cover.tmpl -o output/manual.pdf -s assets/manual.style -b1
rst2man.py rst2pdf.rst output/rst2pdf.1
python rst2html-manual.py --stylesheet=assets/manual.css manual.rst output/manual.html
cp assets/biohazard.png output/html/assets/
[testenv:style]
description =
Run style checks.
deps =
flake8
commands =
flake8 doc rst2pdf setup.py