Skip to content

Commit

Permalink
Add links explaining deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Feb 13, 2023
1 parent 81e1137 commit de2361c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,9 @@ def declare_namespace(packageName):

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

Expand Down
4 changes: 3 additions & 1 deletion setuptools/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ def check_nsp(dist, attr, value):
)
msg = (
"The namespace_packages parameter is deprecated, "
"consider using implicit namespaces instead (PEP 420)."
"consider using implicit namespaces instead (PEP 420). "
"See https://setuptools.pypa.io/en/latest/references/"
"keywords.html#keyword-namespace-packages"
)
warnings.warn(msg, SetuptoolsDeprecationWarning)

Expand Down

0 comments on commit de2361c

Please sign in to comment.