Browse Source

Drop python 2.7 support and testing

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

Networking Generic Switch 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://review.opendev.org/#/c/691178/

Change-Id: I254c94e32b03f80ea3589498e7f71fbc64204a58
changes/28/695228/2
Iury Gregory Melo Ferreira 2 weeks ago
parent
commit
d42a3fcf9c
6 changed files with 8 additions and 21 deletions
  1. +0
    -1
      doc/requirements.txt
  2. +6
    -0
      releasenotes/notes/drop-py-2-7-76d7a678dc042bd6.yaml
  3. +0
    -2
      setup.cfg
  4. +2
    -8
      tox.ini
  5. +0
    -7
      zuul.d/networking-generic-switch-jobs.yaml
  6. +0
    -3
      zuul.d/project.yaml

+ 0
- 1
doc/requirements.txt View File

@@ -2,7 +2,6 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
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,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD
sphinxcontrib-pecanwsme>=0.8.0 # Apache-2.0
sphinxcontrib-seqdiag>=0.8.4 # BSD

+ 6
- 0
releasenotes/notes/drop-py-2-7-76d7a678dc042bd6.yaml View File

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

+ 0
- 2
setup.cfg View File

@@ -12,8 +12,6 @@ classifier =
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
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

+ 2
- 8
tox.ini View File

@@ -1,9 +1,10 @@
[tox]
minversion = 2.0
skipsdist = True
envlist = py3,py27,pep8
envlist = py3,pep8

[testenv]
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
@@ -21,7 +22,6 @@ commands =
stestr run {posargs}

[testenv:pep8]
basepython = python3
whitelist_externals = bash
commands =
bash tools/flake8wrap.sh {posargs}
@@ -31,7 +31,6 @@ commands =
doc8 README.rst CONTRIBUTING.rst doc/source --ignore D001

[testenv:docs]
basepython = python3
setenv = PYTHONHASHSEED=0
sitepackages = False
envdir = {toxworkdir}/venv
@@ -43,7 +42,6 @@ commands =
python setup.py build_sphinx

[testenv:pdf-docs]
basepython = python3
whitelist_externals = make
setenv = PYTHONHASHSEED=0
sitepackages = False
@@ -54,7 +52,6 @@ commands =
make -C doc/build/pdf

[testenv:releasenotes]
basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
@@ -62,7 +59,6 @@ commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html

[testenv:venv]
basepython = python3
setenv = PYTHONHASHSEED=0
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
@@ -81,7 +77,6 @@ application-import-names = networking_generic_switch
enable-extensions=H106,H203,H904

[testenv:cover]
basepython = python3
commands =
coverage erase
coverage run --branch --include "networking_generic_switch*" -m unittest discover networking_generic_switch.tests.unit
@@ -91,7 +86,6 @@ commands =
import_exceptions = networking_generic_switch._i18n

[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt

+ 0
- 7
zuul.d/networking-generic-switch-jobs.yaml View File

@@ -67,10 +67,3 @@
vars:
devstack_localrc:
USE_PYTHON3: True

- job:
name: networking-generic-switch-tempest-dlm-python2
parent: networking-generic-switch-tempest-dlm-base
vars:
devstack_localrc:
USE_PYTHON3: False

+ 0
- 3
zuul.d/project.yaml View File

@@ -1,14 +1,12 @@
- project:
templates:
- check-requirements
- openstack-python-jobs-neutron
- openstack-python3-ussuri-jobs-neutron
- publish-openstack-docs-pti
- release-notes-jobs-python3
check:
jobs:
- networking-generic-switch-tempest-dlm
- networking-generic-switch-tempest-dlm-python2
- ironic-tempest-ipa-wholedisk-direct-tinyipa-multinode:
irrelevant-files:
- ^(test-|)requirements.txt$
@@ -22,7 +20,6 @@
queue: networking-generic-switch
jobs:
- networking-generic-switch-tempest-dlm
- networking-generic-switch-tempest-dlm-python2
- ironic-tempest-ipa-wholedisk-direct-tinyipa-multinode:
irrelevant-files:
- ^(test-|)requirements.txt$

Loading…
Cancel
Save