[Python] How do I add a python package built by poetry to another python project with poetry?

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

  1. Stack

    Stack Membro Participativo

    I am working on two projects, let's call them Project A and Project B.

    Project B requires some modules in Project A, so I did a poetry build on Project A. I am able to access the module when I manually perform a pip install dist/blabla.whl on the build produced by poetry on Project A.

    But when I do a poetry add project-a git+ssh://git@gitlab.blabla.co/nubela/project-a.git#develop, it says


    Could not find a matching version of package project-a
    ​

    Naturally, I understand because project-a is not classically packaged with setup.py and stuff. How can I then perform a poetry add <git-repo-uri> without involving self-hosted pypi instance?

    I can push the .whl files to the project git repo, does that help?

    Continue reading...

Compartilhe esta Página