Mixing version constraints with git dependencies #7447
Unanswered
dolfim-ibm
asked this question in
Q&A
Replies: 1 comment
-
|
Git tags/branches have no special semantics. In this situation, where you have multiple projects with shared dependencies developed independently, you really do need a package index. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have a tree of dependencies, all being defined as
gitdependencies, which looks like the followingrepo1/pyproject.toml
pkg_i/pyproject.toml
pkg_j/pyproject.toml
pkg_k/pyproject.toml
Our problem
When developing a new feature in the shared packaged
pkg_a, we cannot "simply" update therepo1/pyproject.toml, because the other sub-packages are still pointing to themainbranch.We get error resolutions like
Currently, we seems to be forced in re-pinning the feature branch in all
pkg_i,pkg_j,pkg_k, which is not very convenient.We were wondering if there is already another way of doing it.
Maybe something like the common usage of version constraints?
What if the
mainbranch ofpkg_ais set to version0.4.0and thenew-featurewould be0.4.1? Shouldn't poetry be able to resolve that, similar to settingversion=^0.4.0?Beta Was this translation helpful? Give feedback.
All reactions