Browse Source

Drop python 2.7 support and testing

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

Networking Baremetal 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: I7f08a871ba82081f6164f84f05f50eb61cfd7541
changes/22/695422/2
Iury Gregory Melo Ferreira 2 weeks ago
parent
commit
d6cb9c299b
5 changed files with 8 additions and 14 deletions
  1. +6
    -0
      releasenotes/notes/drop-py-2-7-2249129e616bb1e5.yaml
  2. +0
    -2
      setup.cfg
  3. +0
    -1
      test-requirements.txt
  4. +2
    -10
      tox.ini
  5. +0
    -1
      zuul.d/project.yaml

+ 6
- 0
releasenotes/notes/drop-py-2-7-2249129e616bb1e5.yaml View File

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

+ 0
- 2
setup.cfg 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

+ 0
- 1
test-requirements.txt View File

@@ -12,7 +12,6 @@ stestr>=1.0.0 # Apache-2.0
testscenarios>=0.4 # Apache-2.0/BSD

# Doc requirements
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
openstackdocstheme>=1.20.0 # Apache-2.0


+ 2
- 10
tox.ini View File

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

[testenv]
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
setenv =
@@ -16,7 +17,6 @@ commands = stestr run {posargs}
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY

[testenv:pep8]
basepython = python3
whitelist_externals = bash
commands =
bash tools/flake8wrap.sh {posargs}
@@ -25,11 +25,9 @@ commands =
{toxinidir}/tools/run_bashate.sh {toxinidir}/devstack

[testenv:venv]
basepython = python3
commands = {posargs}

[testenv:cover]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US
PYTHON=coverage run --source networking_baremetal --parallel-mode
@@ -42,14 +40,12 @@ commands =
coverage report --omit='*test*'

[testenv:docs]
basepython = python3
setenv = PYTHONHASHSEED=0
sitepackages = False
commands =
python setup.py build_sphinx

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

[testenv:releasenotes]
basepython = python3
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html

[testenv:genconfig]
basepython = python3
commands =
oslo-config-generator --config-file=tools/config/networking-baremetal-config-generator.conf

[testenv:debug]
basepython = python3
commands = oslo_debug_helper -t networking_baremetal/tests/unit {posargs}

[flake8]
@@ -80,7 +73,6 @@ builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build

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

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

@@ -1,7 +1,6 @@
- project:
templates:
- check-requirements
- openstack-python-jobs-neutron
- openstack-python3-ussuri-jobs-neutron
- publish-openstack-docs-pti
- release-notes-jobs-python3

Loading…
Cancel
Save