forked from cherrypy/cherrypy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
75 lines (67 loc) · 1.82 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[tox]
envlist = python
minversion = 2.4
[testenv]
usedevelop = True
commands_pre =
pip install -U setuptools
commands =
pytest {posargs}
codecov -f coverage.xml -X gcov
passenv =
WEBTEST_INTERACTIVE
CI
TRAVIS
TRAVIS_*
APPVEYOR
APPVEYOR_*
CIRCLECI
CIRCLE_*
setenv =
WEBTEST_INTERACTIVE=false
extras =
testing
routes_dispatcher
memcached_session
whitelist_externals = mkdir
[testenv:cheroot-master]
deps = git+git://github.com/cherrypy/cheroot.git@master#egg=cheroot
[testenv:pre-commit]
deps =
git+https://github.com/yaml/pyyaml@master#egg=pyyaml;python_version=="3.7"
pre-commit
commands = pre-commit run --all-files {posargs}
[testenv:pre-commit-pep257]
deps = pre-commit
commands =
pre-commit run --config .pre-commit-config-pep257.yaml --all-files {posargs}
[testenv:dist-check]
# ensure that package artifacts are installed as expected
usedevelop = False
commands =
pytest tests/dist-check.py {posargs}
[testenv:setup-check]
extras =
docs
usedevelop = False
commands =
python -m setup check --metadata --restructuredtext --strict --verbose
[testenv:build-docs]
basepython = python3
extras =
docs
testing
changedir = docs
# FIXME: Add -W option below once this issue is addressed:
# https://github.com/jaraco/rst.linker/issues/7
# And once all other warnings are gone.
commands =
python -m sphinx \
-a -n -j auto \
-b html --color \
-d "{toxinidir}/build/html_docs_doctree" \
. "{toxinidir}/build/html"
# Print out the output docs dir and a way to serve html:
python -c \
'import pathlib; '\
'docs_dir = pathlib.Path(r"{toxinidir}") / "build" / "html"; index_file = docs_dir / "index.html"; print(f"\nDocumentation available under `file://\{index_file\}`\n\nTo serve docs, use `python3 -m http.server --directory \{docs_dir\} 0`\n")'