Fri Jan 5 11:35:07 2018 UTC ()
py-weasyprint: updated to 0.42

Version 0.42
New features:
* Support relative file URIs when using CLI.

Bug fixes:
* Fix slow performance for pre-formatted boxes with a lot of children.
* Don't crash when rendering some tables.
* Fix rendering of floats in inlines.
* Split lines carefully.
* Fix root when frozen with Pyinstaller.
* Handle SVGs containing images embedded as data URIs.
* Fix border-radius rendering problem with some PDF readers.
* Fix pipenv support.
* Smartly handle replaced boxes with percentage width in auto-width parents.
* Don't ignore CSS @page rules that are imported by an @import rule.


(adam)
diff -r1.10 -r1.11 pkgsrc/print/py-weasyprint/Makefile
diff -r1.2 -r1.3 pkgsrc/print/py-weasyprint/PLIST
diff -r1.9 -r1.10 pkgsrc/print/py-weasyprint/distinfo
diff -r1.2 -r1.3 pkgsrc/print/py-weasyprint/patches/patch-setup.py

cvs diff -r1.10 -r1.11 pkgsrc/print/py-weasyprint/Makefile (expand / switch to unified diff)

--- pkgsrc/print/py-weasyprint/Makefile 2017/10/09 12:30:22 1.10
+++ pkgsrc/print/py-weasyprint/Makefile 2018/01/05 11:35:06 1.11
@@ -1,25 +1,31 @@ @@ -1,25 +1,31 @@
1# $NetBSD: Makefile,v 1.10 2017/10/09 12:30:22 kleink Exp $ 1# $NetBSD: Makefile,v 1.11 2018/01/05 11:35:06 adam Exp $
2 2
3DISTNAME= WeasyPrint-0.41 3DISTNAME= WeasyPrint-0.42
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
5CATEGORIES= print python 5CATEGORIES= print python
6MASTER_SITES= ${MASTER_SITE_PYPI:=W/WeasyPrint/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=W/WeasyPrint/}
7 7
8MAINTAINER= kleink@NetBSD.org 8MAINTAINER= kleink@NetBSD.org
9HOMEPAGE= http://weasyprint.org/ 9HOMEPAGE= http://weasyprint.org/
10COMMENT= Converts HTML/CSS documents to PDF 10COMMENT= Converts HTML/CSS documents to PDF
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13USE_LANGUAGES= # empty 
14 
15DEPENDS+= pango-[0-9]*:../../devel/pango 13DEPENDS+= pango-[0-9]*:../../devel/pango
16DEPENDS+= ${PYPKGPREFIX}-cairosvg>=1.0.20:../../converters/py-cairosvg 14DEPENDS+= ${PYPKGPREFIX}-cairosvg>=1.0.20:../../converters/py-cairosvg
17DEPENDS+= ${PYPKGPREFIX}-cairocffi>=0.5:../../graphics/py-cairocffi 15DEPENDS+= ${PYPKGPREFIX}-cairocffi>=0.5:../../graphics/py-cairocffi
 16DEPENDS+= ${PYPKGPREFIX}-cffi>=0.6:../../devel/py-cffi
 17DEPENDS+= ${PYPKGPREFIX}-cssselect2>=0.1:../../textproc/py-cssselect2
18DEPENDS+= ${PYPKGPREFIX}-html5lib>=0.999999999:../../textproc/py-html5lib 18DEPENDS+= ${PYPKGPREFIX}-html5lib>=0.999999999:../../textproc/py-html5lib
19DEPENDS+= ${PYPKGPREFIX}-pdfrw>=0.4:../../textproc/py-pdfrw 19DEPENDS+= ${PYPKGPREFIX}-pdfrw>=0.4:../../textproc/py-pdfrw
20DEPENDS+= ${PYPKGPREFIX}-tinycss2>=0.5:../../textproc/py-tinycss2 
21DEPENDS+= ${PYPKGPREFIX}-cssselect2>=0.1:../../textproc/py-cssselect2 
22DEPENDS+= ${PYPKGPREFIX}-pyphen>=0.8:../../textproc/py-pyphen 20DEPENDS+= ${PYPKGPREFIX}-pyphen>=0.8:../../textproc/py-pyphen
 21DEPENDS+= ${PYPKGPREFIX}-tinycss2>=0.5:../../textproc/py-tinycss2
 22# TEST_DEPENDS
 23BUILD_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
 24BUILD_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8
 25BUILD_DEPENDS+= ${PYPKGPREFIX}-test-isort-[0-9]*:../../devel/py-test-isort
 26BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 27
 28USE_LANGUAGES= # none
23 29
24.include "../../lang/python/egg.mk" 30.include "../../lang/python/egg.mk"
25.include "../../mk/bsd.pkg.mk" 31.include "../../mk/bsd.pkg.mk"

cvs diff -r1.2 -r1.3 pkgsrc/print/py-weasyprint/PLIST (expand / switch to unified diff)

--- pkgsrc/print/py-weasyprint/PLIST 2017/01/14 23:13:49 1.2
+++ pkgsrc/print/py-weasyprint/PLIST 2018/01/05 11:35:06 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.2 2017/01/14 23:13:49 kleink Exp $ 1@comment $NetBSD: PLIST,v 1.3 2018/01/05 11:35:06 adam Exp $
2bin/weasyprint${PYVERSSUFFIX} 2bin/weasyprint${PYVERSSUFFIX}
3${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 3${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
4${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 4${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
5${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 5${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
6${PYSITELIB}/${EGG_INFODIR}/entry_points.txt 6${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
7${PYSITELIB}/${EGG_INFODIR}/not-zip-safe 7${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
8${PYSITELIB}/${EGG_INFODIR}/requires.txt 8${PYSITELIB}/${EGG_INFODIR}/requires.txt
9${PYSITELIB}/${EGG_INFODIR}/top_level.txt 9${PYSITELIB}/${EGG_INFODIR}/top_level.txt
10${PYSITELIB}/weasyprint/__init__.py 10${PYSITELIB}/weasyprint/__init__.py
11${PYSITELIB}/weasyprint/__init__.pyc 11${PYSITELIB}/weasyprint/__init__.pyc
12${PYSITELIB}/weasyprint/__init__.pyo 12${PYSITELIB}/weasyprint/__init__.pyo
13${PYSITELIB}/weasyprint/__main__.py 13${PYSITELIB}/weasyprint/__main__.py
14${PYSITELIB}/weasyprint/__main__.pyc 14${PYSITELIB}/weasyprint/__main__.pyc
@@ -131,38 +131,44 @@ ${PYSITELIB}/weasyprint/tests/resources/ @@ -131,38 +131,44 @@ ${PYSITELIB}/weasyprint/tests/resources/
131${PYSITELIB}/weasyprint/tests/resources/really-a-png.svg 131${PYSITELIB}/weasyprint/tests/resources/really-a-png.svg
132${PYSITELIB}/weasyprint/tests/resources/really-a-svg.png 132${PYSITELIB}/weasyprint/tests/resources/really-a-svg.png
133${PYSITELIB}/weasyprint/tests/resources/sheet2.css 133${PYSITELIB}/weasyprint/tests/resources/sheet2.css
134${PYSITELIB}/weasyprint/tests/resources/sub_directory/sheet1.css 134${PYSITELIB}/weasyprint/tests/resources/sub_directory/sheet1.css
135${PYSITELIB}/weasyprint/tests/resources/user.css 135${PYSITELIB}/weasyprint/tests/resources/user.css
136${PYSITELIB}/weasyprint/tests/resources/utf8-test.css 136${PYSITELIB}/weasyprint/tests/resources/utf8-test.css
137${PYSITELIB}/weasyprint/tests/resources/weasyprint.otf 137${PYSITELIB}/weasyprint/tests/resources/weasyprint.otf
138${PYSITELIB}/weasyprint/tests/test_api.py 138${PYSITELIB}/weasyprint/tests/test_api.py
139${PYSITELIB}/weasyprint/tests/test_api.pyc 139${PYSITELIB}/weasyprint/tests/test_api.pyc
140${PYSITELIB}/weasyprint/tests/test_api.pyo 140${PYSITELIB}/weasyprint/tests/test_api.pyo
141${PYSITELIB}/weasyprint/tests/test_boxes.py 141${PYSITELIB}/weasyprint/tests/test_boxes.py
142${PYSITELIB}/weasyprint/tests/test_boxes.pyc 142${PYSITELIB}/weasyprint/tests/test_boxes.pyc
143${PYSITELIB}/weasyprint/tests/test_boxes.pyo 143${PYSITELIB}/weasyprint/tests/test_boxes.pyo
 144${PYSITELIB}/weasyprint/tests/test_columns.py
 145${PYSITELIB}/weasyprint/tests/test_columns.pyc
 146${PYSITELIB}/weasyprint/tests/test_columns.pyo
144${PYSITELIB}/weasyprint/tests/test_css.py 147${PYSITELIB}/weasyprint/tests/test_css.py
145${PYSITELIB}/weasyprint/tests/test_css.pyc 148${PYSITELIB}/weasyprint/tests/test_css.pyc
146${PYSITELIB}/weasyprint/tests/test_css.pyo 149${PYSITELIB}/weasyprint/tests/test_css.pyo
147${PYSITELIB}/weasyprint/tests/test_css_descriptors.py 150${PYSITELIB}/weasyprint/tests/test_css_descriptors.py
148${PYSITELIB}/weasyprint/tests/test_css_descriptors.pyc 151${PYSITELIB}/weasyprint/tests/test_css_descriptors.pyc
149${PYSITELIB}/weasyprint/tests/test_css_descriptors.pyo 152${PYSITELIB}/weasyprint/tests/test_css_descriptors.pyo
150${PYSITELIB}/weasyprint/tests/test_css_validation.py 153${PYSITELIB}/weasyprint/tests/test_css_validation.py
151${PYSITELIB}/weasyprint/tests/test_css_validation.pyc 154${PYSITELIB}/weasyprint/tests/test_css_validation.pyc
152${PYSITELIB}/weasyprint/tests/test_css_validation.pyo 155${PYSITELIB}/weasyprint/tests/test_css_validation.pyo
153${PYSITELIB}/weasyprint/tests/test_draw.py 156${PYSITELIB}/weasyprint/tests/test_draw.py
154${PYSITELIB}/weasyprint/tests/test_draw.pyc 157${PYSITELIB}/weasyprint/tests/test_draw.pyc
155${PYSITELIB}/weasyprint/tests/test_draw.pyo 158${PYSITELIB}/weasyprint/tests/test_draw.pyo
 159${PYSITELIB}/weasyprint/tests/test_float.py
 160${PYSITELIB}/weasyprint/tests/test_float.pyc
 161${PYSITELIB}/weasyprint/tests/test_float.pyo
156${PYSITELIB}/weasyprint/tests/test_fonts.py 162${PYSITELIB}/weasyprint/tests/test_fonts.py
157${PYSITELIB}/weasyprint/tests/test_fonts.pyc 163${PYSITELIB}/weasyprint/tests/test_fonts.pyc
158${PYSITELIB}/weasyprint/tests/test_fonts.pyo 164${PYSITELIB}/weasyprint/tests/test_fonts.pyo
159${PYSITELIB}/weasyprint/tests/test_layout.py 165${PYSITELIB}/weasyprint/tests/test_layout.py
160${PYSITELIB}/weasyprint/tests/test_layout.pyc 166${PYSITELIB}/weasyprint/tests/test_layout.pyc
161${PYSITELIB}/weasyprint/tests/test_layout.pyo 167${PYSITELIB}/weasyprint/tests/test_layout.pyo
162${PYSITELIB}/weasyprint/tests/test_pdf.py 168${PYSITELIB}/weasyprint/tests/test_pdf.py
163${PYSITELIB}/weasyprint/tests/test_pdf.pyc 169${PYSITELIB}/weasyprint/tests/test_pdf.pyc
164${PYSITELIB}/weasyprint/tests/test_pdf.pyo 170${PYSITELIB}/weasyprint/tests/test_pdf.pyo
165${PYSITELIB}/weasyprint/tests/test_presentational_hints.py 171${PYSITELIB}/weasyprint/tests/test_presentational_hints.py
166${PYSITELIB}/weasyprint/tests/test_presentational_hints.pyc 172${PYSITELIB}/weasyprint/tests/test_presentational_hints.pyc
167${PYSITELIB}/weasyprint/tests/test_presentational_hints.pyo 173${PYSITELIB}/weasyprint/tests/test_presentational_hints.pyo
168${PYSITELIB}/weasyprint/tests/test_stacking.py 174${PYSITELIB}/weasyprint/tests/test_stacking.py

cvs diff -r1.9 -r1.10 pkgsrc/print/py-weasyprint/distinfo (expand / switch to unified diff)

--- pkgsrc/print/py-weasyprint/distinfo 2017/10/09 12:30:22 1.9
+++ pkgsrc/print/py-weasyprint/distinfo 2018/01/05 11:35:06 1.10
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
1$NetBSD: distinfo,v 1.9 2017/10/09 12:30:22 kleink Exp $ 1$NetBSD: distinfo,v 1.10 2018/01/05 11:35:06 adam Exp $
2 2
3SHA1 (WeasyPrint-0.41.tar.gz) = d4d63cbcd8017c0fccc71fcc10b5d13d2f8adc14 3SHA1 (WeasyPrint-0.42.tar.gz) = a4ae513d152d181137bd6f84c278379cd49b0337
4RMD160 (WeasyPrint-0.41.tar.gz) = a67ea5db20d1b8316ab7661c9cb33b1b8b6f7a8f 4RMD160 (WeasyPrint-0.42.tar.gz) = 045c985fc16e41d2da084c61b09f3494d9e3916e
5SHA512 (WeasyPrint-0.41.tar.gz) = 44b2d9e0a186c5767cd01d6e66495241d088908467e0fa28cee114a9c480bfcb4ef393236e9304653603f3917c73c452c05a38286932e0a271946860120d9a1f 5SHA512 (WeasyPrint-0.42.tar.gz) = e99475ea88e31a904f8409ca238a9ec793794212f44456d30fef67e91779ec8c17ea3c7304a780d92012de572db88b99e066902271a65fdae9b35d19531a1346
6Size (WeasyPrint-0.41.tar.gz) = 393866 bytes 6Size (WeasyPrint-0.42.tar.gz) = 397395 bytes
7SHA1 (patch-setup.py) = edeb4b77c8cf7fbd2ada7be10023158df9d96026 7SHA1 (patch-setup.py) = a7657e79ac611f3122a81d7f2c6c195e52ba9399

cvs diff -r1.2 -r1.3 pkgsrc/print/py-weasyprint/patches/Attic/patch-setup.py (expand / switch to unified diff)

--- pkgsrc/print/py-weasyprint/patches/Attic/patch-setup.py 2017/08/01 15:36:26 1.2
+++ pkgsrc/print/py-weasyprint/patches/Attic/patch-setup.py 2018/01/05 11:35:06 1.3
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1$NetBSD: patch-setup.py,v 1.2 2017/08/01 15:36:26 kleink Exp $ 1$NetBSD: patch-setup.py,v 1.3 2018/01/05 11:35:06 adam Exp $
2 2
3Adjust script path to allow multiple Python version installs. 3Adjust script path to allow multiple Python version installs.
4 4
5--- setup.py.orig 2017-06-22 16:31:14.000000000 +0000 5--- setup.py.orig 2017-12-22 23:26:45.000000000 +0000
6+++ setup.py 6+++ setup.py
7@@ -87,7 +87,7 @@ setup( 7@@ -83,7 +83,7 @@ setup(
8 "pytest-runner", "pytest-cov", "pytest-flake8", "pytest-isort"]}, 8 ':python_version >= "3.0"': ['CairoSVG >= 1.0.20']},
9 entry_points={ 9 entry_points={
10 'console_scripts': [ 10 'console_scripts': [
11- 'weasyprint = weasyprint.__main__:main', 11- 'weasyprint = weasyprint.__main__:main',
12+ 'weasyprint%s = weasyprint.__main__:main' % sys.version[0:3], 12+ 'weasyprint%s = weasyprint.__main__:main' % sys.version[0:3],
13 ], 13 ],
14 }, 14 },
15 ) 15 )