collerek / ormar

python async orm with fastapi in mind and pydantic validation
https://collerek.github.io/ormar/
MIT License
1.66k stars 86 forks source link

Ormar and pydantic-settings incompatibility #1396

Open markjrouse opened 1 week ago

markjrouse commented 1 week ago

Describe the bug Can't install pydantic-settings if ormar is installed due to incompatibility issues.

"Because no versions of pydantic-settings match >2.5.2,<3.0.0 and pydantic-settings (2.5.2) depends on pydantic (>=2.7.0), pydantic-settings (>=2.5.2,<3.0.0) requires pydantic (>=2.7.0). And because ormar (0.20.1) depends on pydantic (v2.5.3) and no versions of ormar match >0.20.1,<0.21.0, pydantic-settings (>=2.5.2,<3.0.0) is incompatible with ormar (>=0.20.1,<0.21.0). So, because reason-capdis depends on both ormar (^0.20.1) and pydantic-settings (^2.5.2), version solving failed."

To Reproduce Steps to reproduce the behavior:

  1. poetry add ormar
  2. poetry add pydantic-settings

(Note: this should be a complete and concise piece of code that allows reproduction of an issue)

Expected behavior I should be able to add both ormar and pydantic-settings

Versions (please complete the following information):