Skip to content

Commit

Permalink
fix: remove pkg_resources deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
himkwtn committed Jul 15, 2024
1 parent b349add commit cc7508f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pysindy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from pkg_resources import DistributionNotFound
from pkg_resources import get_distribution
from importlib.metadata import version, PackageNotFoundError

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
__version__ = version(__name__)
except PackageNotFoundError:
pass

from . import differentiation
Expand Down

0 comments on commit cc7508f

Please sign in to comment.