Fix DeprecationWarning: pkg_resources is deprecated as an API
Closed this issue · 1 comments
/src/steelscript/steelscript/commands/init.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import("pkg_resources").declare_namespace(name)
/usr/local/lib/python3.12/site-packages/pkg_resources/init.py:2846: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('steelscript')
.
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)
/src/steelscript/steelscript/commands/init.py:1: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('steelscript.commands')
.
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