move to importlib
small change to move away from the deprecated pkg_resources
importlib.metadata is not supported in 3.7, which is still supported by bagit-python.
The library also doesn't have an exception class but it can return None.
Python 3.7's end of life was in June so maybe the answer here is to mark that as no longer supported?
This would be great to merge/release as Python 3.12 no longer comes bundled with setuptools (and thus pkg_resources): https://github.com/python/cpython/issues/95299
@nkrabben, I believe the issue has been resolved in https://github.com/LibraryOfCongress/bagit-python/pull/172. Can we close this?
For the record, I believe that some users are not experiencing this issue because they're still installing setuptools, e.g. if your project depends on gevent you're likely installing setuptools too because it's a dependency of a dependency (zope.event).
Sorry for non-response. Closing