spectrum icon indicating copy to clipboard operation
spectrum copied to clipboard

Deprecated use of pkg_resources

Open mh105 opened this issue 2 years ago • 0 comments

1. Describe the bug I noticed that spectrum is still using pkg_resources to manage file paths. After 3.10 there is now a warning message for deprecated API.

2. To Reproduce

  • OS: any
  • Python version. >3.10
  • Version of spectrum: 0.8.1

Just need to import spectrum and this warning message is elicited:

DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

3.Expected behavior We should switch to use importlib.resources and importlib.metadata for the same functionalities.

mh105 avatar Oct 20 '23 23:10 mh105