Skip to content

Commit

Permalink
Always add external plugin metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Oct 6, 2021
1 parent 2c2feee commit 9c5cb29
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions spyder/api/plugin_registration/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,13 @@ def _instantiate_spyder5_plugin(
self.internal_plugins |= {plugin_name}

if external:
if not running_under_pytest():
# These attributes come from spyder.app.find_plugins
module = PluginClass._spyder_module_name
package_name = PluginClass._spyder_package_name
version = PluginClass._spyder_version
description = plugin_instance.get_description()
dependencies.add(module, package_name, description,
version, None, kind=dependencies.PLUGIN)
# These attributes come from spyder.app.find_plugins
module = PluginClass._spyder_module_name
package_name = PluginClass._spyder_package_name
version = PluginClass._spyder_version
description = plugin_instance.get_description()
dependencies.add(module, package_name, description,
version, None, kind=dependencies.PLUGIN)

return plugin_instance

Expand Down

0 comments on commit 9c5cb29

Please sign in to comment.