Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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://[email protected]/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?

like image 952
nubela Avatar asked Dec 05 '25 18:12

nubela


1 Answers

The correct syntax would be

poetry add git+ssh://[email protected]/nubela/project-a.git#develop

More examples are in the docs

like image 134
finswimmer Avatar answered Dec 11 '25 08:12

finswimmer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!