Merge "Remove python 2.6 support from python-novaclient"
This commit is contained in:
commit
51df01e972
@ -736,10 +736,6 @@ def discover_extensions(version):
|
||||
def _discover_via_python_path():
|
||||
for (module_loader, name, _ispkg) in pkgutil.iter_modules():
|
||||
if name.endswith('_python_novaclient_ext'):
|
||||
if not hasattr(module_loader, 'load_module'):
|
||||
# Python 2.6 compat: actually get an ImpImporter obj
|
||||
module_loader = module_loader.find_module(name)
|
||||
|
||||
module = module_loader.load_module(name)
|
||||
if hasattr(module, 'extension_name'):
|
||||
name = module.extension_name
|
||||
|
@ -0,0 +1,3 @@
|
||||
---
|
||||
upgrade:
|
||||
- Python 2.6 support has been removed from python-novaclient.
|
@ -16,9 +16,10 @@ classifier =
|
||||
License :: OSI Approved :: Apache Software License
|
||||
Operating System :: OS Independent
|
||||
Programming Language :: Python
|
||||
Programming Language :: Python :: 2.6
|
||||
Programming Language :: Python :: 2
|
||||
Programming Language :: Python :: 2.7
|
||||
Programming Language :: Python :: 3.3
|
||||
Programming Language :: Python :: 3
|
||||
Programming Language :: Python :: 3.4
|
||||
|
||||
[files]
|
||||
packages =
|
||||
|
@ -17,7 +17,7 @@
|
||||
virtual environments.
|
||||
|
||||
Since this script is used to bootstrap a virtualenv from the system's Python
|
||||
environment, it should be kept strictly compatible with Python 2.6.
|
||||
environment, it should be kept strictly compatible with Python 2.7.
|
||||
|
||||
Synced in from openstack-common
|
||||
"""
|
||||
@ -47,8 +47,8 @@ class InstallVenv(object):
|
||||
sys.exit(1)
|
||||
|
||||
def check_python_version(self):
|
||||
if sys.version_info < (2, 6):
|
||||
self.die("Need Python Version >= 2.6")
|
||||
if sys.version_info < (2, 7):
|
||||
self.die("Need Python Version >= 2.7")
|
||||
|
||||
def run_command_with_code(self, cmd, redirect_output=True,
|
||||
check_exit_code=True):
|
||||
|
Loading…
x
Reference in New Issue
Block a user