fda05305bd
Running `python setup.py test` and similar commands is no longer supported by setuptools. These rely on testr anyway which has been replaced by stestr in most places. Just switch to using stestr to avoid these problems. Note that we drop the coverage tox target since that requires a bit more effort to setup now, but this was not used in CI and probably isn't super important for a tool like grafyaml. It can be added back in if a need arises in the future. Change-Id: I86039d1d143b0199285d9195a3582640d447b36e
32 lines
713 B
INI
32 lines
713 B
INI
[tox]
|
|
minversion = 3.1.1
|
|
envlist = docs,pep8,py35,py36,py37,py38
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
stestr run {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = sphinx-build -W -E -b html doc/source doc/build/html
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
# H202 skip until we actually write our own exceptions
|
|
|
|
show-source = True
|
|
ignore = E123,E125,H202,W503
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|