pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/py-weasyprint py-weasyprint: updated to 53.4
details: https://anonhg.NetBSD.org/pkgsrc/rev/947c1ae2f28a
branches: trunk
changeset: 769783:947c1ae2f28a
user: adam <adam%pkgsrc.org@localhost>
date: Fri Nov 19 21:53:29 2021 +0000
description:
py-weasyprint: updated to 53.4
Version 53.4
------------
Bug fixes:
* Fix background on pages with a bleed property
* Use SVG width/height as inner size when no viewBox is given
* Only enable letter- and word-spacing when needed
* Don’t display inputs with "hidden" type
* Allow quotes in url() syntax for SVG,
* Use better approximations for font ascent and descent values in SVG
* Fix images embedded from multiple pages
* Use a better hash for fonts to avoid collisions
* Set SVG ratio when width and height are 0
Version 53.3
------------
Bug fixes:
* Fix crashes and malformed PDF files
* Handle cx and cy in SVG rotations
* Fix marker-start being drawn on mid vertices
Version 53.2
------------
New features:
* Re-add the ``make_bookmark_tree()`` method
Bug fixes:
* Fix package deployed on PyPI
Version 53.1
------------
Bug fixes:
* Don’t crash when leaders are in floats
* Embed images once
* Fix crash with SVG intrinsic ratio
Documentation:
* Include ``weasyprint.tools`` removal in documentation
Version 53.0
------------
This version also includes the changes from unstable b1 and b2 versions listed
below.
Dependencies:
* Pango 1.44.0+ is now needed.
* pydyf 0.0.3+ is now needed.
* fontTools 4.0.0+ is now needed.
* html5lib 1.0.1+ is now needed.
API changes:
* ``FontConfiguration`` is now in the ``weasyprint.text.fonts`` module.
* ``--format`` and ``--resolution`` options have been deprecated, PDF is the
only output format supported.
* ``--optimize-images`` option has been deprecated and replaced by
``--optimize-size``, allowing ``images``, ``fonts``, ``all`` and ``none``
values.
* ``weasyprint.tools`` have been removed.
Performance:
* Improve image management
New features:
* Support basic "clipPath" in SVG
Bug fixes:
* Render use path in SVG
* Fix fill color on use path in SVG
* Handle stroke-opacity and fill-opacity
* Fix crash with borders whose widths are in em
* Fix crash on draw_pattern
* Handle stacking contexts put in contexts by previous generations
* Catch font subsetting errors
* Fix how x and y attributes are handled in SVG
* Don’t crash when use tags reference non-existing element
* Handle font collections
* Handle x and y attributes in use tags
Documentation:
* Add documentation for installation
diffstat:
print/py-weasyprint/Makefile | 22 +-
print/py-weasyprint/PLIST | 223 +++++-----------------------
print/py-weasyprint/distinfo | 9 +-
print/py-weasyprint/patches/patch-setup.py | 15 +
4 files changed, 72 insertions(+), 197 deletions(-)
diffs (truncated from 339 to 300 lines):
diff -r 4cd6f49560c5 -r 947c1ae2f28a print/py-weasyprint/Makefile
--- a/print/py-weasyprint/Makefile Fri Nov 19 19:42:18 2021 +0000
+++ b/print/py-weasyprint/Makefile Fri Nov 19 21:53:29 2021 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.30 2021/04/27 05:09:57 adam Exp $
+# $NetBSD: Makefile,v 1.31 2021/11/19 21:53:29 adam Exp $
-DISTNAME= WeasyPrint-52.5
-PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
+DISTNAME= weasyprint-53.4
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= print python
-MASTER_SITES= ${MASTER_SITE_PYPI:=W/WeasyPrint/}
+MASTER_SITES= ${MASTER_SITE_PYPI:=w/weasyprint/}
MAINTAINER= kleink%NetBSD.org@localhost
HOMEPAGE= https://weasyprint.org/
@@ -13,26 +13,28 @@
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}-cairosvg>=2.4.0:../../converters/py-cairosvg
-DEPENDS+= ${PYPKGPREFIX}-cairocffi>=0.9.0:../../graphics/py-cairocffi
DEPENDS+= ${PYPKGPREFIX}-cffi>=0.6:../../devel/py-cffi
DEPENDS+= ${PYPKGPREFIX}-cssselect2>=0.1:../../textproc/py-cssselect2
-DEPENDS+= ${PYPKGPREFIX}-html5lib>=0.999999999:../../textproc/py-html5lib
+DEPENDS+= ${PYPKGPREFIX}-fonttools>=4.0.0:../../fonts/py-fonttools
+DEPENDS+= ${PYPKGPREFIX}-html5lib>=1.0.1:../../textproc/py-html5lib
+DEPENDS+= ${PYPKGPREFIX}-pydyf>=0.0.3:../../print/py-pydyf
DEPENDS+= ${PYPKGPREFIX}-pyphen>=0.9.1:../../textproc/py-pyphen
-DEPENDS+= ${PYPKGPREFIX}-setuptools>=39.2.0:../../devel/py-setuptools
DEPENDS+= ${PYPKGPREFIX}-tinycss2>=1.0.0:../../textproc/py-tinycss2
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8
TEST_DEPENDS+= ${PYPKGPREFIX}-test-isort-[0-9]*:../../devel/py-test-isort
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
-PYTHON_VERSIONS_INCOMPATIBLE= 27
+USE_LANGUAGES= # none
-USE_LANGUAGES= # none
+PYTHON_VERSIONS_INCOMPATIBLE= 27
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} weasyprint weasyprint-${PYVERSSUFFIX} || ${TRUE}
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 4cd6f49560c5 -r 947c1ae2f28a print/py-weasyprint/PLIST
--- a/print/py-weasyprint/PLIST Fri Nov 19 19:42:18 2021 +0000
+++ b/print/py-weasyprint/PLIST Fri Nov 19 21:53:29 2021 +0000
@@ -1,13 +1,11 @@
-@comment $NetBSD: PLIST,v 1.7 2021/04/27 05:09:57 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2021/11/19 21:53:29 adam 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}/not-zip-safe
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
-${PYSITELIB}/weasyprint/VERSION
${PYSITELIB}/weasyprint/__init__.py
${PYSITELIB}/weasyprint/__init__.pyc
${PYSITELIB}/weasyprint/__init__.pyo
@@ -56,9 +54,6 @@
${PYSITELIB}/weasyprint/draw.py
${PYSITELIB}/weasyprint/draw.pyc
${PYSITELIB}/weasyprint/draw.pyo
-${PYSITELIB}/weasyprint/fonts.py
-${PYSITELIB}/weasyprint/fonts.pyc
-${PYSITELIB}/weasyprint/fonts.pyo
${PYSITELIB}/weasyprint/formatting_structure/boxes.py
${PYSITELIB}/weasyprint/formatting_structure/boxes.pyc
${PYSITELIB}/weasyprint/formatting_structure/boxes.pyo
@@ -116,186 +111,48 @@
${PYSITELIB}/weasyprint/logger.py
${PYSITELIB}/weasyprint/logger.pyc
${PYSITELIB}/weasyprint/logger.pyo
-${PYSITELIB}/weasyprint/pdf.py
-${PYSITELIB}/weasyprint/pdf.pyc
-${PYSITELIB}/weasyprint/pdf.pyo
${PYSITELIB}/weasyprint/stacking.py
${PYSITELIB}/weasyprint/stacking.pyc
${PYSITELIB}/weasyprint/stacking.pyo
-${PYSITELIB}/weasyprint/tests/__init__.py
-${PYSITELIB}/weasyprint/tests/__init__.pyc
-${PYSITELIB}/weasyprint/tests/__init__.pyo
-${PYSITELIB}/weasyprint/tests/resources/AHEM____.TTF
-${PYSITELIB}/weasyprint/tests/resources/acid2-reference.html
-${PYSITELIB}/weasyprint/tests/resources/acid2-test.html
-${PYSITELIB}/weasyprint/tests/resources/blue.jpg
-${PYSITELIB}/weasyprint/tests/resources/doc1.html
-${PYSITELIB}/weasyprint/tests/resources/doc1_UTF-16BE.html
-${PYSITELIB}/weasyprint/tests/resources/icon.png
-${PYSITELIB}/weasyprint/tests/resources/latin1-test.css
-${PYSITELIB}/weasyprint/tests/resources/logo_small.png
-${PYSITELIB}/weasyprint/tests/resources/mini_ua.css
-${PYSITELIB}/weasyprint/tests/resources/pattern.gif
-${PYSITELIB}/weasyprint/tests/resources/pattern.palette.png
-${PYSITELIB}/weasyprint/tests/resources/pattern.png
-${PYSITELIB}/weasyprint/tests/resources/pattern.svg
-${PYSITELIB}/weasyprint/tests/resources/really-a-png.svg
-${PYSITELIB}/weasyprint/tests/resources/really-a-svg.png
-${PYSITELIB}/weasyprint/tests/resources/sheet2.css
-${PYSITELIB}/weasyprint/tests/resources/sub_directory/sheet1.css
-${PYSITELIB}/weasyprint/tests/resources/user.css
-${PYSITELIB}/weasyprint/tests/resources/utf8-test.css
-${PYSITELIB}/weasyprint/tests/resources/weasyprint.otf
-${PYSITELIB}/weasyprint/tests/test_acid2.py
-${PYSITELIB}/weasyprint/tests/test_acid2.pyc
-${PYSITELIB}/weasyprint/tests/test_acid2.pyo
-${PYSITELIB}/weasyprint/tests/test_api.py
-${PYSITELIB}/weasyprint/tests/test_api.pyc
-${PYSITELIB}/weasyprint/tests/test_api.pyo
-${PYSITELIB}/weasyprint/tests/test_boxes.py
-${PYSITELIB}/weasyprint/tests/test_boxes.pyc
-${PYSITELIB}/weasyprint/tests/test_boxes.pyo
-${PYSITELIB}/weasyprint/tests/test_counters.py
-${PYSITELIB}/weasyprint/tests/test_counters.pyc
-${PYSITELIB}/weasyprint/tests/test_counters.pyo
-${PYSITELIB}/weasyprint/tests/test_css.py
-${PYSITELIB}/weasyprint/tests/test_css.pyc
-${PYSITELIB}/weasyprint/tests/test_css.pyo
-${PYSITELIB}/weasyprint/tests/test_css_descriptors.py
-${PYSITELIB}/weasyprint/tests/test_css_descriptors.pyc
-${PYSITELIB}/weasyprint/tests/test_css_descriptors.pyo
-${PYSITELIB}/weasyprint/tests/test_css_validation.py
-${PYSITELIB}/weasyprint/tests/test_css_validation.pyc
-${PYSITELIB}/weasyprint/tests/test_css_validation.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/__init__.py
-${PYSITELIB}/weasyprint/tests/test_draw/__init__.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/__init__.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_background.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_background.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_background.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_before_after.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_before_after.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_before_after.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_box.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_box.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_box.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_column.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_column.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_column.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_current_color.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_current_color.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_current_color.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_float.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_float.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_float.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_gradient.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_gradient.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_gradient.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_image.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_image.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_image.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_list.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_list.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_list.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_opacity.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_opacity.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_opacity.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_overflow.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_overflow.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_overflow.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_table.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_table.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_table.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_text.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_text.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_text.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_transform.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_transform.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_transform.pyo
-${PYSITELIB}/weasyprint/tests/test_draw/test_visibility.py
-${PYSITELIB}/weasyprint/tests/test_draw/test_visibility.pyc
-${PYSITELIB}/weasyprint/tests/test_draw/test_visibility.pyo
-${PYSITELIB}/weasyprint/tests/test_float.py
-${PYSITELIB}/weasyprint/tests/test_float.pyc
-${PYSITELIB}/weasyprint/tests/test_float.pyo
-${PYSITELIB}/weasyprint/tests/test_fonts.py
-${PYSITELIB}/weasyprint/tests/test_fonts.pyc
-${PYSITELIB}/weasyprint/tests/test_fonts.pyo
-${PYSITELIB}/weasyprint/tests/test_layout/__init__.py
-${PYSITELIB}/weasyprint/tests/test_layout/__init__.pyc
-${PYSITELIB}/weasyprint/tests/test_layout/__init__.pyo
-${PYSITELIB}/weasyprint/tests/test_layout/test_block.py
-${PYSITELIB}/weasyprint/tests/test_layout/test_block.pyc
-${PYSITELIB}/weasyprint/tests/test_layout/test_block.pyo
-${PYSITELIB}/weasyprint/tests/test_layout/test_column.py
-${PYSITELIB}/weasyprint/tests/test_layout/test_column.pyc
-${PYSITELIB}/weasyprint/tests/test_layout/test_column.pyo
-${PYSITELIB}/weasyprint/tests/test_layout/test_flex.py
-${PYSITELIB}/weasyprint/tests/test_layout/test_flex.pyc
-${PYSITELIB}/weasyprint/tests/test_layout/test_flex.pyo
-${PYSITELIB}/weasyprint/tests/test_layout/test_image.py
-${PYSITELIB}/weasyprint/tests/test_layout/test_image.pyc
-${PYSITELIB}/weasyprint/tests/test_layout/test_image.pyo
-${PYSITELIB}/weasyprint/tests/test_layout/test_inline.py
-${PYSITELIB}/weasyprint/tests/test_layout/test_inline.pyc
-${PYSITELIB}/weasyprint/tests/test_layout/test_inline.pyo
-${PYSITELIB}/weasyprint/tests/test_layout/test_inline_block.py
-${PYSITELIB}/weasyprint/tests/test_layout/test_inline_block.pyc
-${PYSITELIB}/weasyprint/tests/test_layout/test_inline_block.pyo
-${PYSITELIB}/weasyprint/tests/test_layout/test_list.py
-${PYSITELIB}/weasyprint/tests/test_layout/test_list.pyc
-${PYSITELIB}/weasyprint/tests/test_layout/test_list.pyo
-${PYSITELIB}/weasyprint/tests/test_layout/test_page.py
-${PYSITELIB}/weasyprint/tests/test_layout/test_page.pyc
-${PYSITELIB}/weasyprint/tests/test_layout/test_page.pyo
-${PYSITELIB}/weasyprint/tests/test_layout/test_position.py
-${PYSITELIB}/weasyprint/tests/test_layout/test_position.pyc
-${PYSITELIB}/weasyprint/tests/test_layout/test_position.pyo
-${PYSITELIB}/weasyprint/tests/test_layout/test_shrink_to_fit.py
-${PYSITELIB}/weasyprint/tests/test_layout/test_shrink_to_fit.pyc
-${PYSITELIB}/weasyprint/tests/test_layout/test_shrink_to_fit.pyo
-${PYSITELIB}/weasyprint/tests/test_layout/test_table.py
-${PYSITELIB}/weasyprint/tests/test_layout/test_table.pyc
-${PYSITELIB}/weasyprint/tests/test_layout/test_table.pyo
-${PYSITELIB}/weasyprint/tests/test_pdf.py
-${PYSITELIB}/weasyprint/tests/test_pdf.pyc
-${PYSITELIB}/weasyprint/tests/test_pdf.pyo
-${PYSITELIB}/weasyprint/tests/test_presentational_hints.py
-${PYSITELIB}/weasyprint/tests/test_presentational_hints.pyc
-${PYSITELIB}/weasyprint/tests/test_presentational_hints.pyo
-${PYSITELIB}/weasyprint/tests/test_stacking.py
-${PYSITELIB}/weasyprint/tests/test_stacking.pyc
-${PYSITELIB}/weasyprint/tests/test_stacking.pyo
-${PYSITELIB}/weasyprint/tests/test_target.py
-${PYSITELIB}/weasyprint/tests/test_target.pyc
-${PYSITELIB}/weasyprint/tests/test_target.pyo
-${PYSITELIB}/weasyprint/tests/test_text.py
-${PYSITELIB}/weasyprint/tests/test_text.pyc
-${PYSITELIB}/weasyprint/tests/test_text.pyo
-${PYSITELIB}/weasyprint/tests/test_tools.py
-${PYSITELIB}/weasyprint/tests/test_tools.pyc
-${PYSITELIB}/weasyprint/tests/test_tools.pyo
-${PYSITELIB}/weasyprint/tests/test_unicode.py
-${PYSITELIB}/weasyprint/tests/test_unicode.pyc
-${PYSITELIB}/weasyprint/tests/test_unicode.pyo
-${PYSITELIB}/weasyprint/tests/test_variables.py
-${PYSITELIB}/weasyprint/tests/test_variables.pyc
-${PYSITELIB}/weasyprint/tests/test_variables.pyo
-${PYSITELIB}/weasyprint/tests/testing_utils.py
-${PYSITELIB}/weasyprint/tests/testing_utils.pyc
-${PYSITELIB}/weasyprint/tests/testing_utils.pyo
-${PYSITELIB}/weasyprint/text.py
-${PYSITELIB}/weasyprint/text.pyc
-${PYSITELIB}/weasyprint/text.pyo
-${PYSITELIB}/weasyprint/tools/__init__.py
-${PYSITELIB}/weasyprint/tools/__init__.pyc
-${PYSITELIB}/weasyprint/tools/__init__.pyo
-${PYSITELIB}/weasyprint/tools/navigator.py
-${PYSITELIB}/weasyprint/tools/navigator.pyc
-${PYSITELIB}/weasyprint/tools/navigator.pyo
-${PYSITELIB}/weasyprint/tools/renderer.py
-${PYSITELIB}/weasyprint/tools/renderer.pyc
-${PYSITELIB}/weasyprint/tools/renderer.pyo
+${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
Home |
Main Index |
Thread Index |
Old Index