This is an example repository when you create monorepo by pants from repositories managed by poetry.
In order to run this repository, pants binary is necessary. Please install beforehand.
- pants: https://www.pantsbuild.org/
Configuration of directories is shown below.
libsdirectory contains source code for in-house libraries.- In this example, fizzbuzz library is located.
projectsdirectory contains source code for applications.project_arefers tofizzbuzzlibrary, butproject_bdoes not.
.
├── libs
│ └── fizzbuzz
│ ├── fizzbuzz/
│ ├── pyproject.toml
│ ├── README.md
│ └── tests/
├── pants.toml
├── projects
│ ├── project_a
│ │ ├── pyproject.toml
│ │ └── src/
│ └── project_b
│ ├── pyproject.toml
│ └── src/
pants libs/fizzbuzz ::pants fmt ::pants run projects/project_a/src/main.py -- --show-fizzbuzzpants generate-lockfiles