Stop testing with py2

Python 2 is no longer supported. Python 3 is required.
This patch stops testing with Python 2 and issues the release note.

Change-Id: Ibed6cf480280dcdde19a8d47982b9e1fa6b96f85
This commit is contained in:
Tetsuro Nakamura 2019-10-28 02:30:58 +00:00
parent 4856c7209f
commit 9f030ebc27
5 changed files with 8 additions and 16 deletions

View File

@ -1,7 +1,6 @@
- project:
templates:
- check-requirements
- openstack-python-jobs
- openstack-python3-ussuri-jobs
check:
jobs:
@ -11,9 +10,6 @@
- openstack-tox-pep8:
required-projects:
- openstack/nova
- openstack-tox-py27:
required-projects:
- openstack/nova
- openstack-tox-py36:
required-projects:
- openstack/nova
@ -28,9 +24,6 @@
- openstack-tox-pep8:
required-projects:
- openstack/nova
- openstack-tox-py27:
required-projects:
- openstack/nova
- openstack-tox-py36:
required-projects:
- openstack/nova

View File

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

View File

@ -5,8 +5,6 @@ description-file = README.rst
license = Apache Software License
classifiers =
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7

View File

@ -7,7 +7,6 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
nose>=1.3.7 # LGPL
mock>=2.0.0 # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
sphinxcontrib-httpdomain>=1.3.0 # BSD
fixtures>=3.0.0 # Apache-2.0/BSD

10
tox.ini
View File

@ -1,9 +1,11 @@
[tox]
envlist = py27,py36,py37,pep8
minversion = 2.0
envlist = py36,py37,pep8
minversion = 3.1.1
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3
usedevelop = True
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
@ -16,15 +18,12 @@ commands =
sitepackages = False
[testenv:cover]
basepython = python3
commands = python setup.py testr --coverage --testr-args="{posargs}"
[testenv:pep8]
basepython = python3
commands = flake8 {posargs}
[testenv:venv]
basepython = python3
commands = {posargs}
[flake8]
@ -33,7 +32,6 @@ builtins = _
exclude = .venv,.git,.tmp,.tox,dist,doc,*lib/python*,*egg,tools
[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt