Skip to content

Commit 08ecad3

Browse files
authored
Remove deprecated dask._compatibility.entry_points (#12202)
1 parent a5846d1 commit 08ecad3

3 files changed

Lines changed: 2 additions & 20 deletions

File tree

dask/_compatibility.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@
2121
WINDOWS = sys.platform == "win32"
2222

2323

24-
def entry_points(group=None):
25-
warnings.warn(
26-
"`dask._compatibility.entry_points` has been replaced by `importlib_metadata.entry_points` and will be removed "
27-
"in a future version. Please use `importlib_metadata.entry_points` instead.",
28-
DeprecationWarning,
29-
stacklevel=2,
30-
)
31-
return importlib_metadata.entry_points(group=group)
32-
33-
3424
VERSIONS = {
3525
"numpy": "1.21.0",
3626
"pandas": "2.0.0",

dask/tests/test_compatibility.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ dependencies = [
4343
# importlib.metadata has the following bugs fixed in 3.10.9 and 3.11.1
4444
# https://github.com/python/cpython/issues/99130
4545
# https://github.com/python/cpython/issues/98706
46+
# Additionally, importlib.metadata.entry_points changed return type in 3.12
47+
# https://docs.python.org/3/library/importlib.metadata.html#importlib.metadata.entry_points
4648
"importlib_metadata >= 4.13.0; python_version < '3.12' ",
4749
]
4850
dynamic = ["version"]

0 commit comments

Comments
 (0)