Skip to content

Conflicting Second-Order Dependencies between bricks that do not interact with eachother #129

Answered by DavidVujic
bmritz asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know any other way than excluding the third-party dependencies that aren't compatible with the other dependencies. Poetry will always resolve dependencies, even if they are in a optional dependency group and in this case that would mean that the Pydantic versions will be in conflict.

Ideally, all code and dependencies should be in the top-level pyproject.toml for a nice developer experience, but it is not a requirement. If you want to run the code that need the specific dependency, I would probably comment/uncomment the brick(s) and dependency when needed. This is not perfect, but we are limited in the way dependencies are resolved in a virtual environment.

Another option, maybe b…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bmritz
Comment options

Answer selected by bmritz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants