Add py3 to the default tox env list
[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 = dist, docs, flake8, yamllint, py3
8 skipsdist = True
9
10 [testenv]
11 basepython = python3
12 usedevelop = True
13 install_command = pip install {opts} {packages}
14 setenv =
15     PYTHONWARNINGS=default::DeprecationWarning
16 deps = -r{toxinidir}/test-requirements.txt
17 commands = mudpy_selftest mudpy/tests/fixtures/test_daemon.yaml
18
19 [testenv:dist]
20 whitelist_externals = rm
21 deps =
22     docutils
23     pbr
24 commands =
25     rm -fr dist
26     python setup.py check --restructuredtext --strict
27     python setup.py bdist_wheel sdist
28
29 [testenv:docs]
30 whitelist_externals = rm
31 deps = -r{toxinidir}/doc/requirements.txt
32 commands =
33     rm -fr doc/build
34     sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
35
36 [testenv:flake8]
37 commands = flake8 {posargs}
38
39 [testenv:yamllint]
40 commands = yamllint {posargs} .
41
42 [testenv:venv]
43 commands = {posargs}
44
45 [flake8]
46 show-source = True
47 exclude=.venv,.git,.tox,*lib/python*,*egg,build