Is setuptools.find_namespace_packages()
consistent with PEP420?
#3427
-
I'm trying to understand the new best practice for package maintainers around PEP 420 and found something that seems inconsistent between how Under https://peps.python.org/pep-0420/#specification it says:
And under Differences between namespace packages and regular packages, PEP 420 says:
From this I'd have thought that a namespace package MUST NOT (in the convention of RFC 2119) contain an setuptools/setuptools/discovery.py Lines 163 to 166 in 641cb89 I've found very helpful explanations from @abravalheri (#3340 (comment) and elsewhere) about the definition of packages, but I've not seen this particular aspect of namespace packages discussed. Any clarification here would be appreciated :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @kanderso-nrel ,maybe the naming we use right now is a bit mixed up, but the idea with |
Beta Was this translation helpful? Give feedback.
Hi @kanderso-nrel ,maybe the naming we use right now is a bit mixed up, but the idea with
find_namespace_packages
is that it would also include namespaces in addition to regular packages. The same thing withPEP420PackageFinder
, it find the packages including the ones described in PEP 420.