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:           Sun Dec 31 21:30:51 UTC 2023

Modified Files:
        pkgsrc/textproc/py-lxml: Makefile PLIST distinfo

Log Message:
py-lxml: update to 5.0.0.

5.0.0 (2023-12-29)
==================

Features added
--------------

* Character escaping in ``C14N2`` serialisation now uses a single pass over the text
  instead of searching for each unescaped character separately.

* Early support for Python 3.13a2 was added.

Bugs fixed
----------

* LP#1976304: The ``Element.addnext()`` method previously inserted the new element
  before existing tail text.  The tail text of both sibling elements now stays on
  the respective elements.

* LP#1980767, GH#379: ``TreeBuilder.close()`` could fail with a ``TypeError`` after
  parsing incorrect input.  Original patch by Enrico Minack.

* ``Element.itertext(with_tail=False)`` returned the tail text of comments and
  processing instructions, despite the explicit option.

* GH#370: A crash with recent libxml2 2.11.x versions was resolved.
  Patch by Michael Schlenker.

* A compile problem with recent libxml2 2.12.x versions was resolved.

* The internal exception handling in C callbacks was improved for Cython 3.0.

* The exception declarations of ``xmlInputReadCallback``, ``xmlInputCloseCallback``,
  ``xmlOutputWriteCallback`` and ``xmlOutputCloseCallback`` in ``tree.pxd`` were
  corrected to prevent running Python code or calling into the C-API with a live
  exception set.

* GH#385: The long deprecated ``unittest.m̀akeSuite()`` function is no longer used.
  Patch by Miro Hrončok.

* LP#1522052: A file-system specific test is now optional and should no longer fail
  on systems that don't support it.

* GH#392: Some tests were adapted for libxml2 2.13.
  Patch by Nick Wellnhofer.

* Contains all fixes from lxml 4.9.4.

Other changes
-------------

* LP#1742885: lxml no longer expands external entities (XXE) by default to prevent
  the security risk of loading arbitrary files and URLs.  If this feature is needed,
  it can be enabled in a backwards compatible way by using a parser with the option
  ``resolve_entities=True``.  The new default is ``resolve_entities='internal'``.

* With libxml2 2.10.4 and later (as provided by the lxml 5.0 binary wheels),
  parsing HTML tags with "prefixes" no longer builds a namespace dictionary
  in ``nsmap`` but considers the ``prefix:name`` string the actual tag name.
  With older libxml2 versions, since 2.9.11, the prefix was removed.  Before
  that, the prefix was parsed as XML prefix.

  lxml 5.0 does not try to hide this difference but now changes the ElementPath
  implementation to let ``element.find("part1:part2")`` search for the tag
  ``part1:part2`` in documents parsed as HTML, instead of looking only for ``part2``.

* LP#2024343: The validation of the schema file itself is now optional in the
  ISO-Schematron implementation.  This was done because some lxml distributions
  discard the RNG validation schema file due to licensing issues.  The validation
  can now always be disabled with ``Schematron(..., validate_schema=False)``.
  It is enabled by default if available and disabled otherwise.  The module
  constant ``lxml.isoschematron.schematron_schema_valid_supported`` can be used
  to detect whether schema file validation is available.

* Some redundant and long deprecated methods were removed:
  ``parser.setElementClassLookup()``,
  ``xslt_transform.apply()``,
  ``xpath.evaluate()``.

* Some incorrect declarations were removed from ``python.pxd``. In general, this file
  should not be used by external Cython code. Use the C-API declarations provided by
  Cython itself instead.

* Binary wheels use the library versions libxml2 2.12.3 and libxslt 1.1.39.

