79623621c2
1. What is the problem? When writing the manual installation guide, I find that configuration file generator fails to execute because there is an module import error in opts.py for local and central plugin configuration. Actually there's no need to generate configuration sample for plugin since the original Neutron configuration file will be used, this is left without clearing during the Tricircle splitting. 2. What is the solution to the problem? Remove the entry for generating plugin configuration sample in tox.ini. Also, tox.ini is modified to only install neutron dependency for py27 test, which will speed up pep8, docs and genconfig processes. 3. What the features need to be implemented to the Tricircle to realize the solution? No new features Change-Id: Ie1463a91e7f252943f74f54f80f85e6f10acefd0
49 lines
1.2 KiB
INI
49 lines
1.2 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]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:genconfig]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = oslo-config-generator --config-file=etc/api-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/xjob-cfg-gen.conf
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|