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

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

solum-dashboard 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

Depends-On: https://review.opendev.org/#/c/693631/

Change-Id: Iaeb821e3e31f7b2bfcd60212790fa3e5d13fd014
This commit is contained in:
Ghanshyam Mann
2019-10-31 07:11:41 +00:00
committed by zhurong
parent 64c0958bae
commit 60938c94fa
7 changed files with 10 additions and 12 deletions

View File

@@ -3,6 +3,5 @@
- check-requirements
- horizon-non-primary-django-jobs
- openstack-lower-constraints-jobs
- openstack-python-jobs-horizon
- openstack-python3-ussuri-jobs-horizon
- openstack-python3-ussuri-jobs

View File

@@ -100,7 +100,7 @@ semantic-version==2.6.0
simplejson==3.13.2
six==1.11.0
snowballstemmer==1.2.1
Sphinx==1.6.5
Sphinx==1.6.2
sphinxcontrib-httpdomain==1.6.1
sphinxcontrib-pecanwsme==0.8.0
sphinxcontrib-websupport==1.0.1

View File

@@ -0,0 +1,6 @@
---
upgrade:
- |
Python 2.7 support has been dropped. Last release of solum-dashboard
to support python 2.7 is OpenStack Train. The minimum version of Python now
supported by solum-dashboard is Python 3.6.

View File

@@ -3,7 +3,6 @@
# process, which may cause wedges in the gate later.
pbr!=2.1.0,>=3.1.1 # Apache-2.0
# Horizon Core Requirements
Django<2,>=1.11;python_version<'3.0' # BSD
Django<2.1,>=1.11;python_version>='3.0' # BSD
django-compressor>=2.2 # MIT
oslo.log>=3.37.0 # Apache-2.0

View File

@@ -5,8 +5,6 @@ description-file = README.rst
license = Apache Software License
classifier =
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

@@ -13,7 +13,7 @@ stestr>=2.0.0 # Apache-2.0
testtools>=2.3.0 # MIT
unittest2>=1.1.0 # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.5 # BSD
sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD
openstackdocstheme>=1.20.0 # Apache-2.0
sphinxcontrib-pecanwsme>=0.8.0 # Apache-2.0
sphinxcontrib-httpdomain>=1.6.1 # BSD

View File

@@ -1,9 +1,10 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = py27,py37,py3-{dj111,dj22},pep8
envlist = py37,py3-{dj111,dj22},pep8
[testenv]
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
setenv =
@@ -21,7 +22,6 @@ commands =
stestr slowest
[testenv:cover]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage run --source solumdashboard --parallel-mode
@@ -32,11 +32,9 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:pep8]
basepython = python3
commands = flake8
[testenv:venv]
basepython = python3
commands = {posargs}
[flake8]
@@ -45,11 +43,9 @@ builtins = _
exclude=.git,.tox,dist,doc,*lib/python*,*egg,tools,horizon,node_modules
[testenv:docs]
basepython = python3
commands = python setup.py build_sphinx
[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt