Clean dist directory in tox dist environment
[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 = 2.0
7 envlist = flake8, yamllint
8 skipsdist = True
9
10 [testenv]
11 basepython = python3
12 usedevelop = True
13 install_command = pip install {opts} {packages}
14 setenv =
15     VIRTUAL_ENV={envdir}
16     PYTHONWARNINGS=default::DeprecationWarning
17 deps = -r{toxinidir}/test-requirements.txt
18 commands = python setup.py test --slowest --testr-args='{posargs}'
19
20 [testenv:dist]
21 whitelist_externals = rm
22 deps = pbr
23 commands =
24     rm -fr dist
25     python setup.py bdist_wheel sdist
26
27 [testenv:docs]
28 whitelist_externals = rm
29 deps = -r{toxinidir}/doc/requirements.txt
30 commands =
31     rm -fr doc/build
32     sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
33
34 [testenv:flake8]
35 commands = flake8 {posargs}
36
37 [testenv:yamllint]
38 commands = yamllint {posargs} .
39
40 [testenv:venv]
41 commands = {posargs}
42
43 [flake8]
44 show-source = True
45 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build