Skip to content

Commit 05443de

Browse files
author
Andrew Yang
committed
Remove pkg_resources
1 parent c8630f0 commit 05443de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diffpy/pdfmorph/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818

1919

2020
# obtain version information
21-
from pkg_resources import get_distribution
21+
from importlib.metadata import version
2222

23-
__version__ = get_distribution('diffpy.pdfmorph').version
23+
__version__ = version('diffpy.pdfmorph')
2424

2525
# we assume that tag_date was used and __version__ ends in YYYYMMDD
2626
__date__ = __version__[-8:-4] + '-' + __version__[-4:-2] + '-' + __version__[-2:]

0 commit comments

Comments
 (0)