Skip to content

Commit

Permalink
Remove deprecated usage of pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander-Karlsson authored and eivindjahren committed Apr 27, 2023
1 parent f41c43d commit 3156907
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ecl_data_io/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pkg_resources import DistributionNotFound, get_distribution
from importlib.metadata import version, PackageNotFoundError

try:
version = get_distribution(__name__).version
except DistributionNotFound:
version = version("ecl-data-io")
except PackageNotFoundError:
version = "0.0.0"

0 comments on commit 3156907

Please sign in to comment.