diff --git a/msnoise/_version.py b/msnoise/_version.py index 1b16236f..8ad6d72f 100644 --- a/msnoise/_version.py +++ b/msnoise/_version.py @@ -150,8 +150,8 @@ def get_git_version(abbrev=10, dirty=True, append_remote_tracking_branch=True): if version is None: try: - import pkg_resources - version = pkg_resources.get_distribution("msnoise").version + from importlib.metadata import version + version = version('msnoise') except: pass