[ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle. monasca-common 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: Ibf95dffdebe47c8ea4a8a8a666ac6f66d9b4c774
This commit is contained in:
parent
66754b1a4a
commit
b70afb9bf6
@ -3,13 +3,11 @@
|
|||||||
- check-requirements
|
- check-requirements
|
||||||
- openstack-cover-jobs
|
- openstack-cover-jobs
|
||||||
- openstack-lower-constraints-jobs
|
- openstack-lower-constraints-jobs
|
||||||
- openstack-python-jobs
|
|
||||||
- openstack-python3-train-jobs
|
- openstack-python3-train-jobs
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- monasca-tempest-python2-influxdb
|
|
||||||
- monasca-tempest-python3-influxdb
|
- monasca-tempest-python3-influxdb
|
||||||
- monasca-tempest-python2-cassandra
|
- monasca-tempest-python3-cassandra
|
||||||
- monasca-tempest-java-cassandra
|
- monasca-tempest-java-cassandra
|
||||||
- monascalog-tempest
|
- monascalog-tempest
|
||||||
- build-monasca-common-docker-base-image
|
- build-monasca-common-docker-base-image
|
||||||
@ -17,9 +15,7 @@
|
|||||||
gate:
|
gate:
|
||||||
queue: monasca
|
queue: monasca
|
||||||
jobs:
|
jobs:
|
||||||
- monasca-tempest-python2-influxdb
|
|
||||||
- monasca-tempest-python3-influxdb
|
- monasca-tempest-python3-influxdb
|
||||||
- monasca-tempest-python2-cassandra
|
|
||||||
- monasca-tempest-java-cassandra
|
- monasca-tempest-java-cassandra
|
||||||
- monascalog-tempest
|
- monascalog-tempest
|
||||||
- legacy-monasca-common-maven-build
|
- legacy-monasca-common-maven-build
|
||||||
|
@ -26,7 +26,7 @@ To run the unit tests use:
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
$ tox -e py27,py35
|
$ tox -e py35
|
||||||
|
|
||||||
For information on contributing, see `Contribution Guidelines`_.
|
For information on contributing, see `Contribution Guidelines`_.
|
||||||
|
|
||||||
|
6
releasenotes/notes/drop-py-2-7-d932d947c945a645.yaml
Normal file
6
releasenotes/notes/drop-py-2-7-d932d947c945a645.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Python 2.7 support has been dropped. Last release of monasca-common
|
||||||
|
to support python 2.7 is OpenStack Train. The minimum version of Python now
|
||||||
|
supported by monasca-common is Python 3.6.
|
@ -12,7 +12,6 @@ classifier =
|
|||||||
License :: OSI Approved :: Apache Software License
|
License :: OSI Approved :: Apache Software License
|
||||||
Operating System :: POSIX :: Linux
|
Operating System :: POSIX :: Linux
|
||||||
Programming Language :: Python
|
Programming Language :: Python
|
||||||
Programming Language :: Python :: 2.7
|
|
||||||
Programming Language :: Python :: 3
|
Programming Language :: Python :: 3
|
||||||
Programming Language :: Python :: 3.6
|
Programming Language :: Python :: 3.6
|
||||||
Programming Language :: Python :: 3.7
|
Programming Language :: Python :: 3.7
|
||||||
|
17
tox.ini
17
tox.ini
@ -1,9 +1,10 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py27,py37,pep8,cover
|
envlist = py37,pep8,cover
|
||||||
minversion = 2.5
|
minversion = 2.5
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
basepython = python3
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
OS_TEST_PATH=monasca_common/tests
|
OS_TEST_PATH=monasca_common/tests
|
||||||
@ -24,12 +25,6 @@ deps =
|
|||||||
commands =
|
commands =
|
||||||
find {toxinidir} -type f -name '*.pyc' -delete
|
find {toxinidir} -type f -name '*.pyc' -delete
|
||||||
|
|
||||||
[testenv:py27]
|
|
||||||
basepython = python2.7
|
|
||||||
commands =
|
|
||||||
{[testenv]commands}
|
|
||||||
stestr run {posargs}
|
|
||||||
|
|
||||||
[testenv:py36]
|
[testenv:py36]
|
||||||
basepython = python3.6
|
basepython = python3.6
|
||||||
setenv =
|
setenv =
|
||||||
@ -40,7 +35,6 @@ commands =
|
|||||||
stestr run --blacklist-file {env:BLACKLIST_FILE} {posargs}
|
stestr run --blacklist-file {env:BLACKLIST_FILE} {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
basepython = python3
|
|
||||||
setenv =
|
setenv =
|
||||||
PYTHON=coverage run --source monasca_common --parallel-mode
|
PYTHON=coverage run --source monasca_common --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
@ -51,33 +45,27 @@ commands =
|
|||||||
coverage xml -o cover/coverage.xml
|
coverage xml -o cover/coverage.xml
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
basepython = python3
|
|
||||||
commands =
|
commands =
|
||||||
{[testenv]commands}
|
{[testenv]commands}
|
||||||
oslo_debug_helper -t {env:OS_TEST_PATH} {posargs}
|
oslo_debug_helper -t {env:OS_TEST_PATH} {posargs}
|
||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
basepython = python3
|
|
||||||
# B101(assert_ussed) - Validation uses asserts because of performance reasons
|
# B101(assert_ussed) - Validation uses asserts because of performance reasons
|
||||||
# monasca_common/kafka_lib is a clone of kafka-python and will be deleted in the future
|
# monasca_common/kafka_lib is a clone of kafka-python and will be deleted in the future
|
||||||
commands = bandit -r monasca_common -n5 -s B101 -x monasca_common/tests -x monasca_common/kafka_lib
|
commands = bandit -r monasca_common -n5 -s B101 -x monasca_common/tests -x monasca_common/kafka_lib
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
basepython = python3
|
|
||||||
commands = flake8 monasca_common
|
commands = flake8 monasca_common
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3
|
|
||||||
commands =
|
commands =
|
||||||
{[testenv:flake8]commands}
|
{[testenv:flake8]commands}
|
||||||
{[testenv:bandit]commands}
|
{[testenv:bandit]commands}
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
basepython = python3
|
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:bindep]
|
[testenv:bindep]
|
||||||
basepython = python3
|
|
||||||
deps = bindep
|
deps = bindep
|
||||||
commands = bindep test
|
commands = bindep test
|
||||||
|
|
||||||
@ -93,7 +81,6 @@ show-source = True
|
|||||||
ignore = H101,H301,H404,H405
|
ignore = H101,H301,H404,H405
|
||||||
|
|
||||||
[testenv:lower-constraints]
|
[testenv:lower-constraints]
|
||||||
basepython = python3
|
|
||||||
setenv = {[testenv:py36]setenv}
|
setenv = {[testenv:py36]setenv}
|
||||||
deps =
|
deps =
|
||||||
-c{toxinidir}/lower-constraints.txt
|
-c{toxinidir}/lower-constraints.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user