=== modified file 'lava/tool/dispatcher.py'
@@ -66,7 +66,12 @@
"""
logging.debug("Loading commands in entry point %r", entrypoint_name)
for entrypoint in pkg_resources.iter_entry_points(entrypoint_name):
- self.add_command_cls(entrypoint.load())
+ try:
+ command_cls = entrypoint.load()
+ except (ImportError, pkg_resources.DistributionNotFound) as exc:
+ logging.debug("Unable to load %s: %r", entrypoint, exc)
+ else:
+ self.add_command_cls(command_cls)
def add_command_cls(self, command_cls):
"""
=== modified file 'setup.py'
@@ -40,7 +40,7 @@
help = lava.tool.commands.help:help
[lava_tool.commands]
help = lava.tool.commands.help:help
- auth-add = lava_tool.commands.auth:auth_add
+ auth-add = lava_tool.commands.auth:auth_add [auth]
""",
classifiers=[
"Development Status :: 4 - Beta",
@@ -52,11 +52,8 @@
"Programming Language :: Python :: 2.7",
"Topic :: Software Development :: Testing",
],
- install_requires=[
- 'argparse >= 1.1',
- 'keyring'],
- setup_requires=[
- 'versiontools >= 1.3.1'],
- tests_require=[
- 'mocker >= 1.0'],
+ extras_require={'auth': ['keyring']},
+ install_requires=['argparse >= 1.1'],
+ setup_requires=['versiontools >= 1.3.1'],
+ tests_require=['mocker >= 1.0'],
zip_safe=True)