* Built with Cython 3.0.7, updated to follow recent changes in Cython 3.1-dev.


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 pkgsrc/textproc/py-lxml/Makefile
cvs rdiff -u -r1.15 -r1.16 pkgsrc/textproc/py-lxml/PLIST
cvs rdiff -u -r1.68 -r1.69 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.94 pkgsrc/textproc/py-lxml/Makefile:1.95
--- pkgsrc/textproc/py-lxml/Makefile:1.94       Thu Dec 28 19:07:42 2023
+++ pkgsrc/textproc/py-lxml/Makefile    Sun Dec 31 21:30:50 2023
@@ -1,28 +1,25 @@
-# $NetBSD: Makefile,v 1.94 2023/12/28 19:07:42 adam Exp $
+# $NetBSD: Makefile,v 1.95 2023/12/31 21:30:50 wiz Exp $
 
-DISTNAME=      lxml-4.9.4
+DISTNAME=      lxml-5.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=l/lxml/}
+EXTRACT_SUFX=  .zip
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://lxml.de/
 COMMENT=       Python binding for libxml2 and libxslt
 LICENSE=       modified-bsd
 
-USE_CC_FEATURES=       c99
-
-# Path too long for nbtar (pax-as-tar)?
-# See pkg/56688: nbtar (archivers/pax) silently drops files
-EXTRACT_USING= gtar
-
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=0:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel>=0:../../devel/py-wheel
 TEST_DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7:../../textproc/py-cssselect
 
-PYSETUPTESTARGS=       --run-tests
+USE_CC_FEATURES=       c99
 
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../lang/python/batteries-included.mk"
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 BUILDLINK_API_DEPENDS.libxml2+=        libxml2>=2.9.12
 .include "../../textproc/libxml2/buildlink3.mk"
 BUILDLINK_API_DEPENDS.libxslt+=        libxslt>=1.1.34

Index: pkgsrc/textproc/py-lxml/PLIST
diff -u pkgsrc/textproc/py-lxml/PLIST:1.15 pkgsrc/textproc/py-lxml/PLIST:1.16
--- pkgsrc/textproc/py-lxml/PLIST:1.15  Thu Dec 15 23:22:03 2022
+++ pkgsrc/textproc/py-lxml/PLIST       Sun Dec 31 21:30:50 2023
@@ -1,10 +1,10 @@
-@comment $NetBSD: PLIST,v 1.15 2022/12/15 23:22:03 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.16 2023/12/31 21:30:50 wiz Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.txt
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSES.txt
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/lxml/ElementInclude.py
 ${PYSITELIB}/lxml/ElementInclude.pyc
 ${PYSITELIB}/lxml/ElementInclude.pyo

Index: pkgsrc/textproc/py-lxml/distinfo
diff -u pkgsrc/textproc/py-lxml/distinfo:1.68 pkgsrc/textproc/py-lxml/distinfo:1.69
--- pkgsrc/textproc/py-lxml/distinfo:1.68       Thu Dec 28 19:07:42 2023
+++ pkgsrc/textproc/py-lxml/distinfo    Sun Dec 31 21:30:50 2023
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.68 2023/12/28 19:07:42 adam Exp $
+$NetBSD: distinfo,v 1.69 2023/12/31 21:30:50 wiz Exp $
 
-BLAKE2s (lxml-4.9.4.tar.gz) = 7ab39de6e4b36b7c6e3b3ef7320368b12647457e261685dc73e9ff7d0d0765b2
-SHA512 (lxml-4.9.4.tar.gz) = a217468681ece8d86da2d171e4e7036fffc30b9b873e3697f2078559a33787e023b4346b4fffeeaaa7070abff89f82247dd6b941d70090301a1815d41ae5ca72
-Size (lxml-4.9.4.tar.gz) = 3576664 bytes
+BLAKE2s (lxml-5.0.0.zip) = 8524bbbdbf453a585c08d62c279471cdeed50bfc8725de7a3d16ee4a80cea4eb
+SHA512 (lxml-5.0.0.zip) = c672d4b4c0e3a9ced8ced219f1c4e0f1db5efc445bf6b03988a8cd5844fda054ad19a9996c283a43ba65ceddd0d8949bb1021dcd7eb80d828c2d50b3a78e264a
+Size (lxml-5.0.0.zip) = 4061243 bytes
 SHA1 (patch-setupinfo.py) = 264e934a4e5c095b0a65769798bf94db394d03e1



Home | Main Index | Thread Index | Old Index