Stop testing python 2

Since it's no longer supported past Train, lets stop
running the tests.
Please also see the related neutron patch:
I1c171ab906a3b4c66558163ad26947ebf710a276

Change-Id: Iea431ea4cd56400d0867bdb4212f1c72f7cf6c72
This commit is contained in:
Adit Sarfaty 2019-10-27 15:08:33 +02:00
parent bb5ffb0cc8
commit b13aff57d8
3 changed files with 3 additions and 11 deletions

View File

@ -1,6 +1,5 @@
- project: - project:
templates: templates:
- openstack-lower-constraints-jobs - openstack-lower-constraints-jobs
- openstack-python-jobs - openstack-python3-ussuri-jobs
- openstack-python3-train-jobs
- check-requirements - check-requirements

View File

@ -13,8 +13,6 @@ classifier =
License :: OSI Approved :: Apache Software License License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux Operating System :: POSIX :: Linux
Programming Language :: Python Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3 Programming Language :: Python :: 3
Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.7

View File

@ -1,10 +1,11 @@
[tox] [tox]
envlist = py27,py37,pep8 envlist = py37,pep8
minversion = 2.0 minversion = 2.0
skipsdist = True skipsdist = True
[testenv] [testenv]
install_command = pip install {opts} {packages} install_command = pip install {opts} {packages}
basepython = python3
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning PYTHONWARNINGS=default::DeprecationWarning
passenv = TRACE_FAILONLY GENERATE_HASHES http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY passenv = TRACE_FAILONLY GENERATE_HASHES http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
@ -26,7 +27,6 @@ setenv = {[testenv]setenv}
commands = false commands = false
[testenv:functional] [testenv:functional]
basepython = python3
setenv = {[testenv]setenv} setenv = {[testenv]setenv}
{[testenv:common]setenv} {[testenv:common]setenv}
OS_TEST_PATH=./vmware_nsxlib/tests/functional OS_TEST_PATH=./vmware_nsxlib/tests/functional
@ -36,7 +36,6 @@ deps =
-r{toxinidir}/vmware_nsxlib/tests/functional/requirements.txt -r{toxinidir}/vmware_nsxlib/tests/functional/requirements.txt
[testenv:dsvm-functional] [testenv:dsvm-functional]
basepython = python3
setenv = {[testenv]setenv} setenv = {[testenv]setenv}
OS_SUDO_TESTING=1 OS_SUDO_TESTING=1
OS_FAIL_ON_MISSING_DEPS=1 OS_FAIL_ON_MISSING_DEPS=1
@ -53,7 +52,6 @@ sitepackages = True
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:pep8] [testenv:pep8]
basepython = python3
deps = deps =
{[testenv]deps} {[testenv]deps}
commands = commands =
@ -70,7 +68,6 @@ deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/
commands = bandit -r vmware_nsxlib -n 5 -ll commands = bandit -r vmware_nsxlib -n 5 -ll
[testenv:cover] [testenv:cover]
basepython = python3
commands = commands =
python setup.py test --coverage --coverage-package-name=vmware_nsxlib --testr-args='{posargs}' python setup.py test --coverage --coverage-package-name=vmware_nsxlib --testr-args='{posargs}'
coverage report coverage report
@ -79,7 +76,6 @@ commands =
commands = {posargs} commands = {posargs}
[testenv:docs] [testenv:docs]
basepython = python3
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -b html doc/source doc/build/html commands = sphinx-build -b html doc/source doc/build/html
@ -108,7 +104,6 @@ commands =
check-uuid --fix check-uuid --fix
[testenv:lower-constraints] [testenv:lower-constraints]
basepython = python3
deps = deps =
-c{toxinidir}/lower-constraints.txt -c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt