Skip to content

How can I include all packages from src automatically ? #3923

Answered by finswimmer
aahnik asked this question in Q&A
Discussion options

You must be logged in to vote

AFAIK there is no equivalent to find_packages in poetry. You either have to name the packages like the project and put them into the root folder or src folder. Than poetry can autodetect than. Or add them explicit in the pyproject.toml ("Explicit is better than implicit").

Question: Why do you want multiple packages within one project? While this is possible, the usage is a bit surprisingly for the end-user. ("I installed package_a but have to use import package_b?". I would suggest to have only one main package and put the other packages as subpackages into it. So all packages share the same namespace (package.subpackage_a, package.subpackage_b, ...). Or if the content of these packages …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aahnik
Comment options

@finswimmer
Comment options

Answer selected by aahnik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants