Skip to content

Commit b226519

Browse files
committed
Backport entry_points for Python 3.9
1 parent 00d9cea commit b226519

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ dependencies = [
3434
"psutil",
3535
"gpuhunt>=0.1.3,<0.2.0",
3636
"argcomplete>=3.5.0",
37+
"backports.entry-points-selectable",
3738
]
3839

3940
[project.urls]

src/dstack/_internal/server/services/plugins.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import itertools
22
from importlib import import_module
3-
from importlib.metadata import entry_points
3+
4+
from backports.entry_points_selectable import entry_points # backport for Python 3.9
45

56
from dstack._internal.core.errors import ServerClientError
67
from dstack._internal.utils.logging import get_logger

0 commit comments

Comments
 (0)