You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repo and believe that this is not a duplicate.
I have searched the FAQ and general documentation and believe that my question is not already covered.
Feature Request
I admit my case is very rare, but it would be nice to have a way to resolve it somehow.
I write a package that must support both Pydantic 1.10 and Pydantic 2.x. So I specify my dependency as pydantic = ">1.10". The thing is, in Pydantic 2.x they moved BaseSettings class to separate pydantic-settings package. And this is a problem, because i can't find in Poetry how to specify installing pydantic-settings only if pydantic was resolved to 2.x
The idea is, if user of package depends on Pydantic 1.10 (directly or through another dependency), my package should use 1.10, otherwise it should use 2.x + pydantic-settings
I probably could try to use extras or even split packages completely, if there is a way to avoid it - I'd be glad!
The text was updated successfully, but these errors were encountered:
Feature Request
I admit my case is very rare, but it would be nice to have a way to resolve it somehow.
I write a package that must support both Pydantic 1.10 and Pydantic 2.x. So I specify my dependency as
pydantic = ">1.10"
. The thing is, in Pydantic 2.x they moved BaseSettings class to separate pydantic-settings package. And this is a problem, because i can't find in Poetry how to specify installing pydantic-settings only if pydantic was resolved to 2.xThe idea is, if user of package depends on Pydantic 1.10 (directly or through another dependency), my package should use 1.10, otherwise it should use 2.x + pydantic-settings
I probably could try to use extras or even split packages completely, if there is a way to avoid it - I'd be glad!
The text was updated successfully, but these errors were encountered: