https://pantsbuild.org/ logo
s

shy-match-55049

06/29/2021, 8:55 PM
Hello everyone. Really excited to get started on building a python monorepo with Pants! I'm combining 4 smaller services and have never done this before, so I'm really curious to see if anyone else has a good structure/pattern for a
Python + Docker + GCP
monorepo architecture!
👋 3
w

witty-crayon-22786

06/29/2021, 10:09 PM
welcome! i don’t have any particular tricks, but definitely let us know (or suggest edits!) if the Getting Started guide is missing anything!
s

shy-match-55049

06/29/2021, 10:41 PM
It looks well set up for a single python project, but I think it's a little unclear (at least to me) how some of that structure generalizes!
w

witty-crayon-22786

06/29/2021, 11:04 PM
Yea... "project" is a bit of an abstract term in this case. In pants we'd refer more to `python_distribution`s and `pex_binary`s than to projects, because those are the parts that are never shared between "projects".
(...i.e. the "roots" in your repository: published libraries or built binaries)
Everything else is eligible to be shared: all config, third-party/requirements definitions, source code, etc.
s

shy-match-55049

06/29/2021, 11:22 PM
Hmm, I kind of see where you're coming from. I'm reading through the docs right now and just scratching the surface of everything. Do you have any other example/fully fledged python repos I could see? It would help solidify some of these lessons 🙂
b

busy-vase-39202

07/01/2021, 6:34 PM
Just a note to observers that this excellent conversation got followed-up, in-depth, over in #general: https://app.slack.com/client/T046T6T8L/C046T6T9U/thread/C01SPQQ2WK1-1625000101.017800