Skip to content

Commit

Permalink
Use entry_points().select to fix python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Nov 27, 2023
1 parent 51bb9aa commit 346c297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bolt/cli/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ class EntryPointGroup(click.Group):
def list_commands(self, ctx):
rv = []

for entry_point in entry_points().get(self.ENTRYPOINT_NAME, []):
for entry_point in entry_points().select(group=self.ENTRYPOINT_NAME):
rv.append(entry_point.name)

rv.sort()
return rv

def get_command(self, ctx, name):
for entry_point in entry_points().get(self.ENTRYPOINT_NAME, []):
for entry_point in entry_points().select(group=self.ENTRYPOINT_NAME):
if entry_point.name == name:
return entry_point.load()

0 comments on commit 346c297

Please sign in to comment.