e649cea843
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 |
||
---|---|---|
.. | ||
openstack | ||
tests | ||
v1_1 | ||
v2 | ||
__init__.py | ||
auth_plugin.py | ||
base.py | ||
client.py | ||
crypto.py | ||
exceptions.py | ||
extension.py | ||
i18n.py | ||
service_catalog.py | ||
shell.py | ||
utils.py |