Skip to content

Commit

Permalink
Switch to pkg_resources.iter_entry_points
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson committed Apr 16, 2024
1 parent 76dec96 commit 3f245e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dask_kubernetes/operator/controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
from collections import defaultdict
from contextlib import suppress
from datetime import datetime
from importlib.metadata import entry_points
from uuid import uuid4

import aiohttp
import dask.config
import kopf
import kr8s
import pkg_resources
from distributed.core import clean_exception, rpc
from distributed.protocol.pickle import dumps
from kr8s.asyncio.objects import Deployment, Pod, Service
Expand Down Expand Up @@ -38,7 +38,7 @@

# Load operator plugins from other packages
PLUGINS = []
for ep in entry_points(group="dask_operator_plugin"):
for ep in pkg_resources.iter_entry_points(group="dask_operator_plugin"):
with suppress(AttributeError, ImportError):
PLUGINS.append(ep.load())

Expand Down

0 comments on commit 3f245e8

Please sign in to comment.