redis / redis-om-python

Object mapping, and more, for Redis and Python
MIT License
1.06k stars 108 forks source link

Add support for the latest Pydantic versions #595

Closed yanbo-huang closed 3 months ago

yanbo-huang commented 4 months ago

The current redis-om-python's dependency constraint for Pydantic version is pydantic = ">=1.10.2,<2.1.0". ATM, the latest Pydantic version is v2.6.1. Its development pace is quite fast. Within one year, lots of features are added and bugs are fixed. Could you please add support for a higher version of Pydantic? Then our projects don't need to hold onto the lower versions.

yanbo-huang commented 4 months ago

I went through all chats in the pull requests and issues. Noticed there are already a few PRs updating the Pydantic's version. They are still waiting for approval for quite a long time. We are in a hurry to migrate to the latest Pydantic version in our project, so I created a fork and updated the version to pydantic = ">=1.10.2,<3.0.0". I tested it in my own environments, it is working fine so far. For people in the same situation, feel free to use it:

# put this in your package management file (eg, `pyproject.toml`)
redis-om = {git = "https://github.com/yanbo-huang/redis-om-python.git"}
prutheus commented 3 months ago

what is the current status on this? @slorello89 @uglide

gaby commented 3 months ago

Fixed by #597

banker commented 3 months ago

Thanks, @gaby!