setuptools.find_packages()
without parameters not excluding tests
#4082
-
Hi there, It's me again with another I'm trying to build a wheel for RTFDE from source. Upstream uses When I run Options to work around it:
According to the Automatic Discovery documentation neither should be necessary. What am I missing? I tried this with setuptools |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
The docs suggest you leave out the
If automatic discovery is not enough for your project structure, then you can use It is usually a good idea to start with |
Beta Was this translation helpful? Give feedback.
-
The reason why it contains If the original author does not mean to distribute |
Beta Was this translation helpful? Give feedback.
-
Thanks! That was it. I seem to have a hard time remembering that leaving out I'll try to remember that. But maybe adding something like:
The above in addition to the info box that mentions not defining any of the other parameters. Or maybe on top of that box. Having |
Beta Was this translation helpful? Give feedback.
-
It's almost always a mistake. But one that happens very often. I can see why. |
Beta Was this translation helpful? Give feedback.
The docs suggest you leave out the
packages
config completely, so setuptools finds it out based on some heuristics (shold work for the majority of pckages). This paragraph from the docs is relevant:If automatic discovery is not enough for your project structure, then you can use
find_packages
for customisation. Note, however, that when you usefind_packages
, you are in complete control: no heuristics are applied. So yo…