[ussuri][goal] Drop python2.7 support
As per the official python support timeline set forth by the OpenStack TC [1][2], OpenStack Train is the last release that will support python2.7. manila-tempest-plugin is a 'branchless' tempest plugin. However, after this change, users may no longer expect to install this package with python2.7. Depends-On: https://review.opendev.org/#/c/688997/ [1] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html [2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Change-Id: I8c10d169302c6f1c41e238ae9f787455a2b15a4d
This commit is contained in:
parent
4d7b494990
commit
eff4f9b87f
|
@ -640,7 +640,7 @@ class MigrationWithDifferentSnapshotSupportNFSTest(MigrationBase):
|
|||
|
||||
# NOTE(u_glide): this function is required to exclude MigrationBase from
|
||||
# executed test cases.
|
||||
# See: https://docs.python.org/2/library/unittest.html#load-tests-protocol
|
||||
# See: https://docs.python.org/3/library/unittest.html#load-tests-protocol
|
||||
# for details.
|
||||
def load_tests(loader, tests, _):
|
||||
result = []
|
||||
|
|
|
@ -470,7 +470,7 @@ class TestShareBasicOpsNFSIPv6(TestShareBasicOpsNFS):
|
|||
|
||||
# NOTE(u_glide): this function is required to exclude ShareBasicOpsBase from
|
||||
# executed test cases.
|
||||
# See: https://docs.python.org/2/library/unittest.html#load-tests-protocol
|
||||
# See: https://docs.python.org/3/library/unittest.html#load-tests-protocol
|
||||
# for details.
|
||||
def load_tests(loader, tests, _):
|
||||
result = []
|
||||
|
|
|
@ -166,7 +166,7 @@ class TestShareExtendCIFS(ShareExtendBase):
|
|||
|
||||
# NOTE(u_glide): this function is required to exclude ShareExtendBase
|
||||
# from executed test cases.
|
||||
# See: https://docs.python.org/2/library/unittest.html#load-tests-protocol
|
||||
# See: https://docs.python.org/3/library/unittest.html#load-tests-protocol
|
||||
# for details.
|
||||
def load_tests(loader, tests, _):
|
||||
result = []
|
||||
|
|
|
@ -183,7 +183,7 @@ class ShareManageUnmanageCIFS(ShareManageUnmanageBase):
|
|||
|
||||
# NOTE(u_glide): this function is required to exclude ShareManageUnmanageBase
|
||||
# from executed test cases.
|
||||
# See: https://docs.python.org/2/library/unittest.html#load-tests-protocol
|
||||
# See: https://docs.python.org/3/library/unittest.html#load-tests-protocol
|
||||
# for details.
|
||||
def load_tests(loader, tests, _):
|
||||
result = []
|
||||
|
|
|
@ -166,7 +166,7 @@ class TestShareShrinkCIFS(ShareShrinkBase):
|
|||
|
||||
# NOTE(u_glide): this function is required to exclude ShareShrinkBase from
|
||||
# executed test cases.
|
||||
# See: https://docs.python.org/2/library/unittest.html#load-tests-protocol
|
||||
# See: https://docs.python.org/3/library/unittest.html#load-tests-protocol
|
||||
# for details.
|
||||
def load_tests(loader, tests, _):
|
||||
result = []
|
||||
|
|
|
@ -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.3
|
||||
Programming Language :: Python :: 3.5
|
||||
|
|
7
tox.ini
7
tox.ini
|
@ -1,9 +1,10 @@
|
|||
[tox]
|
||||
minversion = 2.0
|
||||
envlist = py35,py27,pypy,pep8
|
||||
envlist = py3,pypy,pep8
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
basepython = python3
|
||||
usedevelop = True
|
||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
|
||||
setenv =
|
||||
|
@ -17,19 +18,15 @@ deps = -r{toxinidir}/requirements.txt
|
|||
# commands = python setup.py test --slowest --testr-args='{posargs}'
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
commands = flake8 {posargs}
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python3
|
||||
commands = python setup.py build_sphinx
|
||||
|
||||
[testenv:releasenotes]
|
||||
basepython = python3
|
||||
commands =
|
||||
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
|
||||
|
|
Loading…
Reference in New Issue