[ussuri][goal] Drop python 2.7 support and testing

OpenStack is dropping the py2.7 support in ussuri cycle.

keystoneauth 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: I76ad66b76a85db9609aebc08e1f26a74219402f0
This commit is contained in:
Vishakha Agarwal 2019-12-15 19:07:49 +05:30 committed by Monty Taylor
parent 1c77ad193a
commit aafc90a9c2
5 changed files with 10 additions and 16 deletions

View File

@ -1,10 +1,8 @@
- project:
templates:
- check-requirements
- lib-forward-testing
- lib-forward-testing-python3
- openstack-lower-constraints-jobs
- openstack-python-jobs
- openstack-python3-ussuri-jobs
- openstacksdk-functional-tips
- openstacksdk-tox-tips

View File

@ -5,7 +5,6 @@
# For generationg sphinx documentation
openstackdocstheme>=1.18.1 # Apache-2.0
reno>=2.5.0 # Apache-2.0
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD
sphinxcontrib-apidoc>=0.2.0 # BSD

View File

@ -0,0 +1,6 @@
---
upgrade:
- |
Python 2.7 support has been dropped. Last release of keystoneauth
to support python 2.7 is OpenStack Train. The minimum version of Python now
supported 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

15
tox.ini
View File

@ -1,7 +1,8 @@
[tox]
minversion = 2.5.0
minversion = 3.1.1
skipsdist = True
envlist = py27,py37,pep8,releasenotes
envlist = py37,pep8,releasenotes
ignore_basepython_conflict = True
[testenv]
usedevelop = True
@ -15,9 +16,9 @@ deps =
commands = stestr run {posargs}
whitelist_externals =
bash
basepython = python3
[testenv:pep8]
basepython = python3
commands =
flake8
# Run security linter
@ -26,17 +27,14 @@ commands =
bandit -r keystoneauth1 -x tests -s B110,B410
[testenv:bandit]
basepython = python3
# NOTE(browne): This is required for the integration test job of the bandit
# project. Please do not remove.
commands = bandit -r keystoneauth1 -x tests -s B110,B410
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:cover]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage run --source keystoneauth1 --parallel-mode
@ -47,7 +45,6 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:debug]
basepython = python3
commands = oslo_debug_helper -t keystoneauth1/tests {posargs}
[flake8]
@ -67,7 +64,6 @@ import-order-style = pep8
application-import-names = keystoneauth1
[testenv:docs]
basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt
@ -77,7 +73,6 @@ commands =
sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
[testenv:pdf-docs]
basepython = python3
envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
whitelist_externals =
@ -89,7 +84,6 @@ commands =
make -C doc/build/pdf
[testenv:releasenotes]
basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt
@ -99,7 +93,6 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
local-check-factory = keystoneauth1.hacking.checks.factory
[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt