-
Notifications
You must be signed in to change notification settings - Fork 16
/
tox.ini
36 lines (31 loc) · 982 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[tox]
envlist = py3, bandit, pep8
[testenv]
deps = -r test-requirements.txt
install_command =
pip install {opts} --upgrade {packages} pip setuptools
commands =
pip list --outdated
python -m unittest --verbose
[testenv:docs]
deps = -r docs/requirements.txt
commands =
sphinx-apidoc --force --output-dir docs ebuildtester
sphinx-build -M html docs docs/_build
sphinx-build -M doctest docs docs/_build
sphinx-build -M linkcheck docs docs/_build
sphinx-build -M coverage docs docs/_build
sphinx-build -M man docs docs/_build
[testenv:bandit]
commands = bandit --exit-zero --recursive {toxinidir}/ebuildtester {toxinidir}/test
[testenv:pep8]
commands = pycodestyle ebuildtester
[testenv:pypi]
deps =
setuptools
wheel
twine
commands =
python setup.py sdist --dist-dir {envdir}/dist
python setup.py bdist_wheel --dist-dir {envdir}/dist
twine check --strict {envdir}/dist/*