LibraryOfCongress / bagit-python

Work with BagIt packages from Python.
http://libraryofcongress.github.io/bagit-python
216 stars 85 forks source link

move to importlib #170

Open nkrabben opened 1 year ago

nkrabben commented 1 year ago

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.

acdha commented 1 year ago

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

branchvincent commented 10 months ago

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

sevein commented 4 months ago

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