Use py3 only

Change-Id: I5f14af93be18d79cddfc4fc358b60a85a5d26a90
This commit is contained in:
Eyal 2019-12-30 12:41:22 +02:00
parent 283e064a4c
commit fd02f4c7f8

13
tox.ini
View File

@ -1,9 +1,11 @@
[tox]
minversion = 2.0
envlist = py27,py37,pep8
minversion = 3.1.1
envlist = py37,pep8
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
@ -22,17 +24,14 @@ whitelist_externals =
find
[testenv:pep8]
basepython = python3
commands =
python setup.py check --restructuredtext --strict
flake8 {posargs}
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:cover]
basepython = python3
setenv =
PYTHON=coverage run --source $project --parallel-mode
commands =
@ -42,11 +41,9 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:docs]
basepython = python3
commands = python setup.py build_sphinx
[testenv:releasenotes]
basepython = python3
whitelist_externals =
rm
commands =
@ -54,7 +51,6 @@ commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
[testenv:debug]
basepython = python3
whitelist_externals = oslo_debug_helper
commands = oslo_debug_helper -t mistral_lib/tests {posargs}
@ -67,7 +63,6 @@ builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt