fix: restore Redis as optional dependency#312
Conversation
|
Hi, thanks for PR, totally agreed. But you still did not remove it from |
|
Hi, thanks for the review! Just to clarify the intent of this PR — Redis was already an optional dependency. The [project.optional-dependencies] entry has existed for a long time: [project.optional-dependencies] The issue is that in commit cbd97a4, this line was added to the main dependencies array: That broke the optional behavior — Redis started being installed by default, even those who didn't need it. This PR is not introducing Redis as optional. It's restoring the previous, intentional behavior: Removed redis (>=7.4.0,<8.0.0) from the main dependencies array. Redis is still fully supported via: |
What
rediswas removed from the list of required dependencies and restored as an optional dependency under the[redis]extra, the same behavior it had in version 1.6.2.Reason
In version 1.6.3,
redis>=7.4.0,<8.0.0was added as an unconditional dependency along with its existing optional entry, causing it to always be installed withfastapi-mail, regardless of whether the Redis functionality was needed.