-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
43 lines (37 loc) · 952 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
[flake8]
max-line-length = 120
[tox]
isolated_build = True
requires = tox-conda
envlist =
py38
[testenv]
conda_env = environment.yml
conda_install_args=
--override-channels
extras = dev
description = test OWL-APy
commands =
pytest --continue-on-collection-errors {posargs}
[testenv:build]
extras = dev
description = build OWL-APy package
commands =
python -m build
[testenv:clean]
skip_install = True
description = delete the built package
commands =
python -c 'from shutil import rmtree; rmtree("build", True); rmtree("dist", True)'
[testenv:docs-clean]
skip_install = True
description = delete the built docs
commands =
python -c 'from shutil import rmtree; rmtree("docs/_build", True);'
[testenv:docs]
extras = docs
description = build Ontolearn docs
commands =
sphinx-build -M {posargs:html} docs/ docs/_build/
commands_post =
python -c 'print("documentation can be found in file:https://{toxinidir}/docs/_build/")'