bd4b205f14
1.What is the problem? Tricircle doesn't support python3 yet, but python2 support will be stopped in 2020. OpenStack community has put the support of python3 as the community wide goal in Pike release, Tricircle needs to be ready for this. 2.What is the solution to the problem? Port the code to be compatible with both python2 and python3, for python3, only the python3.5 version will be supported. After this patch is merged, a new gate/check job for python3.5 should be enabled too. 3.What the features need to be implemented to the Tricircle to realize the solution? No new features. Change-Id: I18cb59cadb7a1c06f6cd729c4bda2c8e95d41e1e Signed-off-by: joehuang <joehuang@huawei.com>
57 lines
1.5 KiB
INI
57 lines
1.5 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py35,py27,pypy,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
sitepackages = True
|
|
usedevelop = True
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {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:releasenotes]
|
|
commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[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}'
|
|
coverage report
|
|
|
|
[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
|
|
|
|
[hacking]
|
|
import_exceptions = tricircle.common.i18n
|