Skip to content

Commit

Permalink
chore: ep fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Nov 16, 2024
1 parent 4405760 commit b7dcb78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mknodes/info/packageinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ def cli_info(self) -> clinspector.CommandInfo | None:
@functools.cached_property
def entry_points(self) -> epregistry.ModuleEntryPointRegistry[Any]:
"""Get entry points for this package."""
return epregistry.ModuleEntryPointRegistry(self.package_name)
# just using distribution.entry_points might be alternative, but is uncached afaik
name = epregistry.distribution_to_package(self.package_name)
return epregistry.ModuleEntryPointRegistry(name)


if __name__ == "__main__":
Expand Down

0 comments on commit b7dcb78

Please sign in to comment.