From 702a708c4e9a17b2850192a3c2ca0ba1a1c9b687 Mon Sep 17 00:00:00 2001 From: Ryan Keyes Date: Mon, 6 Oct 2025 23:33:30 -0500 Subject: [PATCH 1/4] replace pkg_resources with importlib in init --- woodwork/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() From b4bebc8a329c061884fd151cca8f8a9ab2c8dabe Mon Sep 17 00:00:00 2001 From: Ryan Keyes Date: Mon, 6 Oct 2025 23:36:23 -0500 Subject: [PATCH 2/4] update future releases --- docs/source/release_notes.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 66179862f..d0c684f94 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` * Documentation Changes * Testing Changes From 3a97662dcd84ba4a74a7d6b87dce93a02343e68f Mon Sep 17 00:00:00 2001 From: Ryan Keyes Date: Mon, 6 Oct 2025 23:41:41 -0500 Subject: [PATCH 3/4] include pr number --- docs/source/release_notes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index d0c684f94..c5d42ab1c 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -9,7 +9,7 @@ Future Release * Fixes * Changes * Restrict numpy to <2.0.0 :pr:`1869` - * Replace deprecated setuptools `pkg_resources` usages with `importlib` + * Replace deprecated setuptools `pkg_resources` usages with `importlib` :pr:`1876` * Documentation Changes * Testing Changes From b48c5837b9a6ac55e95af1df4fa567daf53327fc Mon Sep 17 00:00:00 2001 From: Ryan Keyes Date: Mon, 6 Oct 2025 23:58:45 -0500 Subject: [PATCH 4/4] include standard-imghdr to fix doc building --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) 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",