python-novaclient/novaclient
Doug Hellmann e649cea843 Do not check requirements when loading entry points
Update the calls to pkg_resources to avoid forcing a requirements check
when the plugins are being loaded.

There are 2 versions of the entry point API in different releases of
setuptools. In one version, the require keyword argument can be passed
to load(). In the other, separate methods resolve() and require() need
to be used. This change updates the mock and fake objects to support
either, since the fakes are subclasses of the EntryPoint class in
pkg_resources.

It would be better to replace the calls to pkg_resources with stevedore,
which provides a more stable API, abstracts away this difference, and
provides an API for creating test managers directly. That change would
have required more extensive updates to the test suite, though, and
since I'm not as familiar with this code base as others will be, I will
leave those changes for someone else.

Change-Id: I2a9aeb53ccad04c7fa687f25340306b84218f9ff
Partial-bug: #1457100
2015-05-27 18:08:02 +00:00
..
openstack Drop use of 'oslo' namespace package 2015-05-11 15:30:11 +00:00
tests Do not check requirements when loading entry points 2015-05-27 18:08:02 +00:00
v1_1 Rename v1_1 to v2 2015-02-04 17:40:46 +02:00
v2 Reuse uuidutils frim oslo_utils 2015-05-08 12:36:41 +03:00
__init__.py Migrate to pbr. 2013-05-19 10:00:38 +03:00
auth_plugin.py Do not check requirements when loading entry points 2015-05-27 18:08:02 +00:00
base.py Ensure the use of volume endpoint in volumes apis 2015-03-17 01:19:11 +00:00
client.py Remove redundant check for version of requests 2015-05-15 18:05:14 +03:00
crypto.py Corrects typos "coearse," "proejct," and "unecrypts" 2014-09-18 15:24:54 -07:00
exceptions.py Add retry_after only to exceptions supporting it 2014-09-18 13:07:17 +02:00
extension.py Use common code instead of novaclient.utils 2014-09-19 16:56:13 +03:00
i18n.py Remove all imports from oslo namespace 2015-04-20 13:52:38 +03:00
service_catalog.py Enable check for E127 2014-10-23 14:28:50 +00:00
shell.py Make _discover_extensions public 2015-05-06 14:10:59 +08:00
utils.py Do not check requirements when loading entry points 2015-05-27 18:08:02 +00:00