Add support for user preferences
[mudpy.git] / tox.ini
1 # Copyright (c) 2016-2019 mudpy authors. Permission to use, copy,
2 # modify, and distribute this software is granted under terms
3 # 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:demo]
21 commands = mudpy {posargs}
22
23 [testenv:dist]
24 whitelist_externals = rm
25 deps =
26     pbr
27     twine
28     wheel
29 commands =
30     rm -fr dist
31     python setup.py bdist_wheel sdist
32     twine check dist/*
33
34 [testenv:docs]
35 whitelist_externals = rm
36 deps = -r{toxinidir}/doc/requirements.txt
37 commands =
38     rm -fr doc/build
39     python setup.py sdist
40     sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
41
42 [testenv:flake8]
43 commands = flake8 {posargs}
44
45 [testenv:selftest_config]
46 commands = mudpy_selftest etc/mudpy.yaml
47
48 [testenv:yamllint]
49 commands = yamllint --strict {posargs} .
50
51 [flake8]
52 show-source = True
53 exclude=.git,.tox,*lib/python*,*egg,build