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

Deprecationwarning about pkg_resources #89

Open
veenstrajelmer opened this issue Dec 8, 2023 · 0 comments
Open

Deprecationwarning about pkg_resources #89

veenstrajelmer opened this issue Dec 8, 2023 · 0 comments

Comments

@veenstrajelmer
Copy link

veenstrajelmer commented Dec 8, 2023

What maintenance does this project need?

Importing pkg_resources is deprecated:

../../../../../opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/cdsapi/api.py:17

/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/cdsapi/api.py:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

#74 seems to partly fix this, but could be slightly neater. importlib.metadata is available since python 3.8. should work like this:

from importlib.metadata import version  
version('wheel')  
'0.32.3'

Organisation

Deltares

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