How would you use this template in a monorepo (of Python projects)? #53
-
I have good experience with JavaScript monorepos. Has anyone any experience with multiple autonomous projects in the same repo? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 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 |
Beta Was this translation helpful? Give feedback.
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 movesrc
intoproject1/src
, thencp -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
So here we are using the
pyplot