Drop py2 support and testing

...per Ussuri Communtiy-wide goal:
    https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I5ab48fe70e49d104290f1c01014e4aa6420e300f
This commit is contained in:
Eric Fried 2020-01-14 10:55:50 -06:00
parent 87671feed6
commit f6c6b42fd3
4 changed files with 8 additions and 11 deletions

View File

@ -2,5 +2,4 @@
templates:
- check-requirements
- publish-openstack-docs-pti
- openstack-python-jobs
- openstack-python3-train-jobs
- openstack-python3-ussuri-jobs

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
Python 2.7 support has been dropped. The minimum version of Python now
supported by sphin-feature-classification is Python 3.6.

View File

@ -13,8 +13,6 @@ 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.6
Programming Language :: Python :: 3.7

View File

@ -1,9 +1,10 @@
[tox]
minversion = 2.0
envlist = py27,py37,pep8
envlist = py37,pep8
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
setenv =
@ -15,28 +16,22 @@ deps =
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:pep8]
basepython = python3
commands = flake8 {posargs}
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:cover]
basepython = python3
commands = python setup.py test --coverage --testr-args='{posargs}'
[testenv:docs]
basepython = python3
commands = python setup.py build_sphinx
[testenv:releasenotes]
basepython = python3
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:debug]
basepython = python3
commands = oslo_debug_helper {posargs}
[flake8]