Skip to content

Commit

Permalink
chore: Replace pkg_resources with importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Mar 20, 2023
1 parent 8907dc1 commit 1bf7d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doubt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
.. include:: ../../README.md
"""

import pkg_resources
import importlib.metadata

from .models import Boot # noqa
from .models import QuantileRegressionForest # noqa
from .models import QuantileRegressionTree # noqa
from .models import QuantileRegressor # noqa

# Fetches the version of the package as defined in pyproject.toml
__version__ = pkg_resources.get_distribution("doubt").version
__version__ = importlib.metadata.version(__package__)

0 comments on commit 1bf7d18

Please sign in to comment.