Skip to content

Commit

Permalink
Load all plugins using setuptools entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Goodlet committed Feb 28, 2017
1 parent a4dce05 commit ba12575
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
11 changes: 0 additions & 11 deletions lab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,3 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from .provider import get_providers
from .model import Environment, Facts

# built-in plugin loading
pytest_plugins = (
'lab.roles',
'lab.runnerctl',
'lab.logwatch',
'lab.log',
'lab.warnreporter',
'lab.network.plugin',
'lab.ctl.rpc',
)
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,14 @@ def run_tests(self):
'facts=lab.app.facts:FactsLister',
],
'pytest11': [
'lab.roles=lab.roles',
'futurize=lab.futurize',
'_storage=lab.storage',
'pytestlab=lab',
'lab._storage=lab.storage',
'lab.logwatch=lab.logwatch',
'lab.log=lab.log',
'lab.warnreporter=lab.warnreporter',
'lab.network=lab.network.plugin',
'lab.rpyc=lab.ctl.rpc',
]
}
)
Expand Down

0 comments on commit ba12575

Please sign in to comment.