-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
This issue will attempt to identify solutions for some mild deprecation warnings in the present build.
Namespace
Example is
tests/unit_tests/test_UQ_ijoc.py::test_none_input[ei-expectation0]
/home/wild/.local/lib/python3.10/site-packages/pkg_resources/__init__.py:3154: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('logilab')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
This issue is fully described in
https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#finding-namespace-packages
pkg_resources
Example is
tests/unit_tests/test_UQ_ijoc.py::test_none_input[ei-expectation0]
/home/wild/.local/lib/python3.10/site-packages/libensemble/executors/__init__.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
https://setuptools.pypa.io/en/latest/pkg_resources.html
says
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.
Metadata
Metadata
Assignees
Labels
No labels