diff options
author | Akihiro Motoki <amotoki@gmail.com> | 2019-11-13 01:24:29 +0900 |
---|---|---|
committer | Akihiro Motoki <amotoki@gmail.com> | 2019-12-17 14:46:06 +0900 |
commit | 010053df07d7dffad55581c0db9d43256a482280 (patch) | |
tree | 063f0fc68048e0267e3a77f46e0ce6935f18932b /tox.ini | |
parent | e68234ecf6ce402660dd0577b8b86513594a6005 (diff) | |
download | python-neutronclient-010053df07d7dffad55581c0db9d43256a482280.tar.gz |
Drop python 2.7 support
We no longer support python 2.7 past Train.
Let's stop testings with python 2.7 and drop python 2.7 stuffs.
pypy in tox.ini is also dropped too. It is not used for long.
Change-Id: I8a07c007a129cd2141085a1a3cc7f81658c42db2
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -1,10 +1,11 @@ [tox] -# py3 first to avoid .testrepository incompatibility -envlist = py37,py27,pypy,pep8 +envlist = py37,pep8 minversion = 2.3.2 skipsdist = True +ignore_basepython_conflict = True [testenv] +basepython = python3 setenv = VIRTUAL_ENV={envdir} LANG=en_US.UTF-8 LANGUAGE=en_US:en @@ -25,24 +26,20 @@ commands = sh -c "find . -type d -name '.?*' -prune -o \ whitelist_externals = sh [testenv:pep8] -basepython = python3 commands = flake8 {[testenv:bandit]commands} distribute = false [testenv:venv] -basepython = python3 commands = {posargs} [testenv:functional] -basepython = python3 setenv = OS_TEST_PATH = ./neutronclient/tests/functional OS_NEUTRONCLIENT_EXEC_DIR = {envdir}/bin [testenv:cover] -basepython = python3 setenv = {[testenv]setenv} PYTHON=coverage run --source neutronclient --parallel-mode @@ -54,12 +51,10 @@ commands = coverage report [testenv:docs] -basepython = python3 deps = -r{toxinidir}/doc/requirements.txt commands = sphinx-build -W -b html doc/source doc/build/html [testenv:pdf-docs] -basepython = python3 envdir = {toxworkdir}/docs deps = {[testenv:docs]deps} whitelist_externals = @@ -69,7 +64,6 @@ commands = make -C doc/build/pdf [testenv:releasenotes] -basepython = python3 deps = -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html @@ -82,13 +76,11 @@ import-order-style = pep8 enable-extensions=H904 [testenv:bandit] -basepython = python3 # B303: blacklist calls: md5, sha1 deps = -r{toxinidir}/test-requirements.txt commands = bandit -r neutronclient -x tests -n5 -s B303 [testenv:lower-constraints] -basepython = python3 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt |