mkpdfs-mkdocs-plugin icon indicating copy to clipboard operation
mkpdfs-mkdocs-plugin copied to clipboard

Support WeasyPrint 53.0

Open xkww3n opened this issue 3 years ago • 1 comments

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?

xkww3n avatar Aug 15 '21 06:08 xkww3n

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.

adamkusmirek avatar Aug 16 '21 17:08 adamkusmirek