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

pkg_resources is deprecated #1071

Closed
furechan opened this issue Dec 8, 2024 · 1 comment · Fixed by #1072
Closed

pkg_resources is deprecated #1071

furechan opened this issue Dec 8, 2024 · 1 comment · Fixed by #1072

Comments

@furechan
Copy link
Contributor

furechan commented Dec 8, 2024

  • Tiingo Python version: 0.15.6
  • Python version: 3.12.7
  • Operating System: MacOS

Description

pkg_resources is deprecated.

pkg_resources is currently used in tiingo.api to get the package version.

I get deprecation warnings when running some basic tests in Python 3.12.

Warning Message

../../.venv/lib/python3.12/site-packages/tiingo/api.py:9
DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources
@hydrosquall
Copy link
Owner

Thanks for the heads up! I see that importlib.resources is recommended instead.

If you're interested to submit a PR, I would be happy to review it. Otherwise, I will make sure to fix this before the next library release.

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

Successfully merging a pull request may close this issue.

2 participants