Drop python2 support and testing

Change-Id: I1ce77e223674013754408b2db42b1fb6e80bb32b
This commit is contained in:
Eric Fried 2019-10-25 09:24:35 -05:00 committed by Sean Mooney
parent 527b0df2cb
commit 7bad0f93bb
5 changed files with 10 additions and 13 deletions

View File

@ -39,8 +39,7 @@
devstack_plugins:
neutron: https://opendev.org/openstack/neutron.git
devstack_localrc:
# TODO(sean-k-mooney) move all tempest jobs to py3 by default.
# USE_PYTHON3: true
USE_PYTHON3: true
FORCE_CONFIG_DRIVE: true
ENABLE_VOLUME_MULTIATTACH: true
# NOTE(sean-k-mooney) we do not have to set
@ -118,7 +117,6 @@
templates:
- check-requirements
- openstack-lower-constraints-jobs
- openstack-python-jobs
- openstack-python3-ussuri-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3

View File

@ -27,6 +27,7 @@
cmd: |
set -e
set -x
export DEVSTACK_GATE_USE_PYTHON3=true
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_FULL=1

View File

@ -0,0 +1,4 @@
---
upgrade:
- |
Python 2 is no longer supported. Python 3 is required.

View File

@ -5,6 +5,7 @@ description-file = README.rst
author = OpenStack
author-email = openstack-discuss@lists.openstack.org
home-page = https://docs.openstack.org/os-vif/latest/
python-requires = >=3.6
classifier =
Environment :: OpenStack
Intended Audience :: Information Technology
@ -12,11 +13,11 @@ classifier =
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: Implementation :: CPython
[files]
packages =

View File

@ -1,6 +1,6 @@
[tox]
minversion = 3.1.1
envlist = py37,py27,pep8
envlist = py37,pep8
skipsdist = True
ignore_basepython_conflict = True
@ -29,13 +29,6 @@ deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/doc/requirements.txt
[testenv:functional-py27]
basepython = python2.7
setenv =
{[testenv]setenv}
commands =
stestr run --black-regex ".tests.unit" '{posargs}'
[testenv:functional]
setenv =
{[testenv]setenv}