Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle. ironic-staging-drivers 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: Iab168e51cdfed11a3982da717e6cb40dbcaabfd5
This commit is contained in:
parent
b1b77dbbc9
commit
77de3d5bb9
|
@ -13,14 +13,14 @@
|
|||
required-projects:
|
||||
- openstack/devstack-gate
|
||||
- openstack/ironic
|
||||
- openstack/ironic-python-agent-builder
|
||||
- x/ironic-staging-drivers
|
||||
|
||||
- project:
|
||||
vars:
|
||||
rtd_webhook_id: '44747'
|
||||
templates:
|
||||
- openstack-python-jobs
|
||||
- openstack-python3-train-jobs
|
||||
- openstack-python3-ussuri-jobs
|
||||
- openstack-lower-constraints-jobs
|
||||
- docs-on-readthedocs
|
||||
- check-requirements
|
||||
|
|
|
@ -47,9 +47,11 @@
|
|||
export DEVSTACK_GATE_NEUTRON=1
|
||||
export DEVSTACK_GATE_VIRT_DRIVER=ironic
|
||||
export DEVSTACK_GATE_IRONIC_DRIVER=ipmi
|
||||
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||
export BRANCH_OVERRIDE=default
|
||||
export PROJECTS="openstack/ironic $PROJECTS"
|
||||
export PROJECTS="x/ironic-staging-drivers $PROJECTS"
|
||||
export PROJECTS="openstack/ironic-python-agent-builder $PROJECTS"
|
||||
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||
fi
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
upgrade:
|
||||
- |
|
||||
Python 2.7 support has been dropped. Last release of ironic-staging-drivers
|
||||
to support Python 2.7 is OpenStack Train. The minimum version of Python now
|
||||
supported by ironic-staging-drivers is Python 3.6.
|
|
@ -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
|
||||
|
|
|
@ -8,7 +8,6 @@ flake8-import-order==0.11 # LGPLv3
|
|||
coverage!=4.4,>=4.0 # Apache-2.0
|
||||
doc8>=0.6.0 # Apache-2.0
|
||||
python-subunit>=1.0.0 # Apache-2.0/BSD
|
||||
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
|
||||
oslotest>=3.2.0 # Apache-2.0
|
||||
testscenarios>=0.4 # Apache-2.0/BSD
|
||||
|
|
10
tox.ini
10
tox.ini
|
@ -1,9 +1,10 @@
|
|||
[tox]
|
||||
minversion = 1.8
|
||||
skipsdist = True
|
||||
envlist = py3,py27,pep8
|
||||
envlist = py3,pep8
|
||||
|
||||
[testenv]
|
||||
basepython = python3
|
||||
usedevelop = True
|
||||
install_command = pip install -U {opts} {packages}
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
|
@ -20,17 +21,14 @@ commands =
|
|||
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
commands =
|
||||
flake8 {posargs}
|
||||
doc8 README.rst CONTRIBUTING.rst HACKING.rst doc/source
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python3
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
LANGUAGE=en_US
|
||||
|
@ -43,15 +41,12 @@ commands =
|
|||
coverage html -d ./cover --omit='*tests*'
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python3
|
||||
commands = python setup.py build_sphinx
|
||||
|
||||
[testenv:debug]
|
||||
basepython = python3
|
||||
commands = oslo_debug_helper {posargs}
|
||||
|
||||
[testenv:releasenotes]
|
||||
basepython = python3
|
||||
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
|
||||
[flake8]
|
||||
|
@ -67,7 +62,6 @@ max-complexity=17
|
|||
enable-extensions=H106,H203,H904
|
||||
|
||||
[testenv:lower-constraints]
|
||||
basepython = python3
|
||||
deps =
|
||||
-c{toxinidir}/lower-constraints.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
|
|
Loading…
Reference in New Issue