Skip to content

Commit

Permalink
FIX: get rid of usage of deprecated pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaak committed Dec 28, 2023
1 parent 80725df commit b52ab28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
13 changes: 6 additions & 7 deletions phik/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@
"""

import pathlib
from pkg_resources import resource_filename
import phik
from pathlib import Path

ROOT_DIRECTORY = Path(__file__).resolve().parent


# Fixtures
_FIXTURE = {
_.name: _ for _ in pathlib.Path(resource_filename(phik.__name__, "data")).glob("*")
}
_FIXTURE = {_.name: _ for _ in pathlib.Path(ROOT_DIRECTORY / "data").glob("*")}
# Tutorial notebooks
_NOTEBOOK = {
_.name: _
for _ in pathlib.Path(resource_filename(phik.__name__, "notebooks")).glob("*.ipynb")
_.name: _ for _ in pathlib.Path(ROOT_DIRECTORY / "notebooks").glob("*.ipynb")
}

# Resource types
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ dependencies = [
"pandas>=0.25.1",
"matplotlib>=2.2.3",
"joblib>=0.14.1",
"setuptools>=68;python_version=='3.12'",
]

[project.optional-dependencies]
Expand Down

0 comments on commit b52ab28

Please sign in to comment.