Skip to content

Commit

Permalink
importlib_metadata removed deprecated entry point interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
woutdenolf committed Oct 3, 2022
1 parent 7c1dcd0 commit 286950e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion celery/bin/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def convert(self, value, param, ctx):
APP = App()


@with_plugins(entry_points().get('celery.commands', []))
@with_plugins(entry_points().select('celery.commands', []))
@click.group(cls=DYMGroup, invoke_without_command=True)
@click.option('-A',
'--app',
Expand Down
2 changes: 1 addition & 1 deletion celery/utils/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def gen_task_name(app, name, module_name):


def load_extension_class_names(namespace):
for ep in entry_points().get(namespace, []):
for ep in entry_points().select(namespace, []):
yield ep.name, ep.value


Expand Down

0 comments on commit 286950e

Please sign in to comment.