nbdev icon indicating copy to clipboard operation
nbdev copied to clipboard

Use of `pkg_resources` is deprecated

Open Martin15135215 opened this issue 2 years ago • 1 comments

https://github.com/fastai/nbdev/blob/96deb7a03bf2cf79a04e1878f67ce099e434e97f/setup.py#L5-L7

This is a friendly reminder, to tackle this in the future.


https://setuptools.pypa.io/en/latest/pkg_resources.html

Use of pkg_resources is deprecated in favor of importlib.resources, importlib.metadata and their backports (importlib_resources, importlib_metadata). Some useful APIs are also provided by packaging (e.g. requirements and version parsing). Users should refrain from new usage of pkg_resources and should work to port to importlib-based solutions.

Martin15135215 avatar Dec 24 '23 10:12 Martin15135215

wondering why I only get a warning about it in Python 3.12:

Image

while in Python 3.13, all silent:

Image

michaelaye avatar Jun 04 '25 14:06 michaelaye