forked from avocado-framework/avocado
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Cleber Rosa <[email protected]>
- Loading branch information
Showing
11 changed files
with
40 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,9 @@ | |
# Author: Lucas Meneghel Rodrigues <[email protected]> | ||
|
||
|
||
import importlib.metadata | ||
import os | ||
|
||
import pkg_resources | ||
|
||
from avocado.core.dispatcher import InitDispatcher | ||
from avocado.core.settings import settings as stgs | ||
from avocado.core.streams import BUILTIN_STREAM_SETS, BUILTIN_STREAMS_DESCRIPTION | ||
|
@@ -269,8 +268,14 @@ def initialize_plugin_infrastructure(): | |
section="plugins", key="disable", key_type=list, default=[], help_msg=help_msg | ||
) | ||
|
||
kinds = list(pkg_resources.get_entry_map("avocado-framework").keys()) | ||
plugin_types = [kind[8:] for kind in kinds if kind.startswith("avocado.plugins.")] | ||
dist = importlib.metadata.distribution("avocado-framework") | ||
plugin_types = set( | ||
[ | ||
i.group[8:] | ||
for i in dist.entry_points | ||
if i.group.startswith("avocado.plugins.") | ||
] | ||
) | ||
for plugin_type in plugin_types: | ||
help_msg = f'Execution order for "{plugin_type}" plugins' | ||
stgs.register_option( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters