From f16917bea531e2f3c08a06a36794b58965af91b0 Mon Sep 17 00:00:00 2001 From: azzayou Date: Mon, 7 Sep 2026 17:00:34 +0100 Subject: [PATCH] add Note for removing ``pkg_resources`` from ``setuptools`` and add refrenece to it. --- peps/pep-0420.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/peps/pep-0420.rst b/peps/pep-0420.rst index 4ad8f7ad8dd..f2e5e321183 100644 --- a/peps/pep-0420.rst +++ b/peps/pep-0420.rst @@ -72,6 +72,8 @@ setuptools provides a similar function named import pkg_resources pkg_resources.declare_namespace(__name__) +NOTE: ``pkg_resources`` was removed from ``setuptools`` v82.0.0 [2]_. + In the portion's ``__init__.py``, no assignment to ``__path__`` is necessary, as ``declare_namespace`` modifies the package ``__path__`` through ``sys.modules``. As a special feature, ``declare_namespace`` @@ -616,6 +618,9 @@ References .. [1] PEP 420 branch (http://hg.python.org/features/pep-420) +.. [2] Refrence of removin ``pkg_resources`` from ``setuptools`` v82.0.0 + (https://setuptools.pypa.io/en/stable/history.html#v82-0-0) + .. [3] PyCon 2012 Namespace Package discussion outcome (https://mail.python.org/pipermail/import-sig/2012-March/000421.html)