bagit-python icon indicating copy to clipboard operation
bagit-python copied to clipboard

move to importlib

Open nkrabben opened this issue 2 years ago • 3 comments

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.

nkrabben avatar Aug 04 '23 17:08 nkrabben

Python 3.7's end of life was in June so maybe the answer here is to mark that as no longer supported?

acdha avatar Aug 08 '23 20:08 acdha

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

branchv avatar Oct 06 '23 14:10 branchv

@nkrabben, I believe the issue has been resolved in https://github.com/LibraryOfCongress/bagit-python/pull/172. Can we close this?

sevein avatar Apr 19 '24 04:04 sevein

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).

sevein avatar Aug 29 '24 16:08 sevein

Sorry for non-response. Closing

nkrabben avatar Aug 29 '24 16:08 nkrabben