DeprecationWarning: pkg_resources is deprecated as an API
There are some warnings about the deprecation of pkg_resources
.
Click to expand
=============================== warnings summary ===============================
reforis/__init__.py:20
/builds/turris/reforis/reforis/reforis/__init__.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 46 passed, 1 warning in 1.55s =========================
From setuptools documentation:
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.