Closed akx closed 2 years ago
How would one tell pip
to install the extra dependencies?
pip install easy-thumbnails[svg]
This PR missed at least one place where VIL is imported, causing issues if easy-thumbnails is installed without the svg extra:
There may be more, this is the one I saw in a CI run on a project that uses easy-thumbnails.
I'd suggest adding a test configuration that doesn't install the svg extras in order to catch these sort of issues.
Hi @jaap3, @wesbroadway, sorry for the trouble 😞
These should be fixed by #603.
@akx no worries, glad you're able to follow up. Thanks for the effort in the first place!
Thank you so much @akx and @jaap3! No trouble at all, I'm very grateful for all of your work. Kind regards!
This PR gates SVG support behind the
[svg]
install extra.With that, there is no hard dependency on
svglib
andreportlab
(see #591).The
vil_image
generator will emit a warning if it fails to import the VIL bits.