head 1.18; access; symbols pkgsrc-2023Q4:1.15.0.10 pkgsrc-2023Q4-base:1.15 pkgsrc-2023Q3:1.15.0.8 pkgsrc-2023Q3-base:1.15 pkgsrc-2023Q2:1.15.0.6 pkgsrc-2023Q2-base:1.15 pkgsrc-2023Q1:1.15.0.4 pkgsrc-2023Q1-base:1.15 pkgsrc-2022Q4:1.15.0.2 pkgsrc-2022Q4-base:1.15 pkgsrc-2022Q3:1.14.0.6 pkgsrc-2022Q3-base:1.14 pkgsrc-2022Q2:1.14.0.4 pkgsrc-2022Q2-base:1.14 pkgsrc-2022Q1:1.14.0.2 pkgsrc-2022Q1-base:1.14 pkgsrc-2021Q4:1.12.0.24 pkgsrc-2021Q4-base:1.12 pkgsrc-2021Q3:1.12.0.22 pkgsrc-2021Q3-base:1.12 pkgsrc-2021Q2:1.12.0.20 pkgsrc-2021Q2-base:1.12 pkgsrc-2021Q1:1.12.0.18 pkgsrc-2021Q1-base:1.12 pkgsrc-2020Q4:1.12.0.16 pkgsrc-2020Q4-base:1.12 pkgsrc-2020Q3:1.12.0.14 pkgsrc-2020Q3-base:1.12 pkgsrc-2020Q2:1.12.0.12 pkgsrc-2020Q2-base:1.12 pkgsrc-2020Q1:1.12.0.8 pkgsrc-2020Q1-base:1.12 pkgsrc-2019Q4:1.12.0.10 pkgsrc-2019Q4-base:1.12 pkgsrc-2019Q3:1.12.0.6 pkgsrc-2019Q3-base:1.12 pkgsrc-2019Q2:1.12.0.4 pkgsrc-2019Q2-base:1.12 pkgsrc-2019Q1:1.12.0.2 pkgsrc-2019Q1-base:1.12 pkgsrc-2018Q4:1.11.0.14 pkgsrc-2018Q4-base:1.11 pkgsrc-2018Q3:1.11.0.12 pkgsrc-2018Q3-base:1.11 pkgsrc-2018Q2:1.11.0.10 pkgsrc-2018Q2-base:1.11 pkgsrc-2018Q1:1.11.0.8 pkgsrc-2018Q1-base:1.11 pkgsrc-2017Q4:1.11.0.6 pkgsrc-2017Q4-base:1.11 pkgsrc-2017Q3:1.11.0.4 pkgsrc-2017Q3-base:1.11 pkgsrc-2017Q2:1.10.0.28 pkgsrc-2017Q2-base:1.10 pkgsrc-2017Q1:1.10.0.26 pkgsrc-2017Q1-base:1.10 pkgsrc-2016Q4:1.10.0.24 pkgsrc-2016Q4-base:1.10 pkgsrc-2016Q3:1.10.0.22 pkgsrc-2016Q3-base:1.10 pkgsrc-2016Q2:1.10.0.20 pkgsrc-2016Q2-base:1.10 pkgsrc-2016Q1:1.10.0.18 pkgsrc-2016Q1-base:1.10 pkgsrc-2015Q4:1.10.0.16 pkgsrc-2015Q4-base:1.10 pkgsrc-2015Q3:1.10.0.14 pkgsrc-2015Q3-base:1.10 pkgsrc-2015Q2:1.10.0.12 pkgsrc-2015Q2-base:1.10 pkgsrc-2015Q1:1.10.0.10 pkgsrc-2015Q1-base:1.10 pkgsrc-2014Q4:1.10.0.8 pkgsrc-2014Q4-base:1.10 pkgsrc-2014Q3:1.10.0.6 pkgsrc-2014Q3-base:1.10 pkgsrc-2014Q2:1.10.0.4 pkgsrc-2014Q2-base:1.10 pkgsrc-2014Q1:1.10.0.2 pkgsrc-2014Q1-base:1.10 pkgsrc-2013Q4:1.9.0.4 pkgsrc-2013Q4-base:1.9 pkgsrc-2013Q3:1.9.0.2 pkgsrc-2013Q3-base:1.9 pkgsrc-2013Q2:1.8.0.4 pkgsrc-2013Q2-base:1.8 pkgsrc-2013Q1:1.8.0.2 pkgsrc-2013Q1-base:1.8 pkgsrc-2012Q4:1.7.0.2 pkgsrc-2012Q4-base:1.7 pkgsrc-2012Q3:1.6.0.6 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.4 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.2 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.5.0.20 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.18 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.16 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.14 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.12 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.10 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.8 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.6 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.4 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.2 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.4.0.2 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.3.0.2 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.1.1.1.0.2 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.18 date 2024.01.14.09.44.22; author wiz; state Exp; branches; next 1.17; commitid 6ux1xjhnxRhzQoUE; 1.17 date 2024.01.01.00.12.34; author wiz; state Exp; branches; next 1.16; commitid BvXKs257C5Bf6GSE; 1.16 date 2023.12.31.21.30.50; author wiz; state Exp; branches; next 1.15; commitid GwpQxaRjhkyLcFSE; 1.15 date 2022.12.15.23.22.03; author adam; state Exp; branches; next 1.14; commitid LQQKIsf7EOJe4I5E; 1.14 date 2022.02.04.15.18.18; author hauke; state Exp; branches; next 1.13; commitid FJXznhnOxzKztjrD; 1.13 date 2022.02.04.11.28.49; author hauke; state Exp; branches; next 1.12; commitid t5GIBobdMBz1dirD; 1.12 date 2019.01.04.21.50.31; author adam; state Exp; branches; next 1.11; commitid xV4kCeyeh6LtSv6B; 1.11 date 2017.09.18.11.59.12; author adam; state Exp; branches; next 1.10; commitid AzWgoeyFkv2fOF7A; 1.10 date 2014.03.12.09.59.28; author wiz; state Exp; branches; next 1.9; commitid T2g0Eqomxe9euosx; 1.9 date 2013.07.19.18.19.08; author joerg; state Exp; branches; next 1.8; commitid hx6veKxmgl9VP6Yw; 1.8 date 2013.03.17.15.47.15; author wiz; state Exp; branches; next 1.7; 1.7 date 2012.10.21.21.34.42; author wiz; state Exp; branches; next 1.6; 1.6 date 2012.02.07.11.54.41; author obache; state Exp; branches; next 1.5; 1.5 date 2009.08.09.21.45.47; author wiz; state Exp; branches; next 1.4; 1.4 date 2009.06.14.18.17.25; author joerg; state Exp; branches; next 1.3; 1.3 date 2009.02.17.15.35.45; author joerg; state Exp; branches; next 1.2; 1.2 date 2009.02.16.20.05.12; author joerg; state Exp; branches; next 1.1; 1.1 date 2008.11.18.15.45.56; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.11.18.15.45.56; author wiz; state Exp; branches; next ; desc @@ 1.18 log @py-lxml: update to 5.1.0. 5.1.0 (2024-01-05) ================== Features added -------------- * Parsing ASCII strings is slightly faster. Bugs fixed ---------- * GH#349: The HTML ``Cleaner()`` interpreted an accidentally provided string parameter for the ``host_whitelist`` as list of characters and silently failed to reject any hosts. Passing a non-collection is now rejected. Other changes ------------- * Support for Python 2.7 and Python versions < 3.6 was removed. * The wheel build was migrated to use ``cibuildwheel``. Patch by Primož Godec. @ text @@@comment $NetBSD$ ${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 ${PYSITELIB}/lxml/__init__.py ${PYSITELIB}/lxml/__init__.pyc ${PYSITELIB}/lxml/__init__.pyo ${PYSITELIB}/lxml/_elementpath.py ${PYSITELIB}/lxml/_elementpath.pyc ${PYSITELIB}/lxml/_elementpath.pyo ${PYSITELIB}/lxml/_elementpath.so ${PYSITELIB}/lxml/apihelpers.pxi ${PYSITELIB}/lxml/builder.py ${PYSITELIB}/lxml/builder.pyc ${PYSITELIB}/lxml/builder.pyo ${PYSITELIB}/lxml/builder.so ${PYSITELIB}/lxml/classlookup.pxi ${PYSITELIB}/lxml/cleanup.pxi ${PYSITELIB}/lxml/cssselect.py ${PYSITELIB}/lxml/cssselect.pyc ${PYSITELIB}/lxml/cssselect.pyo ${PYSITELIB}/lxml/debug.pxi ${PYSITELIB}/lxml/docloader.pxi ${PYSITELIB}/lxml/doctestcompare.py ${PYSITELIB}/lxml/doctestcompare.pyc ${PYSITELIB}/lxml/doctestcompare.pyo ${PYSITELIB}/lxml/dtd.pxi ${PYSITELIB}/lxml/etree.h ${PYSITELIB}/lxml/etree.pyx ${PYSITELIB}/lxml/etree.so ${PYSITELIB}/lxml/etree_api.h ${PYSITELIB}/lxml/extensions.pxi ${PYSITELIB}/lxml/html/ElementSoup.py ${PYSITELIB}/lxml/html/ElementSoup.pyc ${PYSITELIB}/lxml/html/ElementSoup.pyo ${PYSITELIB}/lxml/html/__init__.py ${PYSITELIB}/lxml/html/__init__.pyc ${PYSITELIB}/lxml/html/__init__.pyo ${PYSITELIB}/lxml/html/_diffcommand.py ${PYSITELIB}/lxml/html/_diffcommand.pyc ${PYSITELIB}/lxml/html/_diffcommand.pyo ${PYSITELIB}/lxml/html/_html5builder.py ${PYSITELIB}/lxml/html/_html5builder.pyc ${PYSITELIB}/lxml/html/_html5builder.pyo ${PYSITELIB}/lxml/html/_setmixin.py ${PYSITELIB}/lxml/html/_setmixin.pyc ${PYSITELIB}/lxml/html/_setmixin.pyo ${PYSITELIB}/lxml/html/builder.py ${PYSITELIB}/lxml/html/builder.pyc ${PYSITELIB}/lxml/html/builder.pyo ${PYSITELIB}/lxml/html/clean.py ${PYSITELIB}/lxml/html/clean.pyc ${PYSITELIB}/lxml/html/clean.pyo ${PYSITELIB}/lxml/html/clean.so ${PYSITELIB}/lxml/html/defs.py ${PYSITELIB}/lxml/html/defs.pyc ${PYSITELIB}/lxml/html/defs.pyo ${PYSITELIB}/lxml/html/diff.py ${PYSITELIB}/lxml/html/diff.pyc ${PYSITELIB}/lxml/html/diff.pyo ${PYSITELIB}/lxml/html/diff.so ${PYSITELIB}/lxml/html/formfill.py ${PYSITELIB}/lxml/html/formfill.pyc ${PYSITELIB}/lxml/html/formfill.pyo ${PYSITELIB}/lxml/html/html5parser.py ${PYSITELIB}/lxml/html/html5parser.pyc ${PYSITELIB}/lxml/html/html5parser.pyo ${PYSITELIB}/lxml/html/soupparser.py ${PYSITELIB}/lxml/html/soupparser.pyc ${PYSITELIB}/lxml/html/soupparser.pyo ${PYSITELIB}/lxml/html/usedoctest.py ${PYSITELIB}/lxml/html/usedoctest.pyc ${PYSITELIB}/lxml/html/usedoctest.pyo ${PYSITELIB}/lxml/includes/__init__.pxd ${PYSITELIB}/lxml/includes/__init__.py ${PYSITELIB}/lxml/includes/__init__.pyc ${PYSITELIB}/lxml/includes/__init__.pyo ${PYSITELIB}/lxml/includes/c14n.pxd ${PYSITELIB}/lxml/includes/config.pxd ${PYSITELIB}/lxml/includes/dtdvalid.pxd ${PYSITELIB}/lxml/includes/etree_defs.h ${PYSITELIB}/lxml/includes/etreepublic.pxd ${PYSITELIB}/lxml/includes/htmlparser.pxd ${PYSITELIB}/lxml/includes/lxml-version.h ${PYSITELIB}/lxml/includes/relaxng.pxd ${PYSITELIB}/lxml/includes/schematron.pxd ${PYSITELIB}/lxml/includes/tree.pxd ${PYSITELIB}/lxml/includes/uri.pxd ${PYSITELIB}/lxml/includes/xinclude.pxd ${PYSITELIB}/lxml/includes/xmlerror.pxd ${PYSITELIB}/lxml/includes/xmlparser.pxd ${PYSITELIB}/lxml/includes/xmlschema.pxd ${PYSITELIB}/lxml/includes/xpath.pxd ${PYSITELIB}/lxml/includes/xslt.pxd ${PYSITELIB}/lxml/isoschematron/__init__.py ${PYSITELIB}/lxml/isoschematron/__init__.pyc ${PYSITELIB}/lxml/isoschematron/__init__.pyo ${PYSITELIB}/lxml/isoschematron/resources/rng/iso-schematron.rng ${PYSITELIB}/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl ${PYSITELIB}/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl ${PYSITELIB}/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl ${PYSITELIB}/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl ${PYSITELIB}/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl ${PYSITELIB}/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl ${PYSITELIB}/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl ${PYSITELIB}/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt ${PYSITELIB}/lxml/iterparse.pxi ${PYSITELIB}/lxml/lxml.etree.h ${PYSITELIB}/lxml/lxml.etree_api.h ${PYSITELIB}/lxml/nsclasses.pxi ${PYSITELIB}/lxml/objectify.pyx ${PYSITELIB}/lxml/objectify.so ${PYSITELIB}/lxml/objectpath.pxi ${PYSITELIB}/lxml/parser.pxi ${PYSITELIB}/lxml/parsertarget.pxi ${PYSITELIB}/lxml/proxy.pxi ${PYSITELIB}/lxml/public-api.pxi ${PYSITELIB}/lxml/pyclasslookup.py ${PYSITELIB}/lxml/pyclasslookup.pyc ${PYSITELIB}/lxml/pyclasslookup.pyo ${PYSITELIB}/lxml/readonlytree.pxi ${PYSITELIB}/lxml/relaxng.pxi ${PYSITELIB}/lxml/sax.py ${PYSITELIB}/lxml/sax.pyc ${PYSITELIB}/lxml/sax.pyo ${PYSITELIB}/lxml/sax.so ${PYSITELIB}/lxml/saxparser.pxi ${PYSITELIB}/lxml/schematron.pxi ${PYSITELIB}/lxml/serializer.pxi ${PYSITELIB}/lxml/usedoctest.py ${PYSITELIB}/lxml/usedoctest.pyc ${PYSITELIB}/lxml/usedoctest.pyo ${PYSITELIB}/lxml/xinclude.pxi ${PYSITELIB}/lxml/xmlerror.pxi ${PYSITELIB}/lxml/xmlid.pxi ${PYSITELIB}/lxml/xmlschema.pxi ${PYSITELIB}/lxml/xpath.pxi ${PYSITELIB}/lxml/xslt.pxi ${PYSITELIB}/lxml/xsltext.pxi @ 1.17 log @py-lxml: switch back to egg.mk, this needs to support Python 2 for now Noticed by adam@@ Bump PKGREVISION. @ text @d2 6 a7 6 ${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 @ 1.16 log @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. @ text @d2 6 a7 6 ${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 @ 1.15 log @py-lxml: updated to 4.9.2 4.9.2 (2022-12-13) ================== Bugs fixed ---------- * CVE-2022-2309: A Bug in libxml2 2.9.1[0-4] could let namespace declarations from a failed parser run leak into later parser runs. This bug was worked around in lxml and resolved in libxml2 2.10.0. https://gitlab.gnome.org/GNOME/libxml2/-/issues/378 Other changes ------------- * LP-1981760: ``Element.attrib`` now registers as ``collections.abc.MutableMapping``. * lxml now has a static build setup for macOS on ARM64 machines (not used for building wheels). Patch by Quentin Leffray. @ text @d1 7 a7 7 @@comment $NetBSD: PLIST,v 1.14 2022/02/04 15:18:18 hauke 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 @ 1.14 log @Roll back the previous commit. The default tar extractor silently skipped the missing file ./src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl and after switching to gtar as extractor the package builds correctly. @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.12 2019/01/04 21:50:31 adam Exp $ d18 1 d23 2 d28 2 d33 1 d35 1 d38 1 d113 1 d116 2 d119 5 d127 2 d133 3 d139 7 @ 1.13 log @For reasons unknown, the Solarish build (OmniOSCE here) installs one file less than the others. Tweak the PLIST generation to make it so. @ text @d1 1 a1 1 @@comment $NetBSD$ d102 1 a102 1 ${PLIST.nosunos}${PYSITELIB}/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl @ 1.12 log @py-lxml: updated to 4.3.0 Features added * The module lxml.sax is compiled using Cython in order to speed it up. * lxml.sax.ElementTreeProducer now preserves the namespace prefixes. If two prefixes point to the same URI, the first prefix in alphabetical order is used. Patch by Lennart Regebro. * Updated ISO-Schematron implementation to 2013 version (now MIT licensed) and the corresponding schema to the 2016 version (with optional “properties”). Other changes * Support for Python 2.6 and 3.3 was removed. Patch by hugovk. * The minimum dependency versions were raised to libxml2 2.9.2 and libxslt 1.1.27, which were released in 2014 and 2012 respectively. * Built with Cython 0.29.2. @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.11 2017/09/18 11:59:12 adam Exp $ d102 1 a102 1 ${PYSITELIB}/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl @ 1.11 log @py-lxml: update to 4.0.0 4.0.0: Features added -------------- * The ElementPath implementation is now compiled using Cython, which speeds up the ``.find*()`` methods quite significantly. * The modules ``lxml.builder``, ``lxml.html.diff`` and ``lxml.html.clean`` are also compiled using Cython in order to speed them up. * ``xmlfile()`` supports async coroutines using ``async with`` and ``await``. * ``iterwalk()`` has a new method ``skip_subtree()`` that prevents walking into the descendants of the current element. * ``RelaxNG.from_rnc_string()`` accepts a ``base_url`` argument to allow relative resource lookups. * The XSLT result object has a new method ``.write_output(file)`` that serialises output data into a file according to the ```` configuration. Bugs fixed ---------- * GH-251: HTML comments were handled incorrectly by the soupparser. Patch by mozbugbox. * LP-1654544: The html5parser no longer passes the ``useChardet`` option if the input is a Unicode string, unless explicitly requested. When parsing files, the default is to enable it when a URL or file path is passed (because the file is then opened in binary mode), and to disable it when reading from a file(-like) object. Note: This is a backwards incompatible change of the default configuration. If your code parses byte strings/streams and depends on character detection, please pass the option ``guess_charset=True`` explicitly, which already worked in older lxml versions. * LP-1703810: ``etree.fromstring()`` failed to parse UTF-32 data with BOM. * LP-1526522: Some RelaxNG errors were not reported in the error log. * LP-1567526: Empty and plain text input raised a TypeError in soupparser. * LP-1710429: Uninitialised variable usage in HTML diff. * LP-1415643: The closing tags context manager in ``xmlfile()`` could continue to output end tags even after writing failed with an exception. * LP-1465357: ``xmlfile.write()`` now accepts and ignores None as input argument. * Compilation under Py3.7-pre failed due to a modified function signature. Other changes ------------- * The main module source files were renamed from ``lxml.*.pyx`` to plain ``*.pyx`` (e.g. ``etree.pyx``) to simplify their handling in the build process. Care was taken to keep the old header files as fallbacks for code that compiles against the public C-API of lxml, but it might still be worth validating that third-party code does not notice this change. @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.10 2014/03/12 09:59:28 wiz Exp $ d114 1 @ 1.10 log @Update to 3.3.3: 3.3.3 (2014-03-04) ================== Bugs fixed ---------- * Crash when using Element subtypes with ``__slots__``. Other changes ------------- * The internal classes ``_LogEntry`` and ``_Attrib`` can no longer be subclassed from Python code. 3.3.2 (2014-02-26) ================== Bugs fixed ---------- * The properties ``resolvers`` and ``version``, as well as the methods ``set_element_class_lookup()`` and ``makeelement()``, were lost from ``iterparse`` objects in 3.3.0. * LP#1222132: instances of ``XMLSchema``, ``Schematron`` and ``RelaxNG`` did not clear their local ``error_log`` before running a validation. * LP#1238500: lxml.doctestcompare mixed up "expected" and "actual" in attribute values. * Some file I/O tests were failing in MS-Windows due to non-portable temp file usage. Initial patch by Gabi Davar. * LP#910014: duplicate IDs in a document were not reported by DTD validation. * LP#1185332: ``tostring(method="html")`` did not use HTML serialisation semantics for trailing tail text. Initial patch by Sylvain Viollon. * LP#1281139: ``.attrib`` value of Comments lost its mutation methods in 3.3.0. Even though it is empty and immutable, it should still provide the same interface as that returned for Elements. @ text @d1 1 a1 1 @@comment $NetBSD$ d17 1 d21 1 d28 1 d30 1 d52 1 d59 1 d72 1 @ 1.9 log @Install as egg. Bump revision. @ text @d6 1 @ 1.8 log @Update to 3.1.0: 3.1.0 (2013-02-10) ================== Features added -------------- * GH#89: lxml.html.clean allows overriding the set of attributes that it considers 'safe'. Patch by Francis Devereux. Bugs fixed ---------- * LP#1104370: ``copy.copy(el.attrib)`` raised an exception. It now returns a copy of the attributes as a plain Python dict. * GH#95: When used with namespace prefixes, the ``el.find*()`` methods always used the first namespace mapping that was provided for each path expression instead of using the one that was actually passed in for the current run. * LP#1092521, GH#91: Fix undefined C symbol in Python runtimes compiled without threading support. Patch by Ulrich Seidl. Other changes ------------- 3.1beta1 (2012-12-21) ===================== Features added -------------- * New build-time option ``--with-unicode-strings`` for Python 2 that makes the API always return Unicode strings for names and text instead of byte strings for plain ASCII content. * New incremental XML file writing API ``etree.xmlfile()``. * E factory in lxml.objectify is callable to simplify the creation of tags with non-identifier names without having to resort to getattr(). Bugs fixed ---------- * When starting from a non-namespaced element in lxml.objectify, searching for a child without explicitly specifying a namespace incorrectly found namespaced elements with the requested local name, instead of restricting the search to non-namespaced children. * GH#85: Deprecation warnings were fixed for Python 3.x. * GH#33: lxml.html.fromstring() failed to accept bytes input in Py3. * LP#1080792: Static build of libxml2 2.9.0 failed due to missing file. Other changes ------------- * The externally useless class ``_ObjectifyElementMakerCaller`` was removed from the module API of lxml.objectify. * LP#1075622: lxml.builder is faster for adding text to elements with many children. Patch by Anders Hammarquist. @ text @d2 5 a6 1 ${PYSITELIB}/${EGG_FILE} @ 1.7 log @Update to 3.0.1. Remove unnecessary setuptools dependency. Mark as python3-ready. 3.0.1 (2012-10-14) ================== Bugs fixed ---------- * LP#1065924: Element proxies could disappear during garbage collection in PyPy without proper cleanup. * GH#71: Failure to work with libxml2 2.6.x. * LP#1065139: static MacOS-X build failed in Py3. 3.0 (2012-10-08) ================ Bugs fixed ---------- * End-of-file handling was incorrect in iterparse() when reading from a low-level C file stream and failed in libxml2 2.9.0 due to its improved consistency checks. Other changes ------------- * The build no longer uses Cython by default unless the generated C files are missing. To use Cython, pass the option "--with-cython". To ignore the fatal build error when Cython is required but not available (e.g. to run special setup.py commands that do not actually run a build), pass "--without-cython". 3.0beta1 (2012-09-26) ===================== Features added -------------- * Python level access to (optional) libxml2 memory debugging features to simplify debugging of memory leaks etc. Bugs fixed ---------- * Fix a memory leak in XPath by switching to Cython 0.17.1. * Some tests were adapted to work with PyPy. Other changes ------------- * The code was adapted to work with the upcoming libxml2 2.9.0 release. 3.0alpha2 (2012-08-23) ====================== Features added -------------- * The ``.iter()`` method of elements now accepts ``tag`` arguments like ``"{*}name"`` to search for elements with a given local name in any namespace. With this addition, all combinations of wildcards now work as expected: ``"{ns}name"``, ``"{}name"``, ``"{*}name"``, ``"{ns}*"``, ``"{}*"`` and ``"{*}*"``. Note that ``"name"`` is equivalent to ``"{}name"``, but ``"*"`` is ``"{*}*"``. The same change applies to the ``.getiterator()``, ``.itersiblings()``, ``.iterancestors()``, ``.iterdescendants()``, ``.iterchildren()`` and ``.itertext()`` methods;the ``strip_attributes()``, ``strip_elements()`` and ``strip_tags()`` functions as well as the ``iterparse()`` class. * C14N allows specifying the inclusive prefixes to be promoted to top-level during exclusive serialisation. Bugs fixed ---------- * Passing long Unicode strings into the ``feed()`` parser interface failed to read the entire string. 3.0alpha1 (2012-07-31) ====================== Features added -------------- * Initial support for building in PyPy (through cpyext). * DTD objects gained an API that allows read access to their declarations. * ``xpathgrep.py`` gained support for parsing line-by-line (e.g. from grep output) and for surrounding the output with a new root tag. * ``E-factory`` in ``lxml.builder`` accepts subtypes of known data types (such as string subtypes) when building elements around them. * Tree iteration and ``iterparse()`` with a selective ``tag`` argument supports passing a set of tags. Tree nodes will be returned by the iterators if they match any of the tags. Bugs fixed ---------- * The ``.find*()`` methods in ``lxml.objectify`` no longer use XPath internally, which makes them faster in many cases (especially when short circuiting after a single or couple of elements) and fixes some behavioural differences compared to ``lxml.etree``. Note that this means that they no longer support arbitrary XPath expressions but only the subset that the ``ElementPath`` language supports. The previous implementation was also redundant with the normal XPath support, which can be used as a replacement. * ``el.find('*')`` could accidentally return a comment or processing instruction that happened to be in the wrong spot. (Same for the other ``.find*()`` methods.) * The error logging is less intrusive and avoids a global setup where possible. * Fixed undefined names in html5lib parser. * ``xpathgrep.py`` did not work in Python 3. * ``Element.attrib.update()`` did not accept an ``attrib`` of another Element as parameter. * For subtypes of ``ElementBase`` that make the ``.text`` or ``.tail`` properties immutable (as in objectify, for example), inserting text when creating Elements through the E-Factory feature of the class constructor would fail with an exception, stating that the text cannot be modified. Other changes -------------- * The code base was overhauled to properly use 'const' where the API of libxml2 and libxslt requests it. This also has an impact on the public C-API of lxml itself, as defined in ``etreepublic.pxd``, as well as the provided declarations in the ``lxml/includes/`` directory. Code that uses these declarations may have to be adapted. On the plus side, this fixes several C compiler warnings, also for user code, thus making it easier to spot real problems again. * The functionality of "lxml.cssselect" was moved into a separate PyPI package called "cssselect". To continue using it, you must install that package separately. The "lxml.cssselect" module is still available and provides the same interface, provided the "cssselect" package can be imported at runtime. * Element attributes passed in as an ``attrib`` dict or as keyword arguments are now sorted by (namespaced) name before being created to make their order predictable for serialisation and iteration. Note that adding or deleting attributes afterwards does not take that order into account, i.e. setting a new attribute appends it after the existing ones. * Several classes that are for internal use only were removed from the ``lxml.etree`` module dict: ``_InputDocument, _ResolverRegistry, _ResolverContext, _BaseContext, _ExsltRegExp, _IterparseContext, _TempStore, _ExceptionContext, __ContentOnlyElement, _AttribIterator, _NamespaceRegistry, _ClassNamespaceRegistry, _FunctionNamespaceRegistry, _XPathFunctionNamespaceRegistry, _ParserDictionaryContext, _FileReaderContext, _ParserContext, _PythonSaxParserTarget, _TargetParserContext, _ReadOnlyProxy, _ReadOnlyPIProxy, _ReadOnlyEntityProxy, _ReadOnlyElementProxy, _OpaqueNodeWrapper, _OpaqueDocumentWrapper, _ModifyContentOnlyProxy, _ModifyContentOnlyPIProxy, _ModifyContentOnlyEntityProxy, _AppendOnlyElementProxy, _SaxParserContext, _FilelikeWriter, _ParserSchemaValidationContext, _XPathContext, _XSLTResolverContext, _XSLTContext, _XSLTQuotedStringParam`` * Several internal classes can no longer be inherited from: ``_InputDocument, _ResolverRegistry, _ExsltRegExp, _ElementUnicodeResult, _IterparseContext, _TempStore, _AttribIterator, _ClassNamespaceRegistry, _XPathFunctionNamespaceRegistry, _ParserDictionaryContext, _FileReaderContext, _PythonSaxParserTarget, _TargetParserContext, _ReadOnlyPIProxy, _ReadOnlyEntityProxy, _OpaqueDocumentWrapper, _ModifyContentOnlyPIProxy, _ModifyContentOnlyEntityProxy, _AppendOnlyElementProxy, _FilelikeWriter, _ParserSchemaValidationContext, _XPathContext, _XSLTResolverContext, _XSLTContext, _XSLTQuotedStringParam, _XSLTResultTree, _XSLTProcessingInstruction`` 2.3.6 (2012-09-28) ================== Bugs fixed ---------- * Passing long Unicode strings into the ``feed()`` parser interface failed to read the entire string. 2.3.5 (2012-07-31) ================== Bugs fixed ---------- * Crash when merging text nodes in ``element.remove()``. * Crash in sax/target parser when reporting empty doctype. 2.3.4 (2012-03-26) ================== Bugs fixed ---------- * Crash when building an nsmap (Element property) with empty namespace URIs. * Crash due to race condition when errors (or user messages) occur during threaded XSLT processing. * XSLT stylesheet compilation could ignore compilation errors. 2.3.3 (2012-01-04) ================== Features added -------------- * ``lxml.html.tostring()`` gained new serialisation options ``with_tail`` and ``doctype``. Bugs fixed ---------- * Fixed a crash when using ``iterparse()`` for HTML parsing and requesting start events. * Fixed parsing of more selectors in cssselect. Whitespace before pseudo-elements and pseudo-classes is significant as it is a descendant combinator. "E :pseudo" should parse the same as "E \*:pseudo", not "E:pseudo". Patch by Simon Sapin. * lxml.html.diff no longer raises an exception when hitting 'img' tags without 'src' attribute. @ text @d2 1 a2 5 ${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}/top_level.txt @ 1.6 log @Update py-lxml to 2.3.2. 2.3.2 (2011-11-11) ================== Features added -------------- * ``lxml.objectify.deannotate()`` has a new boolean option ``cleanup_namespaces`` to remove the objectify namespace declarations (and generally clean up the namespace declarations) after removing the type annotations. * ``lxml.objectify`` gained its own ``SubElement()`` function as a copy of ``etree.SubElement`` to avoid an otherwise redundant import of ``lxml.etree`` on the user side. Bugs fixed ---------- * Fixed the "descendant" bug in cssselect a second time (after a first fix in lxml 2.3.1). The previous change resulted in a serious performance regression for the XPath based evaluation of the translated expression. Note that this breaks the usage of some of the generated XPath expressions as XSLT location paths that previously worked in 2.3.1. * Fixed parsing of some selectors in cssselect. Whitespace after combinators ">", "+" and "~" is now correctly ignored. Previously is was parsed as a descendant combinator. For example, "div> .foo" was parsed the same as "div>* .foo" instead of "div>.foo". Other changes -------------- 2.3.1 (2011-09-25) ================== Features added -------------- * New option ``kill_tags`` in ``lxml.html.clean`` to remove specific tags and their content (i.e. their whole subtree). * ``pi.get()`` and ``pi.attrib`` on processing instructions to parse pseudo-attributes from the text content of processing instructions. * ``lxml.get_include()`` returns a list of include paths that can be used to compile external C code against lxml.etree. This is specifically required for statically linked lxml builds when code needs to compile against the exact same header file versions as lxml itself. * ``Resolver.resolve_file()`` takes an additional option ``close_file`` that configures if the file(-like) object will be closed after reading or not. By default, the file will be closed, as the user is not expected to keep a reference to it. Bugs fixed ---------- * HTML cleaning didn't remove 'data:' links. * The html5lib parser integration now uses the 'official' implementation in html5lib itself, which makes it work with newer releases of the library. * In ``lxml.sax``, ``endElementNS()`` could incorrectly reject a plain tag name when the corresponding start event inferred the same plain tag name to be in the default namespace. * When an open file-like object is passed into ``parse()`` or ``iterparse()``, the parser will no longer close it after use. This reverts a change in lxml 2.3 where all files would be closed. It is the users responsibility to properly close the file(-like) object, also in error cases. * Assertion error in lxml.html.cleaner when discarding top-level elements. * In lxml.cssselect, use the xpath 'A//B' (short for 'A/descendant-or-self::node()/B') instead of 'A/descendant::B' for the css descendant selector ('A B'). This makes a few edge cases like ``"div *:last-child"`` consistent with the selector behavior in WebKit and Firefox, and makes more css expressions valid location paths (for use in xsl:template match). * In lxml.html, non-selected ``