pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/py-lxml
Module Name: pkgsrc
Committed By: wiz
Date: Tue Jul 1 19:50:57 UTC 2025
Modified Files:
pkgsrc/textproc/py-lxml: Makefile PLIST distinfo
Log Message:
py-lxml: update to 6.0.0.
6.0.0 (2025-06-26)
==================
Features added
--------------
* GH#463: ``lxml.html.diff`` is faster and provides structurally better diffs.
Original patch by Steven Fernandez.
* GH#405: The factories ``Element`` and ``ElementTree`` can now be used in type hints.
* GH#448: Parsing from ``memoryview`` and other buffers is supported to allow zero-copy parsing.
* GH#437: ``lxml.html.builder`` was missing several HTML5 tag names.
Patch by Nick Tarleton.
* GH#458: ``CDATA`` can now be written into the incremental ``xmlfile()`` writer.
Original patch by Lane Shaw.
* A new parser option ``decompress=False`` was added that controls the automatic
input decompression when using libxml2 2.15.0 or later. Disabling this option
by default will effectively prevent decompression bombs when handling untrusted
input. Code that depends on automatic decompression must enable this option.
Note that libxml2 2.15.0 was not released yet, so this option currently has no
effect but can already be used.
* The set of compile time / runtime supported libxml2 feature names is available as
``etree.LIBXML_COMPILED_FEATURES`` and ``etree.LIBXML_FEATURES``.
This currently includes
``catalog``, ``ftp``, ``html``, ``http``, ``iconv``, ``icu``,
``lzma``, ``regexp``, ``schematron``, ``xmlschema``, ``xpath``, ``zlib``.
Bugs fixed
----------
* GH#353: Predicates in ``.find*()`` could mishandle tag indices if a default namespace is provided.
Original patch by Luise K.
* GH#272: The ``head`` and ``body`` properties of ``lxml.html`` elements failed if no such element
was found. They now return ``None`` instead.
Original patch by FVolral.
* Tag names provided by code (API, not data) that are longer than ``INT_MAX``
could be truncated or mishandled in other ways.
* ``.text_content()`` on ``lxml.html`` elements accidentally returned a "smart string"
without additional information. It now returns a plain string.
* LP#2109931: When building lxml with coverage reporting, it now disables the ``sys.monitoring``
support due to the lack of support in https://github.com/nedbat/coveragepy/issues/1790
Other changes
-------------
* Support for Python < 3.8 was removed.
* Parsing directly from zlib (or lzma) compressed data is now considered an optional
feature in lxml. It may get removed from libxml2 at some point for security reasons
(compression bombs) and is therefore no longer guaranteed to be available in lxml.
As of this release, zlib support is still normally available in the binary wheels
but may get disabled or removed in later (x.y.0) releases. To test the availability,
use ``"zlib" in etree.LIBXML_FEATURES``.
* The ``Schematron`` class is deprecated and will become non-functional in a future lxml version.
The feature will soon be removed from libxml2 and stop being available.
* GH#438: Wheels include the ``arm7l`` target.
* GH#465: Windows wheels include the ``arm64`` target.
Patch by Finn Womack.
* Binary wheels use the library versions libxml2 2.14.4 and libxslt 1.1.43.
Note that this disables direct HTTP and FTP support for parsing from URLs.
Use Python URL request tools instead (which usually also support HTTPS).
To test the availability, use ``"http" in etree.LIBXML_FEATURES``.
* Windows binary wheels use the library versions libxml2 2.11.9, libxslt 1.1.39 and libiconv 1.17.
They are now based on VS-2022.
* Built using Cython 3.1.2.
* The debug methods ``MemDebug.dump()`` and ``MemDebug.show()`` were removed completely.
libxml2 2.13.0 discarded this feature.
To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 pkgsrc/textproc/py-lxml/Makefile
cvs rdiff -u -r1.20 -r1.21 pkgsrc/textproc/py-lxml/PLIST
cvs rdiff -u -r1.79 -r1.80 pkgsrc/textproc/py-lxml/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/py-lxml/Makefile
diff -u pkgsrc/textproc/py-lxml/Makefile:1.120 pkgsrc/textproc/py-lxml/Makefile:1.121
--- pkgsrc/textproc/py-lxml/Makefile:1.120 Wed Apr 23 07:36:38 2025
+++ pkgsrc/textproc/py-lxml/Makefile Tue Jul 1 19:50:57 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.120 2025/04/23 07:36:38 adam Exp $
+# $NetBSD: Makefile,v 1.121 2025/07/01 19:50:57 wiz Exp $
-DISTNAME= lxml-5.4.0
+DISTNAME= lxml-6.0.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=l/lxml/}
@@ -26,11 +26,11 @@ FORCE_C_STD= gnu99
# to manually test:
# make patch
# cd ${WRKSRC}
-# python3.12 setup.py build_ext -i
-# python3.12 test.py
+# python3.13 setup.py build_ext -i
+# python3.13 test.py
-# as of 5.3.0 this gives:
-# Ran 1946 tests in 5.044s
+# as of 6.0.0 this gives:
+# Ran 2003 tests in 5.956s
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/batteries-included.mk"
Index: pkgsrc/textproc/py-lxml/PLIST
diff -u pkgsrc/textproc/py-lxml/PLIST:1.20 pkgsrc/textproc/py-lxml/PLIST:1.21
--- pkgsrc/textproc/py-lxml/PLIST:1.20 Sat Apr 12 15:57:39 2025
+++ pkgsrc/textproc/py-lxml/PLIST Tue Jul 1 19:50:57 2025
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.20 2025/04/12 15:57:39 wiz Exp $
+@comment $NetBSD: PLIST,v 1.21 2025/07/01 19:50:57 wiz Exp $
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -45,6 +45,10 @@ ${PYSITELIB}/lxml/html/__init__.pyo
${PYSITELIB}/lxml/html/_diffcommand.py
${PYSITELIB}/lxml/html/_diffcommand.pyc
${PYSITELIB}/lxml/html/_diffcommand.pyo
+${PYSITELIB}/lxml/html/_difflib.py
+${PYSITELIB}/lxml/html/_difflib.pyc
+${PYSITELIB}/lxml/html/_difflib.pyo
+${PYSITELIB}/lxml/html/_difflib.so
${PYSITELIB}/lxml/html/_html5builder.py
${PYSITELIB}/lxml/html/_html5builder.pyc
${PYSITELIB}/lxml/html/_html5builder.pyo
Index: pkgsrc/textproc/py-lxml/distinfo
diff -u pkgsrc/textproc/py-lxml/distinfo:1.79 pkgsrc/textproc/py-lxml/distinfo:1.80
--- pkgsrc/textproc/py-lxml/distinfo:1.79 Wed Apr 23 07:36:38 2025
+++ pkgsrc/textproc/py-lxml/distinfo Tue Jul 1 19:50:57 2025
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.79 2025/04/23 07:36:38 adam Exp $
+$NetBSD: distinfo,v 1.80 2025/07/01 19:50:57 wiz Exp $
-BLAKE2s (lxml-5.4.0.tar.gz) = 5880ccd252c483b776c487e9a418f732891722f1612b2f58b7c3305cdc037cf3
-SHA512 (lxml-5.4.0.tar.gz) = 3d0bf222d5f213366a8b17d48702d3a5b430355d71b9ac88b4b1980e1a53fe34ba1d02c62053550f60f0320778647635d1af92c682b7f57ebf266521e9ee0d92
-Size (lxml-5.4.0.tar.gz) = 3679479 bytes
+BLAKE2s (lxml-6.0.0.tar.gz) = 7c698ccb21d588112b7cd9293b2a63e8fb304636d8b251c102b5166a06f3677f
+SHA512 (lxml-6.0.0.tar.gz) = ec372b9b4495a7370a821e5f105ee0eb222301e21c28bc1ab2e30a36ddc1ae5a55998913261cb5a2297fe74512aa9bded29b9029fedca152a2ae25d57284f5c2
+Size (lxml-6.0.0.tar.gz) = 4096938 bytes
SHA1 (patch-setupinfo.py) = 43ac54758b37c79329a4dabae1c3240661193885
Home |
Main Index |
Thread Index |
Old Index