Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated use of pkg_resources #81

Open
mh105 opened this issue Oct 20, 2023 · 0 comments
Open

Deprecated use of pkg_resources #81

mh105 opened this issue Oct 20, 2023 · 0 comments

Comments

@mh105
Copy link

mh105 commented Oct 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant