30f6475665
Neutron is refactoring a lot of its code. For example, common entities are being moved to neutron-lib. When code is refactored it is marked with debtcollector, which issues a deprecation warning. In the next release the old entity will be removed. Consuming projects (like tricircle) must update to comply with the new entity before the old one is removed. Tricircle maintainers must monitor deprecation warnings and act on them before the next release. Many deprecations are triggered early (on imports, for example) before the warnings are enabled by the WarningsFixture in the base test class. To make sure all DeprecationWarning messages are emitted we enable them via the PYTHONWARNINGS environment variable. Change-Id: Iade909b35a55cebb7dfe13a688f451ad91989b94
49 lines
1.3 KiB
INI
49 lines
1.3 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py34,py27,pypy,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
sitepackages = True
|
|
usedevelop = True
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
TRICIRCLE_TEST_DIRECTORY=tricircle/tests
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
-egit+https://git.openstack.org/openstack/neutron@master#egg=neutron
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
whitelist_externals = rm
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:genconfig]
|
|
commands = oslo-config-generator --config-file=etc/api-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/nova_apigw-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/cinder_apigw-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/xjob-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/tricircle_plugin-cfg-gen.conf
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[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
|