Skip to content

Commit bb58eaf

Browse files
authored
Merge pull request #130 from simonsobs/fix-pkg-resources
Replace pkg_resources with importlib
2 parents 5b361f7 + d4e903d commit bb58eaf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from pkg_resources import DistributionNotFound, get_distribution
1+
from importlib.metadata import PackageNotFoundError, version
22

33
try:
4-
__version__ = get_distribution("pspy").version
5-
except DistributionNotFound:
4+
__version__ = version("pspy")
5+
except PackageNotFoundError:
66
__version__ = "unknown version"
77

88
import os

0 commit comments

Comments
 (0)