summaryrefslogtreecommitdiff
path: root/setuptools/dist.py
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-04-11 22:18:02 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-05-16 13:30:13 +0100
commit376da0c45bb7690848120d77c7ffbcec74e68243 (patch)
tree2c71c158039012cde76a8b7de23666406f041485 /setuptools/dist.py
parent4b3d473fca60f14ed62f977d9a8473b51c43aea3 (diff)
downloadpython-setuptools-git-376da0c45bb7690848120d77c7ffbcec74e68243.tar.gz
Add deprecation messages for `namespace_packages`.
The docs in https://setuptools.pypa.io/en/latest/userguide/package_discovery.html and https://packaging.python.org/en/latest/guides/packaging-namespace-packages/ suggest that this field is deprecated.
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r--setuptools/dist.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index 5507167d..37021ac7 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -280,6 +280,11 @@ def check_nsp(dist, attr, value):
nsp,
parent,
)
+ msg = (
+ "The namespace_packages parameter is deprecated, "
+ "consider using implicit namespaces instead (PEP 420).",
+ )
+ warnings.warn(msg, SetuptoolsDeprecationWarning)
def check_extras(dist, attr, value):