diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-04-11 22:18:02 +0100 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-05-16 13:30:13 +0100 |
| commit | 376da0c45bb7690848120d77c7ffbcec74e68243 (patch) | |
| tree | 2c71c158039012cde76a8b7de23666406f041485 /setuptools/dist.py | |
| parent | 4b3d473fca60f14ed62f977d9a8473b51c43aea3 (diff) | |
| download | python-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.py | 5 |
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): |
