[Python] How to manage builds in a python monorepo?

Discussão em 'Python' iniciado por Stack, Abril 8, 2025.

  1. Stack

    Stack Membro Participativo

    I am fairly experienced with python but have always worked in small repos. I currently have a use case for a monorepo.

    I've looked at alot of different tooling and I'm finding it hard to meet what appear to me to be obvious requirements for a python monorepo.

    Ultimately what i want is for each project to to declare its own dependencies in a pyproject.toml. This could include dependencies between projects

    I'd like to be able to pick any single project and build a virtual environment from it that satisfies all dependencies, and uses editable installs so that I can run debuggers and edit my code at the same time in my ide (VSCode).

    I would also like to be able to build a python package for any pyproject.toml that is not dependent on the local filesystem (i.e. the installs are no longer in 'editable' mode).

    Is there a straightforward way to achieve this?

    Continue reading...

Compartilhe esta Página