4780eec9d4
OpenStack is dropping the py2.7 support in ussuri cycle. heat-tempest-plugin is ready with python 3 and ok to drop the python 2.7 support. Stable zuul jobs are modified to run with py3 as heat-tempest-plugin cannot run py2 jobs on master gate. Complete discussion & schedule can be found in - http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html - https://etherpad.openstack.org/p/drop-python2-support Ussuri Communtiy-wide goal: https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Change-Id: Ida6919a70dc8711166a79eac574b0714382e8d00
36 lines
713 B
INI
36 lines
713 B
INI
[tox]
|
|
envlist = py37,pep8
|
|
minversion = 3.1.1
|
|
skipsdist = True
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
userdevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
|
|
testr run {posargs}
|
|
|
|
[testenv:pep8]
|
|
setenv =
|
|
PYTHONPATH = .
|
|
commands =
|
|
flake8
|
|
check-uuid --package heat_tempest_plugin
|
|
|
|
[testenv:uuidgen]
|
|
setenv =
|
|
PYTHONPATH = .
|
|
commands =
|
|
check-uuid --fix --package heat_tempest_plugin
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,*lib/python*,private,.eggs
|