Skip to content

Commit

Permalink
Remove setuptools + rerun jupyter
Browse files Browse the repository at this point in the history
  • Loading branch information
fealho committed Mar 28, 2024
1 parent 32cbf3a commit 6479dbc
Show file tree
Hide file tree
Showing 3 changed files with 436 additions and 13 deletions.
10 changes: 8 additions & 2 deletions copulas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -311,7 +311,13 @@ 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):
try:
eps = entry_points(group=group)
except TypeError:
# Load-time selection requires Python >= 3.10 or importlib_metadata >= 3.6.
eps = entry_points().get(group, [])

for entry_point in eps:
try:
addon = entry_point.load()
except Exception: # pylint: disable=broad-exception-caught
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Loading

0 comments on commit 6479dbc

Please sign in to comment.