Manage dependencies of git submodules with poetry
Asked Answered
D

1

8

We have a repository app-lib that is used as sub-module in 4 other repos and in each I have to add all dependencies for the sub-module. So if I add/remove a dependency in app-lib I have to adjust all other repositories. I there a way to tell Poetry to install the root repo dependencies and the ones in the sub-module?

The my-package = { path = "../my-package/dist/my-package-0.1.0.tar.gz" } parameter seems only to work for files. And I don't know if it's good design to store all wheels in app-lib.

I kind of want to merge the root toml file dependencies and the sub-module toml file dependencies and then install them.

Thanks

Dynamometry answered 6/11, 2019 at 10:25 Comment(0)
D
1

In the end if that helps someone I just build the submodule and store it in a private repo like Gitlab Packages or Nexus, loading it with poetry with the peotry install.

See https://python-poetry.org/docs/repositories/

Dynamometry answered 18/2, 2022 at 11:27 Comment(1)
See following answer. It should help: https://mcmap.net/q/1194825/-how-to-install-the-dependencies-of-the-submodule-using-poetryBrobdingnagian

© 2022 - 2024 — McMap. All rights reserved.