Merge "[ussuri][goal] Drop python2.7 support"

This commit is contained in:
Zuul 2019-12-13 10:52:34 +00:00 committed by Gerrit Code Review
commit 0d918d1495
5 changed files with 10 additions and 20 deletions

View File

@ -3,8 +3,7 @@
- publish-openstack-docs-pti - publish-openstack-docs-pti
- openstack-cover-jobs - openstack-cover-jobs
- openstack-lower-constraints-jobs - openstack-lower-constraints-jobs
- openstack-python-jobs - openstack-python3-ussuri-jobs
- openstack-python3-train-jobs
- check-requirements - check-requirements
- release-notes-jobs-python3 - release-notes-jobs-python3
check: check:

View File

@ -2,7 +2,6 @@
# of appearance. Changing the order has an impact on the overall integration # of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
openstackdocstheme>=1.18.1 # Apache-2.0 openstackdocstheme>=1.18.1 # 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,!=2.1.0;python_version>='3.4' # BSD sphinx!=1.6.6,!=1.6.7,>=1.6.2,!=2.1.0;python_version>='3.4' # BSD
reno>=2.5.0 # Apache-2.0 reno>=2.5.0 # Apache-2.0
sphinxcontrib-programoutput>=0.11 # BSD sphinxcontrib-programoutput>=0.11 # BSD

View File

@ -0,0 +1,7 @@
---
upgrade:
- |
Python 2.7 support has been dropped. The last release of
openstack/python-manilaclient to support python 2.7 is OpenStack Train
(python-manilaclient version 1.29.x). The minimum version of Python now
supported by openstack/python-manilaclient is Python 3.6.

View File

@ -15,8 +15,6 @@ classifier =
License :: OSI Approved :: Apache Software License License :: OSI Approved :: Apache Software License
Operating System :: OS Independent Operating System :: OS Independent
Programming Language :: Python Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3 Programming Language :: Python :: 3
Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.7

17
tox.ini
View File

@ -1,10 +1,11 @@
[tox] [tox]
distribute = False distribute = False
envlist = py27,py37,pep8 envlist = py3,pep8
minversion = 2.0 minversion = 2.0
skipsdist = True skipsdist = True
[testenv] [testenv]
basepython = python3
install_command = pip install {opts} {packages} install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1 OS_STDOUT_CAPTURE=1
@ -21,25 +22,17 @@ commands =
stestr slowest stestr slowest
[testenv:debug] [testenv:debug]
basepython = python3
commands = oslo_debug_helper -t manilaclient/tests {posargs}
[testenv:debug-py27]
basepython = python2.7
commands = oslo_debug_helper -t manilaclient/tests {posargs} commands = oslo_debug_helper -t manilaclient/tests {posargs}
[testenv:pep8] [testenv:pep8]
basepython = python3
commands = commands =
flake8 flake8
[testenv:venv] [testenv:venv]
basepython = python3
commands = {posargs} commands = {posargs}
[testenv:docs] [testenv:docs]
usedevelop = True usedevelop = True
basepython = python3
deps = deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
@ -51,7 +44,6 @@ commands =
[testenv:pdf-docs] [testenv:pdf-docs]
usedevelop = True usedevelop = True
basepthon = python3
deps = {[testenv:docs]deps} deps = {[testenv:docs]deps}
whitelist_externals = whitelist_externals =
make make
@ -60,7 +52,6 @@ commands =
make -C doc/build/pdf make -C doc/build/pdf
[testenv:releasenotes] [testenv:releasenotes]
basepython = python3
deps = deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
@ -72,7 +63,6 @@ commands =
-b html releasenotes/source releasenotes/build/html -b html releasenotes/source releasenotes/build/html
[testenv:functional] [testenv:functional]
basepython = python3
setenv = setenv =
{[testenv]setenv} {[testenv]setenv}
OS_TEST_PATH = ./manilaclient/tests/functional OS_TEST_PATH = ./manilaclient/tests/functional
@ -83,14 +73,12 @@ commands =
stestr run {posargs} stestr run {posargs}
[testenv:genconfig] [testenv:genconfig]
basepython = python3
whitelist_externals = bash whitelist_externals = bash
commands = commands =
{envdir}/bin/python setup.py install {envdir}/bin/python setup.py install
{envdir}/bin/oslo-config-generator --config-file etc/oslo-config-generator/manilaclient.conf {envdir}/bin/oslo-config-generator --config-file etc/oslo-config-generator/manilaclient.conf
[testenv:cover] [testenv:cover]
basepython = python3
setenv = setenv =
{[testenv]setenv} {[testenv]setenv}
PYTHON=coverage run --source manilaclient --parallel-mode PYTHON=coverage run --source manilaclient --parallel-mode
@ -112,7 +100,6 @@ enable-extensions = H106,H203,H904
exclude = .venv,.tox,dist,doc,*egg,build exclude = .venv,.tox,dist,doc,*egg,build
[testenv:lower-constraints] [testenv:lower-constraints]
basepython = python3
deps = deps =
-c{toxinidir}/lower-constraints.txt -c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt