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

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

"osc-placement" 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: Ibd9d1c839f820d8c8ea0ad0979d5dca9223d11dc
This commit is contained in:
Tetsuro Nakamura 2019-10-25 05:45:09 +00:00
parent 6cec98cf6f
commit 52ef27a8ce
4 changed files with 12 additions and 11 deletions

View File

@ -1,23 +1,22 @@
- project:
templates:
- openstack-python-jobs
- openstack-python3-train-jobs
- openstack-python3-ussuri-jobs
- check-requirements
- publish-openstack-docs-pti
- release-notes-jobs-python3
check:
jobs:
- openstack-tox-functional:
- openstack-tox-functional-py36:
required-projects:
- openstack/placement
- openstack-tox-functional-py36:
- openstack-tox-functional-py37:
required-projects:
- openstack/placement
gate:
jobs:
- openstack-tox-functional:
required-projects:
- openstack/placement
- openstack-tox-functional-py36:
required-projects:
- openstack/placement
- openstack-tox-functional-py37:
required-projects:
- openstack/placement

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
Python 2.7 support has been dropped. 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

View File

@ -1,6 +1,6 @@
[tox]
minversion = 3.1.1
envlist = py27,py37,functional,functional-py36,pep8
envlist = py36,py37,functional-py36,functional-py37,pep8
skipsdist = True
# Automatic envs (pyXX) will use the python version appropriate to that
# env and ignore basepython inherited from [testenv]. That's what we
@ -27,7 +27,6 @@ commands = stestr run {posargs}
# gate functional jobs, which use the 'functional' path when
# copying files.
[testenv:functional]
basepython = python2.7
deps =
{[testenv]deps}
git+https://opendev.org/openstack/placement.git#egg=openstack-placement