From 354207ec010f62bfdea0b070cabe6e441a21abe8 Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Wed, 6 Apr 2022 10:35:06 +0200 Subject: [PATCH] cmd/plugin/show: use entrypoint distro name 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: #5417 --- src/poetry/console/commands/plugin/show.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poetry/console/commands/plugin/show.py b/src/poetry/console/commands/plugin/show.py index f6c6ad5a46c..1a529200f02 100644 --- a/src/poetry/console/commands/plugin/show.py +++ b/src/poetry/console/commands/plugin/show.py @@ -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)