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

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

Congress 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: I23fcb01265b734c0a87f5ad81b25a1eac179eb06
This commit is contained in:
Ghanshyam Mann 2019-11-15 02:54:10 +00:00
parent c0b105fe34
commit f751b1b70d
5 changed files with 11 additions and 55 deletions

View File

@ -43,12 +43,6 @@
tempest: true
neutron-qos: true
horizon: false
# swift disabled for py3
s-proxy: false
s-object: false
s-container: false
s-account: false
c-bak: false # requires swift
tempest_concurrency: 1
tox_envlist: all
tempest_test_regex: congress_tempest_plugin.*
@ -60,6 +54,7 @@
CONGRESS_EXPOSE_ENCRYPTION_KEY_FOR_TEST: true
ENABLE_CONGRESS_Z3: true
USE_Z3_RELEASE: 4.7.1
USE_PYTHON3: True
- job:
name: congress-tempest-ipv6-only
@ -73,22 +68,6 @@
<<: *base_vars
tempest_test_regex: '(^congress_tempest_plugin.*)(\[.*\bsmoke\b.*\])'
- job:
name: congress-tempest-py2
parent: congress-tempest-base
vars:
devstack_plugins:
aodh: https://opendev.org/openstack/aodh
mistral: https://opendev.org/openstack/mistral
monasca-api: https://opendev.org/openstack/monasca-api
murano: https://opendev.org/openstack/murano
devstack_services:
s-proxy: true
s-object: true
s-container: true
s-account: true
c-bak: true
- job:
name: congress-tempest-py3
parent: congress-tempest-base
@ -123,12 +102,6 @@
mysql: false
postgresql: true
- job:
name: congress-tempest-py2-mysql
parent: congress-tempest-py2
vars:
database: mysql
- job:
name: congress-tempest-py3-mysql
parent: congress-tempest-py3
@ -136,7 +109,7 @@
database: mysql
- job:
name: congress-tempest-py2-JsonIngester
name: congress-tempest-py3-JsonIngester
parent: congress-tempest-base
voting: false
vars:
@ -144,15 +117,7 @@
ENABLE_CONGRESS_JSON: true
- job:
name: congress-tempest-py3-JsonIngester
parent: congress-tempest-py2-JsonIngester
voting: false
vars:
devstack_localrc:
USE_PYTHON3: true
- job:
name: congress-tempest-py2-postgresql
name: congress-tempest-py3-postgresql
parent: congress-tempest-base
voting: false
vars:
@ -160,30 +125,19 @@
mysql: false
postgresql: true
- job:
name: congress-tempest-py3-postgresql
parent: congress-tempest-py2-postgresql
voting: false
vars:
devstack_localrc:
USE_PYTHON3: true
- project:
templates:
- check-requirements
- openstack-cover-jobs
- openstack-lower-constraints-jobs
- openstack-python-jobs
- openstack-python3-train-jobs
- openstack-python3-ussuri-jobs
- release-notes-jobs-python3
- publish-openstack-docs-pti
- periodic-stable-jobs
check:
jobs:
- congress-tempest-py2-mysql
- congress-tempest-py3-mysql
- congress-tempest-replicated-postgresql
- congress-tempest-py2-JsonIngester
- congress-tempest-py3-JsonIngester
- congress-tempest-ipv6-only
# Note: the above jobs most likely provides sufficient coverage
@ -205,6 +159,5 @@
gate:
queue: congress
jobs:
- congress-tempest-py2-mysql
- congress-tempest-py3-mysql
- congress-tempest-ipv6-only

View File

@ -4,6 +4,5 @@
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 Congress
to support python 2.7 is OpenStack Train. The minimum version of Python now
supported by Congress 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,7 +1,7 @@
[tox]
minversion = 2.0
skipsdist = True
envlist = py37,py36,py27,pep8,genpolicy
envlist = py37,py36,pep8,genpolicy
[testenv]
usedevelop = True