-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Users expect [options.packages.find] exclude
to be recursive, but it is not (adding .*
to the pattern is needed)
#2688
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
it can't work for an open issue: pypa/setuptools#2688
Hi @KOLANICH, thank you very much for bringing this topic for discussion. The current implementation specifically suggests that this behaviour is intentional, although I don't know what is the rationale behind it. So I will re-label this from (I can conjecture that if the exclusion is automatically recursive there is no way of "re-including" a nested package, so in some sense the current implementation is more general/flexible than the proposal - not sure how relevant this rationale is). I don't know what would be the impacts of changing this behaviour (it would definitely not be backwards compatible), so I will leave the assessment of the proposal for the other maintainers. |
[options.packages.find] exclude
to be recursive, but it is not (adding .*
to the pattern is needed)
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This behavior is by design. The package inference happens during a build phase, but
Same as the prior comment. The wheel looks fine and is excluding the packages from the wheel. You should expect source files (even tests) to be included in the sdist. To affect the sdist, you'll want to customize the MANIFEST.in.
This behavior is inconsistent with the reported issue. The reported issue is that users shouldn't have to specify both I'm marking all of these comments as off-topic, as they're distracting from the primary report. |
I encountered this issue recently when working with distutils. I was trying to figure out why the distutils package was not being installed. It turns out it was because I'd included a As it turns out, that directive wasn't necessary, so I removed it, but while troubleshooting, I noticed I was also excluding Like abravalheri, I'm trying to imagine in what scenario one would want to |
setuptools version
57.0.1.dev3+ga5131f0b.post.20210528a
Python version
cpython 3.9
OS
Ubuntu 21.04
Additional environment information
No response
Description
doesn't work. In fact it doesn't work in a lot of other projects. But in other projects there usually no more than 2 levels in the excluded dir, so the workaround
tests
andtests.*
works.Expected behavior
Should exclude the whole hierarchy if a dir is mentioned.
How to Reproduce
https://github.com/textX/Arpeggio/tree/f24ceb0e79f6c9216dc035de123a388d113a332e
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: