-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deps: Move matplotlib dependency to extras #68
Comments
Thank you for the kind words! I understand that since you are not using that dependency and the security alerts for pillow, removing it would make sense for your use case. However, if I were to remove Instead, an option might be to only import the necessary matplotlib functions when they are used within PolyFuzz. It is not exactly the nicest way of coding but it might prevent errors if you install polyfuzz with |
That's an interesting alternative. I'm not sure if that would translate properly to My suggestion is to leave as is and wait for when you are ready for a major (breaking) version to introduce this as an breaking change. What do you think? |
Ah, that makes things indeed difficult. Just to be sure, I believe this relates to that which seems to have solved that. If I am not mistaken then it might be possible to install it without dependencies in |
The linked issue indeed relate to this. I see how one could do I understand that you do not want to introduce breaking changes, and I respect your choice. As far as I am concerned, for the time being we'll just stick with the status quo and deal with the vulnerability alerts that may come from polyfuzz's dependencies. Your willingness to have had this discussion is appreciated :) I won't close in case you want to keep open for introduction alongside other breaking changes when the time comes; feel free to close! |
Ah right, that makes sense! I hoped that it would solve the issues but unfortunately, it does not.
Definitely! This is something I will take into account when a new version is released with breaking changes.
Still, a shame that there isn't a quick fix for this. The only thing I can think of is installing a previous version of Pillow that might not have the vulnerability since PolyFuzz expects a range of versions. However, I would expect previous versions to have the same vulnerability.
Definitely! Leaving this open will also help understand what other users think of this issue! Thanks for brining this to the attention of all users. |
Hello @MaartenGr!
A two high severity security alerts in pillow 9.50.0, a dependency of matplotlib has been brought to our attention by dependabot:
Investigating further, we realized that we do not use pillow; nor do we use matplotlib. We found our only dependency relying on matplotlib was polyfuzz, and we do not use the functionality provided by this dependency.
Would you be willing to make matplotlib an optional dependency? It seems to be only required by the
visualize_precision_recall
function inPolyFuzz/polyfuzz/metrics.py
Line 56 in e754003
I don't know what your end user usage of this function is like, but on our end we do not use it (we primarly use polyfuzz to catch duplicate strings in user-managed datasets), and as such having matplotlib and its entire dependency tree to manage in our already large dependency array is something we'd rather not have to do 😅
So what do you say? :)
Thanks a lot! (And thanks for this fantastic package ;))
Cheers!
Philippe
The text was updated successfully, but these errors were encountered: