imageio / imageio-ffmpeg

FFMPEG wrapper for Python
BSD 2-Clause "Simplified" License
221 stars 50 forks source link

pkg_resources is deprecated #98

Closed nhairs closed 3 months ago

nhairs commented 7 months ago

When running my own tests the following warning is thrown: /code/.tox/py311/lib/python3.11/site-packages/imageio_ffmpeg/_utils.py:7: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

The fix appears to be to use importlib.resources

almarklein commented 7 months ago

There's a nice migration guide here: https://importlib-resources.readthedocs.io/en/latest/migration.html

I recently made a similar change in another project (https://github.com/pygfx/wgpu-py/pull/421/files). I expect we can do something similar here.

There's no rush, since its only a warning (for now), but if someone is willing to contribute a PR that'd be great 😊

almarklein commented 3 months ago

Fixed by #109