Switch to `twine check` in tox testenv:dist
[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:debug]
21 commands = mudpy mudpy/tests/fixtures/test_daemon.yaml
22
23 [testenv:dist]
24 whitelist_externals = rm
25 deps =
26     docutils
27     pbr
28     twine
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     sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
40
41 [testenv:flake8]
42 commands = flake8 {posargs}
43
44 [testenv:selftest_config]
45 commands = mudpy_selftest etc/mudpy.yaml
46
47 [testenv:yamllint]
48 commands = yamllint {posargs} .
49
50 [flake8]
51 show-source = True
52 exclude=.git,.tox,*lib/python*,*egg,build