release-test/tox.ini
Andreas Jaeger f0d941dcfc Cleanup py27 support
Py27 is dead, let's do a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Switch to using sphinx-build and openstackdocstheme, update
  versions of tools
- Remove install_command from tox.ini, the default is fine
- Remove babel.cfg, it's not used
- Update to hacking 3.0

Change-Id: I21c89e05a33ce614f1af5288433a993b599e0a35
2020-05-03 13:38:12 +02:00

48 lines
1.1 KiB
INI

[tox]
minversion = 2.0
distribute = False
envlist = py36,pep8
[testenv]
basepython = python3
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands =
python setup.py test --coverage --coverage-package-name=oslo_config --slowest {posargs}
coverage report --show-missing
[testenv:pep8]
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:cover]
setenv =
{[testenv]setenv}
PYTHON=coverage run --source release_test --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:docs]
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:debug]
commands = oslo_debug_helper {posargs}
[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build