Skip to content

Conversation

AndreyFrolov44
Copy link

Currently, sqlalchemy-file relies on Pillow as an optional dependency in [project.optional-dependencies]. However, from my observations, when users install sqlalchemy-file via poetry, Pillow is not automatically installed, leading to potential DEP002 errors when using ImageValidator.

To improve user experience and avoid such issues, I suggest moving "Pillow >=9.4.0, <10.1.0" from [project.optional-dependencies] to [project.dependencies]. This will allow Pillow to be automatically installed along with sqlalchemy-file.

@jowilf
Copy link
Owner

jowilf commented Nov 27, 2023

Thank you for your suggestion, but I believe Pillow should remain optional since it is only required for ImageField. However, we can improve the error message (see #131 )

@jowilf jowilf closed this Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants