Skip to content

Commit de2361c

Browse files
committed
Add links explaining deprecations
1 parent 81e1137 commit de2361c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pkg_resources/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2290,7 +2290,9 @@ def declare_namespace(packageName):
22902290

22912291
msg = (
22922292
"Implementing implicit namespace packages (as specified in PEP 420) "
2293-
"is preferred to `pkg_resources.declare_namespace`."
2293+
"is preferred to `pkg_resources.declare_namespace`. "
2294+
"See https://setuptools.pypa.io/en/latest/references/"
2295+
"keywords.html#keyword-namespace-packages"
22942296
)
22952297
warnings.warn(msg, DeprecationWarning, stacklevel=2)
22962298

setuptools/dist.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ def check_nsp(dist, attr, value):
280280
)
281281
msg = (
282282
"The namespace_packages parameter is deprecated, "
283-
"consider using implicit namespaces instead (PEP 420)."
283+
"consider using implicit namespaces instead (PEP 420). "
284+
"See https://setuptools.pypa.io/en/latest/references/"
285+
"keywords.html#keyword-namespace-packages"
284286
)
285287
warnings.warn(msg, SetuptoolsDeprecationWarning)
286288

0 commit comments

Comments
 (0)