Project

General

Profile

DeprecationWarning for python binding of CDO (v1.6.0)

Added by XR Chua 6 months ago

Hi, I am using v1.6.0 of the python bindings for CDO and obtained this deprecation warning when using pytest:

[...]cdo.py:10: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html


Replies (3)

RE: DeprecationWarning for python binding of CDO (v1.6.0) - Added by XR Chua 5 months ago

I still receive the warning after upgrading though.

=============================================================== warnings summary ================================================================
../../../../../../../scratch/users/gov/nea/chuaxr/convert360-env/lib/python3.12/site-packages/cdo/cdo.py:10
  /scratch/users/gov/nea/chuaxr/convert360-env/lib/python3.12/site-packages/cdo/cdo.py:10: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    from pkg_resources import parse_version

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

---------- coverage: platform linux, python 3.12.3-final-0 -----------
Name                           Stmts   Miss Branch BrPart  Cover   Missing
--------------------------------------------------------------------------
src/convert360/__init__.py         6      0      0      0   100%
src/convert360/convert360.py      74     14     22      6    79%   38-39, 42->exit, 107-108, 110->113, 134, 137, 154-178
--------------------------------------------------------------------------
TOTAL                             80     14     22      6    80%

========================================================= 3 passed, 1 warning in 59.40s =========================================================
(/scratch/users/gov/nea/chuaxr/convert360-env) chuaxr@x1001c3s3b1n1:~/scripts_a2/convert360$ pip --version
pip 23.1.2 from /scratch/users/gov/nea/chuaxr/convert360-env/lib/python3.12/site-packages/pip (python 3.12)

RE: DeprecationWarning for python binding of CDO (v1.6.0) - Added by Ralf Mueller 5 months ago

hi again!

I will fix this and make a new minor release out of it.

thx for the report!

cheers

RE: DeprecationWarning for python binding of CDO (v1.6.0) - Added by Ralf Mueller 5 months ago

release 1.6.1 is out - please check for the warning again

thx in advance ;-)

    (1-3/3)