diff --git a/copulas/__init__.py b/copulas/__init__.py index ac91762b..a267f94c 100644 --- a/copulas/__init__.py +++ b/copulas/__init__.py @@ -15,7 +15,7 @@ import numpy as np import pandas as pd -from pkg_resources import iter_entry_points +from importlib.metadata import entry_points EPSILON = np.finfo(np.float32).eps @@ -311,7 +311,7 @@ def _get_addon_target(addon_path_name): def _find_addons(): """Find and load all copulas add-ons.""" group = 'copulas_modules' - for entry_point in iter_entry_points(group=group): + for entry_point in entry_points(group=group): try: addon = entry_point.load() except Exception: # pylint: disable=broad-exception-caught diff --git a/pyproject.toml b/pyproject.toml index fdb51a1e..a9f5429b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,6 @@ dependencies = [ "scipy>=1.5.4,<2;python_version<'3.10'", "scipy>=1.9.2,<2;python_version>='3.10' and python_version<'3.12'", "scipy>=1.12.0,<2;python_version>='3.12'", - 'setuptools<70', ] [project.urls]