diff options
author | kleink <kleink@pkgsrc.org> | 2022-05-23 05:22:13 +0000 |
---|---|---|
committer | kleink <kleink@pkgsrc.org> | 2022-05-23 05:22:13 +0000 |
commit | fbf89a38a8809279b7a004164bd51eeb55740619 (patch) | |
tree | de7735c5f525247cf1d2248978a4a32af2dbfd22 /print | |
parent | 65342bd192d703105d247cad8b3ad507859a2050 (diff) | |
download | pkgsrc-fbf89a38a8809279b7a004164bd51eeb55740619.tar.gz |
py-weasyprint: Update to 55.0.
Version 55.0
------------
Released on 2022-05-12.
This version also includes the changes from unstable b1 version listed
below.
Bug fixes:
* Fix the vertical position and available height of absolute boxes
* Minor fixes for multi-column layout
* Don’t stop rendering SVG when CSS parsing fails
* Fix sequential footnotes that could disappear when overflowing
* Fix position of absolute boxes with right-to-left direction
* Fix relative paths for SVG files stored as data URLs
Version 55.0b1
--------------
Released on 2022-04-15.
**This version is experimental, don't use it in production. If you find bugs,
please report them!**
Dependencies:
* Python 3.7+ is now needed, Python 3.6 is not supported anymore
Features:
* Support ``word-break: break-all``
* Support column breaks
* Allow reproducible PDF generation
Bug fixes:
* Handle ``inherit`` in shorthand properties
* Space out no-repeat patterns
* Avoid invalid PDF operators when drawing SVG text
* Don’t output footnotes before their call sites
* Prevent infinite loops in multi-column layout
* Fix position of absolute boxes in right-to-left contexts
* Draw borders around absolute replaced boxes
* Fix skip stacks for columns
* Better support of nested ``text-decoration`` properties
* Fix absolute blocks in lines
* Clear adjoining margins when a container’s child doesn’t fit
Performance:
* Improve tests speed
* Improve fonts management
* Improve column layout speed
* Cache ``ch`` and ``ex`` units calculations
Version 54.3
------------
Released on 2022-04-04.
Bug fixes:
* Support position: absolute in footnotes
* Fix discarded text-align values
Version 54.2
------------
Released on 2022-02-27.
Bug fixes:
* Always store parent blocks children as lists
* Fix float rounding errors
* Ignore unknown glyphs
* Fix line break when breaks occur between a nbsp and an inline block
* Always set the child index
* Fix patterns with use tags
Version 54.1
------------
Released on 2022-01-31.
Features:
* Handle break-inside: avoid on tr tags
Bug fixes:
* Handle absolute children in running elements
* Handle invalid values in text-align
* Handle absolute flex boxes
Version 54.0
------------
Released on 2022-01-08.
This version also includes the changes from unstable b1 version listed
below.
Bug fixes:
* Always use absolute paths to get hrefs in SVG
* Fix many rendering problems of broken tables
* Fix support of fonts with SVG emojis
Version 54.0b1
--------------
Released on 2021-12-13.
**This version is experimental, don't use it in production. If you find bugs,
please report them!**
Dependencies:
* html5lib 1.1+ is now needed.
New features:
* Support footnotes, with financial support from Code & Co.
* Handle parallel flows for floats, absolutes, table-cells
* Support ``text-align-last`` and ``text-align-all`` properties
* Draw SVG and PNG emojis
* Support ``overflow-wrap: anywhere``
* Add environment variable to set DLL folder on Windows
Performance:
* Cache SVG ``use`` tags
* Encode non-JPEG images as PNGs instead of JPEG2000s
Bug fixes:
* Don’t use ``text-transform`` text for content-based uses
* Don’t serialize and parse again inline SVG files
* Correctly handle whitespaces in bookmark labels
* Fix column height with ``column-span`` content
* Fix absolutely positioned boxes in duplicated pages
* Fix ``target-counter`` attribute in flex items
* Don’t draw empty glyphs
* Don’t crash when font size is really small
Documentation:
* Fix typo
Packaging:
* The source package does not include a ``setup.py`` file anymore.
Diffstat (limited to 'print')
-rw-r--r-- | print/py-weasyprint/Makefile | 12 | ||||
-rw-r--r-- | print/py-weasyprint/PLIST | 101 | ||||
-rw-r--r-- | print/py-weasyprint/distinfo | 9 | ||||
-rw-r--r-- | print/py-weasyprint/patches/patch-setup.py | 15 |
4 files changed, 40 insertions, 97 deletions
diff --git a/print/py-weasyprint/Makefile b/print/py-weasyprint/Makefile index 1dace518f67..29c9b051872 100644 --- a/print/py-weasyprint/Makefile +++ b/print/py-weasyprint/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.35 2022/01/05 15:41:19 wiz Exp $ +# $NetBSD: Makefile,v 1.36 2022/05/23 05:22:13 kleink Exp $ -DISTNAME= weasyprint-53.4 +DISTNAME= weasyprint-55.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} -PKGREVISION= 2 CATEGORIES= print python MASTER_SITES= ${MASTER_SITE_PYPI:=w/weasyprint/} @@ -11,13 +10,14 @@ HOMEPAGE= https://weasyprint.org/ COMMENT= Converts HTML/CSS documents to PDF LICENSE= modified-bsd +BUILD_DEPENDS+= ${PYPKGPREFIX}-flit_core-[0-9]*:../../devel/py-flit_core BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner DEPENDS+= pango>=1.29.3:../../devel/pango DEPENDS+= ${PYPKGPREFIX}-Pillow>=4.0.0:../../graphics/py-Pillow DEPENDS+= ${PYPKGPREFIX}-cffi>=0.6:../../devel/py-cffi DEPENDS+= ${PYPKGPREFIX}-cssselect2>=0.1:../../textproc/py-cssselect2 DEPENDS+= ${PYPKGPREFIX}-fonttools>=4.0.0:../../fonts/py-fonttools -DEPENDS+= ${PYPKGPREFIX}-html5lib>=1.0.1:../../textproc/py-html5lib +DEPENDS+= ${PYPKGPREFIX}-html5lib>=1.1:../../textproc/py-html5lib DEPENDS+= ${PYPKGPREFIX}-pydyf>=0.0.3:../../print/py-pydyf DEPENDS+= ${PYPKGPREFIX}-pyphen>=0.9.1:../../textproc/py-pyphen DEPENDS+= ${PYPKGPREFIX}-tinycss2>=1.0.0:../../textproc/py-tinycss2 @@ -30,8 +30,6 @@ USE_LANGUAGES= # none PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-fonttools -USE_PKG_RESOURCES= yes - post-install: cd ${DESTDIR}${PREFIX}/bin && \ ${MV} weasyprint weasyprint-${PYVERSSUFFIX} || ${TRUE} @@ -39,5 +37,5 @@ post-install: do-test: cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests -.include "../../lang/python/egg.mk" +.include "../../lang/python/wheel.mk" .include "../../mk/bsd.pkg.mk" diff --git a/print/py-weasyprint/PLIST b/print/py-weasyprint/PLIST index 5dff539c777..a4fe6708db6 100644 --- a/print/py-weasyprint/PLIST +++ b/print/py-weasyprint/PLIST @@ -1,158 +1,119 @@ -@comment $NetBSD: PLIST,v 1.8 2021/11/19 21:53:29 adam Exp $ +@comment $NetBSD: PLIST,v 1.9 2022/05/23 05:22:13 kleink Exp $ bin/weasyprint-${PYVERSSUFFIX} -${PYSITELIB}/${EGG_INFODIR}/PKG-INFO -${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt -${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt -${PYSITELIB}/${EGG_INFODIR}/entry_points.txt -${PYSITELIB}/${EGG_INFODIR}/requires.txt -${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER +${PYSITELIB}/${WHEEL_INFODIR}/LICENSE +${PYSITELIB}/${WHEEL_INFODIR}/METADATA +${PYSITELIB}/${WHEEL_INFODIR}/RECORD +${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED +${PYSITELIB}/${WHEEL_INFODIR}/WHEEL +${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json +${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt ${PYSITELIB}/weasyprint/__init__.py ${PYSITELIB}/weasyprint/__init__.pyc -${PYSITELIB}/weasyprint/__init__.pyo ${PYSITELIB}/weasyprint/__main__.py ${PYSITELIB}/weasyprint/__main__.pyc -${PYSITELIB}/weasyprint/__main__.pyo ${PYSITELIB}/weasyprint/css/__init__.py ${PYSITELIB}/weasyprint/css/__init__.pyc -${PYSITELIB}/weasyprint/css/__init__.pyo ${PYSITELIB}/weasyprint/css/computed_values.py ${PYSITELIB}/weasyprint/css/computed_values.pyc -${PYSITELIB}/weasyprint/css/computed_values.pyo ${PYSITELIB}/weasyprint/css/counters.py ${PYSITELIB}/weasyprint/css/counters.pyc -${PYSITELIB}/weasyprint/css/counters.pyo ${PYSITELIB}/weasyprint/css/html5_ph.css ${PYSITELIB}/weasyprint/css/html5_ua.css ${PYSITELIB}/weasyprint/css/media_queries.py ${PYSITELIB}/weasyprint/css/media_queries.pyc -${PYSITELIB}/weasyprint/css/media_queries.pyo ${PYSITELIB}/weasyprint/css/properties.py ${PYSITELIB}/weasyprint/css/properties.pyc -${PYSITELIB}/weasyprint/css/properties.pyo ${PYSITELIB}/weasyprint/css/targets.py ${PYSITELIB}/weasyprint/css/targets.pyc -${PYSITELIB}/weasyprint/css/targets.pyo ${PYSITELIB}/weasyprint/css/tests_ua.css ${PYSITELIB}/weasyprint/css/utils.py ${PYSITELIB}/weasyprint/css/utils.pyc -${PYSITELIB}/weasyprint/css/utils.pyo ${PYSITELIB}/weasyprint/css/validation/__init__.py ${PYSITELIB}/weasyprint/css/validation/__init__.pyc -${PYSITELIB}/weasyprint/css/validation/__init__.pyo ${PYSITELIB}/weasyprint/css/validation/descriptors.py ${PYSITELIB}/weasyprint/css/validation/descriptors.pyc -${PYSITELIB}/weasyprint/css/validation/descriptors.pyo ${PYSITELIB}/weasyprint/css/validation/expanders.py ${PYSITELIB}/weasyprint/css/validation/expanders.pyc -${PYSITELIB}/weasyprint/css/validation/expanders.pyo ${PYSITELIB}/weasyprint/css/validation/properties.py ${PYSITELIB}/weasyprint/css/validation/properties.pyc -${PYSITELIB}/weasyprint/css/validation/properties.pyo ${PYSITELIB}/weasyprint/document.py ${PYSITELIB}/weasyprint/document.pyc -${PYSITELIB}/weasyprint/document.pyo ${PYSITELIB}/weasyprint/draw.py ${PYSITELIB}/weasyprint/draw.pyc -${PYSITELIB}/weasyprint/draw.pyo ${PYSITELIB}/weasyprint/formatting_structure/boxes.py ${PYSITELIB}/weasyprint/formatting_structure/boxes.pyc -${PYSITELIB}/weasyprint/formatting_structure/boxes.pyo ${PYSITELIB}/weasyprint/formatting_structure/build.py ${PYSITELIB}/weasyprint/formatting_structure/build.pyc -${PYSITELIB}/weasyprint/formatting_structure/build.pyo ${PYSITELIB}/weasyprint/html.py ${PYSITELIB}/weasyprint/html.pyc -${PYSITELIB}/weasyprint/html.pyo ${PYSITELIB}/weasyprint/images.py ${PYSITELIB}/weasyprint/images.pyc -${PYSITELIB}/weasyprint/images.pyo ${PYSITELIB}/weasyprint/layout/__init__.py ${PYSITELIB}/weasyprint/layout/__init__.pyc -${PYSITELIB}/weasyprint/layout/__init__.pyo ${PYSITELIB}/weasyprint/layout/absolute.py ${PYSITELIB}/weasyprint/layout/absolute.pyc -${PYSITELIB}/weasyprint/layout/absolute.pyo -${PYSITELIB}/weasyprint/layout/backgrounds.py -${PYSITELIB}/weasyprint/layout/backgrounds.pyc -${PYSITELIB}/weasyprint/layout/backgrounds.pyo -${PYSITELIB}/weasyprint/layout/blocks.py -${PYSITELIB}/weasyprint/layout/blocks.pyc -${PYSITELIB}/weasyprint/layout/blocks.pyo -${PYSITELIB}/weasyprint/layout/columns.py -${PYSITELIB}/weasyprint/layout/columns.pyc -${PYSITELIB}/weasyprint/layout/columns.pyo +${PYSITELIB}/weasyprint/layout/background.py +${PYSITELIB}/weasyprint/layout/background.pyc +${PYSITELIB}/weasyprint/layout/block.py +${PYSITELIB}/weasyprint/layout/block.pyc +${PYSITELIB}/weasyprint/layout/column.py +${PYSITELIB}/weasyprint/layout/column.pyc ${PYSITELIB}/weasyprint/layout/flex.py ${PYSITELIB}/weasyprint/layout/flex.pyc -${PYSITELIB}/weasyprint/layout/flex.pyo ${PYSITELIB}/weasyprint/layout/float.py ${PYSITELIB}/weasyprint/layout/float.pyc -${PYSITELIB}/weasyprint/layout/float.pyo -${PYSITELIB}/weasyprint/layout/inlines.py -${PYSITELIB}/weasyprint/layout/inlines.pyc -${PYSITELIB}/weasyprint/layout/inlines.pyo +${PYSITELIB}/weasyprint/layout/inline.py +${PYSITELIB}/weasyprint/layout/inline.pyc +${PYSITELIB}/weasyprint/layout/leader.py +${PYSITELIB}/weasyprint/layout/leader.pyc ${PYSITELIB}/weasyprint/layout/min_max.py ${PYSITELIB}/weasyprint/layout/min_max.pyc -${PYSITELIB}/weasyprint/layout/min_max.pyo -${PYSITELIB}/weasyprint/layout/pages.py -${PYSITELIB}/weasyprint/layout/pages.pyc -${PYSITELIB}/weasyprint/layout/pages.pyo -${PYSITELIB}/weasyprint/layout/percentages.py -${PYSITELIB}/weasyprint/layout/percentages.pyc -${PYSITELIB}/weasyprint/layout/percentages.pyo +${PYSITELIB}/weasyprint/layout/page.py +${PYSITELIB}/weasyprint/layout/page.pyc +${PYSITELIB}/weasyprint/layout/percent.py +${PYSITELIB}/weasyprint/layout/percent.pyc ${PYSITELIB}/weasyprint/layout/preferred.py ${PYSITELIB}/weasyprint/layout/preferred.pyc -${PYSITELIB}/weasyprint/layout/preferred.pyo ${PYSITELIB}/weasyprint/layout/replaced.py ${PYSITELIB}/weasyprint/layout/replaced.pyc -${PYSITELIB}/weasyprint/layout/replaced.pyo -${PYSITELIB}/weasyprint/layout/tables.py -${PYSITELIB}/weasyprint/layout/tables.pyc -${PYSITELIB}/weasyprint/layout/tables.pyo +${PYSITELIB}/weasyprint/layout/table.py +${PYSITELIB}/weasyprint/layout/table.pyc +${PYSITELIB}/weasyprint/links.py +${PYSITELIB}/weasyprint/links.pyc ${PYSITELIB}/weasyprint/logger.py ${PYSITELIB}/weasyprint/logger.pyc -${PYSITELIB}/weasyprint/logger.pyo +${PYSITELIB}/weasyprint/matrix.py +${PYSITELIB}/weasyprint/matrix.pyc ${PYSITELIB}/weasyprint/stacking.py ${PYSITELIB}/weasyprint/stacking.pyc -${PYSITELIB}/weasyprint/stacking.pyo +${PYSITELIB}/weasyprint/stream.py +${PYSITELIB}/weasyprint/stream.pyc ${PYSITELIB}/weasyprint/svg/__init__.py ${PYSITELIB}/weasyprint/svg/__init__.pyc -${PYSITELIB}/weasyprint/svg/__init__.pyo ${PYSITELIB}/weasyprint/svg/bounding_box.py ${PYSITELIB}/weasyprint/svg/bounding_box.pyc -${PYSITELIB}/weasyprint/svg/bounding_box.pyo ${PYSITELIB}/weasyprint/svg/css.py ${PYSITELIB}/weasyprint/svg/css.pyc -${PYSITELIB}/weasyprint/svg/css.pyo ${PYSITELIB}/weasyprint/svg/defs.py ${PYSITELIB}/weasyprint/svg/defs.pyc -${PYSITELIB}/weasyprint/svg/defs.pyo ${PYSITELIB}/weasyprint/svg/images.py ${PYSITELIB}/weasyprint/svg/images.pyc -${PYSITELIB}/weasyprint/svg/images.pyo ${PYSITELIB}/weasyprint/svg/path.py ${PYSITELIB}/weasyprint/svg/path.pyc -${PYSITELIB}/weasyprint/svg/path.pyo ${PYSITELIB}/weasyprint/svg/shapes.py ${PYSITELIB}/weasyprint/svg/shapes.pyc -${PYSITELIB}/weasyprint/svg/shapes.pyo ${PYSITELIB}/weasyprint/svg/text.py ${PYSITELIB}/weasyprint/svg/text.pyc -${PYSITELIB}/weasyprint/svg/text.pyo ${PYSITELIB}/weasyprint/svg/utils.py ${PYSITELIB}/weasyprint/svg/utils.pyc -${PYSITELIB}/weasyprint/svg/utils.pyo ${PYSITELIB}/weasyprint/text/constants.py ${PYSITELIB}/weasyprint/text/constants.pyc -${PYSITELIB}/weasyprint/text/constants.pyo ${PYSITELIB}/weasyprint/text/ffi.py ${PYSITELIB}/weasyprint/text/ffi.pyc -${PYSITELIB}/weasyprint/text/ffi.pyo ${PYSITELIB}/weasyprint/text/fonts.py ${PYSITELIB}/weasyprint/text/fonts.pyc -${PYSITELIB}/weasyprint/text/fonts.pyo ${PYSITELIB}/weasyprint/text/line_break.py ${PYSITELIB}/weasyprint/text/line_break.pyc -${PYSITELIB}/weasyprint/text/line_break.pyo ${PYSITELIB}/weasyprint/urls.py ${PYSITELIB}/weasyprint/urls.pyc -${PYSITELIB}/weasyprint/urls.pyo diff --git a/print/py-weasyprint/distinfo b/print/py-weasyprint/distinfo index b407ec7c70f..96019d0b598 100644 --- a/print/py-weasyprint/distinfo +++ b/print/py-weasyprint/distinfo @@ -1,6 +1,5 @@ -$NetBSD: distinfo,v 1.24 2021/11/19 21:53:29 adam Exp $ +$NetBSD: distinfo,v 1.25 2022/05/23 05:22:13 kleink Exp $ -BLAKE2s (weasyprint-53.4.tar.gz) = 9c1c79fd71d4ff02fad6e0c24a8a3ebc3d2149c7f5a22957bb9255a0bbdeff7c -SHA512 (weasyprint-53.4.tar.gz) = 7fcdedbecfa13434217b08491db62b9afd3e716d4ac6378490a04120c407ab1b20883227c32a77c9bd8c8dd7324fb505920264db3c9105d712fa4d7dcf3a1578 -Size (weasyprint-53.4.tar.gz) = 388163 bytes -SHA1 (patch-setup.py) = 73c03a0dc5ed823bb94a4a5fb22f7b82c5d8426b +BLAKE2s (weasyprint-55.0.tar.gz) = d8787f4da3c3de688a54c3544ce228e163d2eeb0bfe1334183ed495796bb00d5 +SHA512 (weasyprint-55.0.tar.gz) = 96cc6de5af86da47aa0b5a84c3f00679690774574f3370ca319afe77f3eb9c9725f3b0a6cbddf589f23f444972bc77b07cce7e27ee2c466484636b3cb30250a3 +Size (weasyprint-55.0.tar.gz) = 410970 bytes diff --git a/print/py-weasyprint/patches/patch-setup.py b/print/py-weasyprint/patches/patch-setup.py deleted file mode 100644 index 952810677f8..00000000000 --- a/print/py-weasyprint/patches/patch-setup.py +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-setup.py,v 1.5 2021/11/19 21:53:29 adam Exp $ - -Use setuptools. - ---- setup.py.orig 2021-11-19 14:22:46.000000000 +0000 -+++ setup.py -@@ -1,7 +1,7 @@ - #!/usr/bin/env python - # setup.py generated by flit for tools that don't yet use PEP 517 - --from distutils.core import setup -+from setuptools import setup - - packages = \ - ['weasyprint', |