diff options
author | Ghanshyam Mann <gmann@ghanshyammann.com> | 2019-10-30 06:16:14 +0000 |
---|---|---|
committer | Lingxian Kong <anlin.kong@gmail.com> | 2019-12-05 22:38:19 +1300 |
commit | e6f55c57d5506503033aff2e3c9496efb40fabaa (patch) | |
tree | 1021116f06528ca32a7e6cdcb02635fcb189599a /tox.ini | |
parent | 053820856807c2b6311d8c1da6e2f648000316a1 (diff) | |
download | trove-e6f55c57d5506503033aff2e3c9496efb40fabaa.tar.gz |
[ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.
Trove is ready with python 3 and ok to drop the
python 2.7 support.
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: I6b448747c873bfc9c0138c0f7e3ca67ddce02dee
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -1,9 +1,10 @@ [tox] -envlist = py27,py37,pep8,cover,api-ref,releasenotes,bandit,fakemodetests,pylint +envlist = py37,pep8,cover,api-ref,releasenotes,bandit,fakemodetests,pylint minversion = 2.0 skipsdist = True [testenv] +basepython = python3 setenv = VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning OS_TEST_PATH=./trove/tests/unittests @@ -29,21 +30,17 @@ whitelist_externals = find sitepackages = True [testenv:pep8] -basepython = python3 commands = flake8 doc8 {posargs} [testenv:fakemodetests] -basepython = python3 commands = {envpython} run_tests.py [testenv:debug] -basepython = python3 commands = oslo_debug_helper {posargs} [testenv:cover] -basepython = python3 setenv = {[testenv]setenv} PYTHON=coverage run --source trove @@ -56,7 +53,6 @@ commands = coverage report [testenv:venv] -basepython = python3 commands = {posargs} [doc8] @@ -79,7 +75,6 @@ import_exceptions = trove.common.i18n local-check-factory = trove.hacking.checks.factory [testenv:api-ref] -basepython = python3 # This environment is called from CI scripts to test and publish # the API Ref to developer.openstack.org. commands = @@ -87,41 +82,33 @@ commands = sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html [testenv:releasenotes] -basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:bandit] -basepython = python3 commands = bandit -r trove -n5 -x tests [testenv:bandit-baseline] -basepython = python3 envdir = {toxworkdir}/bandit commands = bandit-baseline -r trove -n5 -x tests -ii -ll [testenv:genpolicy] -basepython = python3 commands = oslopolicy-sample-generator --config-file=tools/trove-policy-generator.conf [testenv:pylint] -basepython = python3 deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = python tools/trove-pylint.py {posargs:check} [testenv:docs] -basepython = python3 commands = sphinx-build -W -b html doc/source doc/build/html [testenv:lower-constraints] -basepython = python3 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt [testenv:trovestack] -basepython = python3 skip_install = True changedir = {toxinidir}/integration/scripts passenv = * |