-
Hey. I read through:
about the various layouts, but couldn't really find out whether the following is properly supported or not:
So the idea would be, that the whole project will ever only consist of one module (with the same name as the project, namely I do not want to have the
For that simple case of having only one package in the project, the src-layout seems also a bit ugly to me:
I will never have any "sibling" packages of I tried the layout from the very top, where all Contrary, #3872 seems to even imply that it's not really supported.
seems to fail, as it should, while:
does seem to work. So question would be:
And if it works, shouldn't that be documented as a supported layout? Guess some people would want to use it :-) Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi @calestyo, to be honest, what you called "ugly" is standard practice in the community. I don't think it is worth messing with that for 2 reasons:
What really puzzles me is why do you have a folder called Do you really need that
Or maybe
|
Beta Was this translation helpful? Give feedback.
-
😇 Didn't mean to step on anyone's toes. It's just that with the flat layout, I'd have I though every package would need an You're first suggestion would work for me... as far as I can see it's the same as my first one above, just except for the The second, AFAICS, would be the src layout as documented here, i.e. with the "superfluous" Thanks :-) |
Beta Was this translation helpful? Give feedback.
Yes, that should work. Though, I don't remember if you need to declare those modules explicitly, you might want to experiment with that.
Note that things under
src/
are going to be installed directly intosite-packages/
si make sure those top-level module names are unique and won't collide with someone else's distribution package.