Skip to content

How would you use this template in a monorepo (of Python projects)? #53

Answered by paddyroddy
cdinu asked this question in Q&A
Discussion options

You must be logged in to vote

So to answer your question directly, you could do something like this https://discuss.python.org/t/multiple-related-programs-one-pyproject-toml-or-multiple-projects/17427/2. So you could use the cookieninja template to make one and then move src into project1/src, then cp -r project1/src project2/src etc.

However, particularly if you're going to be pushing to PyPI etc. then I would probably recommend one package per repo. Just to keep things simple.

Another question is whether they are actually separate packages or modules. One package can have multiple modules, which are technically separate. For example, you may have seen

from matplotlib import pyplot as plt

So here we are using the pyplot

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cdinu
Comment options

cdinu Jun 15, 2023
Collaborator Author

Answer selected by cdinu
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