mkpdfs-mkdocs-plugin
mkpdfs-mkdocs-plugin copied to clipboard
Support WeasyPrint 53.0
WeasyPrint 53.0 has changed the location of the module weasyprint.fonts
file. Previously it was in .../weasyprint/fonts.py
, but now it is in .../weasyprint/text/fonts.py
.
Could you please change the plugin to make it suitable for this version?
Since this is a breaking change for most systems (weasyprint 53.0 now requires at least libpango >=1.44) I'd argue that the best way of handling this would be pinning weasy to max v52.5 and including this into a patch release.
After that, for a new major release one could require Weasy >= 53 (which would not be downwards compatible of course)
At least in my fork I pinned the weasyprint version in setup.py for now since I cannot afford to upgrade the rest of my environment.