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

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

monasca-transform 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: Iae694c6f91273a898556fb342121024fadb3586e
This commit is contained in:
Ghanshyam Mann 2019-11-15 16:50:41 +00:00
parent 6d76487028
commit 79957946b5
6 changed files with 10 additions and 21 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ monasca_transform.egg-info
tools/vagrant/.vagrant
doc/build/*
.stestr
.tox

View File

@ -4,23 +4,11 @@
- check-requirements
- openstack-cover-jobs
- openstack-lower-constraints-jobs
- openstack-python-jobs
- openstack-python3-ussuri-jobs
check:
jobs:
- legacy-tempest-dsvm-monasca-transform-python-functional:
irrelevant-files:
- ^(test-|)requirements.txt$
- ^setup.cfg$
- legacy-tempest-dsvm-monasca-transform-python35-functional:
voting: false
irrelevant-files:
- ^(test-|)requirements.txt$
- ^setup.cfg$
gate:
jobs:
- legacy-tempest-dsvm-monasca-transform-python-functional:
irrelevant-files:
- ^(test-|)requirements.txt$
- ^setup.cfg$

View File

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

View File

@ -12,8 +12,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

@ -10,7 +10,6 @@ fixtures>=3.0.0 # Apache-2.0/BSD
pycodestyle==2.5.0 # MIT License
stestr>=2.0.0 # Apache-2.0
# required to build documentation
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,!=2.1.0;python_version>='3.4' # BSD
#oslosphinx>=4.7.0 # Apache-2.0
# computes code coverage percentages

View File

@ -1,9 +1,10 @@
[tox]
envlist = py27,py37,pep8
envlist = py37,pep8
minversion = 1.6
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
setenv =
@ -22,7 +23,7 @@ commands =
stestr run {posargs}
[testenv:functional]
basepython = python2.7
basepython = python3.6
setenv = {[testenv]setenv}
SPARK_HOME=/opt/spark/current
SPARK_SCALA_VERSION=2.10
@ -39,7 +40,6 @@ commands =
stestr run --serial {posargs}
[testenv:pep8]
basepython = python3
commands =
flake8
@ -48,11 +48,9 @@ commands =
python setup.py build_sphinx
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:cover]
basepython = python3
# Also do not run test_coverage_ext tests while gathering coverage as those
# tests conflict with coverage.
setenv =
@ -80,7 +78,6 @@ show-source = True
exclude=.venv,.git,.tox,dist,*egg,build
[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt