X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=00f262c774e198ba283f7cdc6dda3611cb9398ab;hb=76c6d3deb39045eec4bf11d189892485e8a9c454;hp=926e603a8ef544bb893fe6d48e44824c4c870ec4;hpb=1278ef65bd3422c0684007535742c3ef28d645ef;p=nfvbench.git diff --git a/tox.ini b/tox.ini index 926e603..00f262c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.6 -envlist = py36,pep8,lint,docs,docs-linkcheck +envlist = py38,pep8,lint,docs,docs-linkcheck skipsdist = True [testenv] @@ -9,24 +9,26 @@ usedevelop = True install_command = pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} -deps = -r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt +deps = + -chttps://opendev.org/openstack/requirements/raw/branch/stable/yoga/upper-constraints.txt + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt commands = py.test -q --basetemp={envtmpdir} {posargs} [testenv:pep8] -basepython = python3 +basepython = python3.8 commands = flake8 {toxinidir} [testenv:lint] -basepython = python3 +basepython = python3.8 commands = pylint --rcfile pylint.rc nfvbench test [testenv:venv] -basepython = python3 +basepython = python3.8 commands = {posargs} [testenv:cover] -basepython = python3 +basepython = python3.8 commands = python setup.py testr --coverage --testr-args='{posargs}' [flake8] @@ -69,15 +71,19 @@ builtins = _ exclude=venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,dib-venv [testenv:docs] -basepython = python3 -deps = -rdocs/requirements.txt +basepython = python3.8 +deps = + -chttps://opendev.org/openstack/requirements/raw/branch/stable/yoga/upper-constraints.txt + -rdocs/requirements.txt commands = sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html echo "Generated docs available in {toxinidir}/docs/_build/html" whitelist_externals = echo [testenv:docs-linkcheck] -basepython = python3 -deps = -rdocs/requirements.txt +basepython = python3.8 +deps = + -chttps://opendev.org/openstack/requirements/raw/branch/stable/yoga/upper-constraints.txt + -rdocs/requirements.txt passenv = http_proxy https_proxy no_proxy commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck