diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 66179862f..c5d42ab1c 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -9,6 +9,7 @@ Future Release * Fixes * Changes * Restrict numpy to <2.0.0 :pr:`1869` + * Replace deprecated setuptools `pkg_resources` usages with `importlib` :pr:`1876` * Documentation Changes * Testing Changes diff --git a/pyproject.toml b/pyproject.toml index b53c7b64d..31e6d2b70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,6 +65,7 @@ docs = [ "pydata-sphinx-theme == 0.9.0", "sphinx-inline-tabs == 2022.1.2b11", "sphinx-copybutton == 0.5.0", + "standard-imghdr >= 3.13.0", "myst-parser == 0.18.0", "nbconvert == 6.5.0", "ipython == 8.4.0", diff --git a/woodwork/__init__.py b/woodwork/__init__.py index 50ba1ab36..369ce7d2c 100644 --- a/woodwork/__init__.py +++ b/woodwork/__init__.py @@ -1,7 +1,7 @@ # flake8: noqa -import pkg_resources import sys import warnings +from importlib.metadata import entry_points from woodwork.config import config from woodwork.type_sys import type_system @@ -25,8 +25,8 @@ ) # Call functions registered by other libraries when woodwork is imported -for entry_point in pkg_resources.iter_entry_points( - "alteryx_open_src_initialize", +for entry_point in entry_points( + group="alteryx_open_src_initialize", ): # pragma: no cover try: method = entry_point.load()