-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
Hi,
It looks like setuptools will eventually remove pkg_resources so the following will fail:
nagiosplugin/tests/test_examples.py
Line 19 in 050651a
| sys.executable, pkg_resources.resource_filename( |
Running the test suite results in:
tests/test_examples.py:2
/var/tmp/portage/dev-python/nagiosplugin-1.3.3/work/nagiosplugin-1.3.3/tests/test_examples.py:2: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resource
s.html
import pkg_resources
There is documentation here that explains how to migrate to importlib.resources: https://importlib-resources.readthedocs.io/en/latest/migration.html#pkg-resources-resource-filename