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.
libs
directory contains source code for in-house libraries.- In this example, fizzbuzz library is located.
projects
directory contains source code for applications.project_a
refers tofizzbuzz
library, butproject_b
does 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-fizzbuzz
pants generate-lockfiles