[Python] poetry local dependency in develop mode

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

  1. Stack

    Stack Membro Participativo

    I'm trying to use poetry in a project that uses local dependencies. Specifically, I have two other poetry projects that are included as git submodules, I've added them to the top level poetry project as path dependencies.

    [tool.poetry.dependencies]
    python = "^3.8"
    pydantic = "^1.9.0"
    adp-utils = {path = "../../adp-utils", develop = false}
    adp-cfw = {path = "../../adp-cfw", develop = false}


    If I set my dependencies with develop = false, I can import them in my client code and all works well. However, since I'm making changes to the libraries as I develop the application, any changes to the library require me to bump the library version and run poetry update on the top level project.

    When I try to set develop = true, import statements fail on the top level application. The libraries are still installed, and inspection of the site-packages folder on the venv shows that they are there.

    Continue reading...

Compartilhe esta Página