We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a07e918 + 20a701f commit c89c643Copy full SHA for c89c643
changelog.d/3827.misc.rst
@@ -0,0 +1,2 @@
1
+Improve deprecation warning message on ``pkg_resources.declare_namespace``
2
+to display package name.
pkg_resources/__init__.py
@@ -2289,6 +2289,7 @@ def declare_namespace(packageName):
2289
"""Declare that package 'packageName' is a namespace package"""
2290
2291
msg = (
2292
+ f"Deprecated call to `pkg_resources.declare_namespace({packageName!r})`.\n"
2293
"Implementing implicit namespace packages (as specified in PEP 420) "
2294
"is preferred to `pkg_resources.declare_namespace`. "
2295
"See https://setuptools.pypa.io/en/latest/references/"
0 commit comments