long2ice / fastapi-cache

fastapi-cache is a tool to cache fastapi response and function result, with backends support redis and memcached.
https://github.com/long2ice/fastapi-cache
Apache License 2.0
1.3k stars 160 forks source link

The library specifies upper bound for dependencies #389

Open dvarrazzo opened 8 months ago

dvarrazzo commented 8 months ago

The redis library is specified with an upper bound:

https://github.com/long2ice/fastapi-cache/blob/91ba6d75524b1f6a17ae6a3300ab51b9aa1fcf71/pyproject.toml#L21C1-L21C51

This is a bad practice in libraries, it can easily cause impossible dependencies combinations.

For a more in-depth discussion: https://iscinumpy.dev/post/bound-version-constraints/