Thu Dec 16 20:17:10 2021 UTC ()
py-lxml: updated to 4.7.1

4.7.1 (2021-12-13)

Features added

Chunked Unicode string parsing via parser.feed() now encodes the input data to the native UTF-8 encoding directly, instead of going through Py_UNICODE / wchar_t encoding first, which previously required duplicate recoding in most cases.

Bugs fixed

The standard namespace prefixes were mishandled during "C14N2" serialisation on Python 3. See https://mail.python.org/archives/list/lxml@python.org/thread/6ZFBHFOVHOS5GFDOAMPCT6HM5HZPWQ4Q/
lxml.objectify previously accepted non-XML numbers with underscores (like "1_000") as integers or float values in Python 3.6 and later. It now adheres to the number format of the XML spec again.
Static wheels of lxml now contain the header files of zlib and libiconv (in addition to the already provided headers of libxml2/libxslt/libexslt).

Other changes

Wheels include libxml2 2.9.12+ and libxslt 1.1.34 (also on Windows).

4.7.0 (2021-12-13)

Release retracted due to missing files in lxml/includes/.

4.6.5 (2021-12-12)

Bugs fixed

A vulnerability (GHSL-2021-1038) in the HTML cleaner allowed sneaking script content through SVG images (CVE-2021-43818).
A vulnerability (GHSL-2021-1037) in the HTML cleaner allowed sneaking script content through CSS imports and other crafted constructs (CVE-2021-43818).


(adam)
diff -r1.77 -r1.78 pkgsrc/textproc/py-lxml/Makefile
diff -r1.61 -r1.62 pkgsrc/textproc/py-lxml/distinfo

cvs diff -r1.77 -r1.78 pkgsrc/textproc/py-lxml/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/py-lxml/Makefile 2021/12/08 16:06:46 1.77
+++ pkgsrc/textproc/py-lxml/Makefile 2021/12/16 20:17:10 1.78
@@ -1,27 +1,26 @@ @@ -1,27 +1,26 @@
1# $NetBSD: Makefile,v 1.77 2021/12/08 16:06:46 adam Exp $ 1# $NetBSD: Makefile,v 1.78 2021/12/16 20:17:10 adam Exp $
2 2
3DISTNAME= lxml-4.6.4 3DISTNAME= lxml-4.7.1
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5PKGREVISION= 1 
6CATEGORIES= textproc python 5CATEGORIES= textproc python
7MASTER_SITES= ${MASTER_SITE_PYPI:=l/lxml/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=l/lxml/}
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://lxml.de/ 9HOMEPAGE= https://lxml.de/
11COMMENT= Python binding for libxml2 and libxslt 10COMMENT= Python binding for libxml2 and libxslt
12LICENSE= modified-bsd 11LICENSE= modified-bsd
13 12
14TEST_DEPENDS+= ${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree 13TEST_DEPENDS+= ${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree
15TEST_DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7:../../textproc/py-cssselect 14TEST_DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7:../../textproc/py-cssselect
16 15
17PYSETUPTESTARGS= --run-tests 16PYSETUPTESTARGS= --run-tests
18 17
19.include "../../devel/zlib/buildlink3.mk" 18.include "../../devel/zlib/buildlink3.mk"
20.include "../../lang/python/egg.mk" 19.include "../../lang/python/egg.mk"
21BUILDLINK_API_DEPENDS.libxml2+= libxml2>=2.9.2 20BUILDLINK_API_DEPENDS.libxml2+= libxml2>=2.9.12
22.include "../../textproc/libxml2/buildlink3.mk" 21.include "../../textproc/libxml2/buildlink3.mk"
23BUILDLINK_API_DEPENDS.libxslt+= libxslt>=1.1.27 22BUILDLINK_API_DEPENDS.libxslt+= libxslt>=1.1.34
24.include "../../textproc/libxslt/buildlink3.mk" 23.include "../../textproc/libxslt/buildlink3.mk"
25.include "../../mk/bsd.pkg.mk" 24.include "../../mk/bsd.pkg.mk"
26# fix for UnicodeEncodeError: 'ascii' codec can't encode characters 25# fix for UnicodeEncodeError: 'ascii' codec can't encode characters
27TEST_ENV+= LC_ALL=en_US.UTF-8 26TEST_ENV+= LC_ALL=en_US.UTF-8

cvs diff -r1.61 -r1.62 pkgsrc/textproc/py-lxml/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/py-lxml/distinfo 2021/11/03 09:38:40 1.61
+++ pkgsrc/textproc/py-lxml/distinfo 2021/12/16 20:17:10 1.62
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.61 2021/11/03 09:38:40 adam Exp $ 1$NetBSD: distinfo,v 1.62 2021/12/16 20:17:10 adam Exp $
2 2
3BLAKE2s (lxml-4.6.4.tar.gz) = b367dee2bbfd4f61f048696ab916d865247408bb50a2dfc4dbf4feb3e8ef2682 3BLAKE2s (lxml-4.7.1.tar.gz) = 0944164c534767fc9a0ceac389b8de1e522b4bba16d2248d3a2f7614b5c6b728
4SHA512 (lxml-4.6.4.tar.gz) = 5398bd70f1be5ea84365643856ca2b293c466c0e128f54eefe4a19a779a507f0e3e83575c4850d6a735ce75d56a619b59673913ef5b0ce6cb183a19b5bcf32fe 4SHA512 (lxml-4.7.1.tar.gz) = dd0d421e10db6c9084cf5b2c04a4fc54d74bd62b4dfa83efcf92dd46cd1c5f043c47613521b2de04c450b83eb1161d197b017c53e615e5785e97e7afe106b6cf
5Size (lxml-4.6.4.tar.gz) = 3177833 bytes 5Size (lxml-4.7.1.tar.gz) = 3204203 bytes
6SHA1 (patch-setupinfo.py) = 264e934a4e5c095b0a65769798bf94db394d03e1 6SHA1 (patch-setupinfo.py) = 264e934a4e5c095b0a65769798bf94db394d03e1