-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
33 lines (30 loc) · 829 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
# Tox configuration file
# Read more under https://tox.readthedocs.org/
# THIS SCRIPT IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS!
[tox]
minversion = 3.15
envlist = default
[testenv]
description = invoke pytest to run automated tests
setenv =
TOXINIDIR = {toxinidir}
passenv =
HOME
commands =
py.test {posargs}
extras =
all
testing
[testenv:{docs,doctests}]
description = invoke sphinx-build to build the docs/run doctests
setenv =
DOCSDIR = {toxinidir}/docs
BUILDDIR = {toxinidir}/docs/_build
docs: BUILD = html
doctests: BUILD = doctest
deps =
sphinx
# sphinx_rtd_theme
# any docs/requirements.txt for/shared with Read The Docs?
commands =
sphinx-build -b {env:BUILD} -d "{env:BUILDDIR}/doctrees" "{env:DOCSDIR}" "{env:BUILDDIR}/{env:BUILD}" {posargs}