A way to ignore conflicts among extras? #6411
-
|
My project, data-diff, supports a lot of "extra" 3rd party dependencies, i.e. packages that are only necessary in specific situations. We tell users to install them if they wish, for example with Some of these packages have conflicting dependencies, let's say some of them want However, the conflicting packages are probably not going to be used as the same time. So poetry fails entirely, for a situation that would only happen <1% of the time! My questions are -
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
There is not a way to avoid conflicts between extras -- Poetry's solver is universal and solves for all possible permutations across extras, groups, and platforms. I'm not sure there's a good way to do what you want with Poetry right now, as it simply has not been designed (in its present state) for this advanced library use case. Poetry has come a long way, but remains at its core a tool that was designed for application and simple to moderately complex library scenarios. I would invite you to open an issue to discuss if what you want is in scope for Poetry, and well as potential design patterns. |
Beta Was this translation helpful? Give feedback.
There is not a way to avoid conflicts between extras -- Poetry's solver is universal and solves for all possible permutations across extras, groups, and platforms. I'm not sure there's a good way to do what you want with Poetry right now, as it simply has not been designed (in its present state) for this advanced library use case.
Poetry has come a long way, but remains at its core a tool that was designed for application and simple to moderately complex library scenarios. I would invite you to open an issue to discuss if what you want is in scope for Poetry, and well as potential design patterns.