Clean up tox.ini
[mudpy.git] / tox.ini
1 # Copyright (c) 2016-2018 Jeremy Stanley <fungi@yuggoth.org>. Permission
2 # to use, copy, modify, and distribute this software is granted under
3 # terms provided in the LICENSE file distributed with this software.
4
5 [tox]
6 minversion = 3.1
7 envlist = dist, docs, flake8, yamllint, selftest_config, py3
8 skipsdist = True
9 ignore_basepython_conflict = True
10
11 [testenv]
12 basepython = python3
13 usedevelop = True
14 install_command = pip install {opts} {packages}
15 setenv =
16     PYTHONWARNINGS=default::DeprecationWarning
17 deps = -r{toxinidir}/test-requirements.txt
18 commands = mudpy_selftest mudpy/tests/fixtures/test_daemon.yaml
19
20 [testenv:dist]
21 whitelist_externals = rm
22 deps =
23     docutils
24     pbr
25 commands =
26     rm -fr dist
27     python setup.py check --restructuredtext --strict
28     python setup.py bdist_wheel sdist
29
30 [testenv:docs]
31 whitelist_externals = rm
32 deps = -r{toxinidir}/doc/requirements.txt
33 commands =
34     rm -fr doc/build
35     sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
36
37 [testenv:flake8]
38 commands = flake8 {posargs}
39
40 [testenv:selftest_config]
41 commands = mudpy_selftest etc/mudpy.yaml
42
43 [testenv:yamllint]
44 commands = yamllint {posargs} .
45
46 [flake8]
47 show-source = True
48 exclude=.git,.tox,*lib/python*,*egg,build