Skip to content

Commit

Permalink
cmd/plugin/show: use entrypoint distro name
Browse files Browse the repository at this point in the history
Prior to this change the `plugin show` command assumed the entrypoint
name to be the same as the package providing the plugin. This change
makes use of the `entrypoint.distro.name` instead to derive the source
package.

Resolves: python-poetry#5417
  • Loading branch information
abn committed Apr 6, 2022
1 parent 748b1c6 commit 354207e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poetry/console/commands/plugin/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def handle(self) -> int:
if issubclass(plugin, ApplicationPlugin):
category = "application_plugins"

package = packages_by_name[canonicalize_name(entry_point.name)]
package = packages_by_name[canonicalize_name(entry_point.distro.name)]
plugins[package.pretty_name]["package"] = package
plugins[package.pretty_name][category].append(entry_point)

Expand Down

0 comments on commit 354207e

Please sign in to comment.