-
Notifications
You must be signed in to change notification settings - Fork 37
/
tox.ini
52 lines (47 loc) · 1.58 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
# To use tox, see https://tox.readthedocs.io
# Simply pip or conda install tox
# If you use conda, you may also want to install tox-conda
[tox]
envlist = docs-clean
[testenv]
basepython = python3
skip_install = true
[testenv:notebooks]
description = convert and execute the querying notebook
# Note this requires that a database already be set up at AIIDA_PATH, and run:
# verdi archive import https://object.cscs.ch/v1/AUTH_b1d80408b3d340db9f03d373bbde5c1e/marvel-vms/tutorials/aiida_tutorial_2020_07_perovskites_v0.9.aiida
passenv = AIIDA_PATH
deps =
aiida-core~=1.6.4
aiida-quantumespresso
ipykernel
ipython
jupytext
matplotlib
nbconvert
numpy
commands_pre = reentry scan -r aiida
commands =
jupytext --from myst --to ipynb --execute --output docs/sections/managing_data/querying-executed.ipynb docs/sections/managing_data/querying.md
[testenv:docs-{update,clean}]
description =
clean: Build the documentation (remove any existing build)
update: Build the documentation (modify any existing build)
deps = -rrequirements.txt
whitelist_externals =
rm
echo
commands =
clean: rm -rf docs/_build
sphinx-build -nW --keep-going -b {posargs:html} docs/ docs/_build/{posargs:html}
commands_post = echo "open file://{toxinidir}/docs/_build/{posargs:html}/index.html"
[testenv:docs-live]
description = Build the documentation and launch browser
deps =
-rrequirements.txt
sphinx-autobuild
commands =
sphinx-autobuild \
--re-ignore _build/.* \
--port 0 --open-browser \
-n -b {posargs:html} docs/ docs/_build/{posargs:html}