django-countries icon indicating copy to clipboard operation
django-countries copied to clipboard

DeprecationWarning: pkg_resources is deprecated as an API

Open raratiru opened this issue 2 years ago • 0 comments

https://github.com/SmileyChris/django-countries/blob/48f17b45c76cda200bc2621e09a7dc4babdaa32f/django_countries/fields.py#L5

The above line causes the DeprecationWarning.

According to setuptools docs:

Attention

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.

raratiru avatar Oct 14 '23 17:10 raratiru