Deprecationwarning about pkg_resources
veenstrajelmer opened this issue · comments
veenstrajelmer commented
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