pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/py-cssselect



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Oct 12 14:42:51 UTC 2026

Modified Files:
        pkgsrc/textproc/py-cssselect: Makefile distinfo

Log Message:
py-cssselect: updated to 1.6.0

1.6.0

*   Dropped support for Python 3.10.

*   Added support for Python 3.15.

*   **Backward-incompatible change**: ``Relation``, which represents
    ``:has()``, now takes and exposes a list of ``(combinator, selector)``
    pairs as ``arguments``, replacing its ``combinator`` and ``subselector``
    arguments and attributes.

*   **Backward-incompatible change**: the
    ``GenericTranslator.xpath_relation_*_combinator()`` methods now take only
    the XPath expression of the ``:has()`` argument and return an XPath
    condition string. Translator subclasses that override them need to be
    updated.

*   ``:has()`` now supports any relative selector list, e.g.
    ``:has(> a.important, + p b)``, where it used to support a single
    argument made only of type, class and universal selectors.

*   ``:not()`` now supports a complex selector argument, e.g.
    ``:not(a.important[rel] > b)``.

*   Added support for the ``i`` and ``s`` attribute selector flags, e.g.
    ``[href^="HTTP" i]``, for ASCII case-insensitive and case-sensitive value
    matching.

*   ``*|element`` and ``[*|attrib]`` now match elements and attributes in any
    namespace, including none. They used to match only those with no
    namespace, like ``|element`` still does and the newly supported
    ``[|attrib]`` does.

    ``Element.namespace`` and ``Attrib.namespace`` are now ``"*"`` for the
    namespace wildcard.

*   Aligned the ``:enabled`` and ``:disabled`` pseudo-classes of
    ``HTMLTranslator`` with the HTML Living Standard:

    * ``input`` elements with no ``type`` attribute or with
      ``type="hidden"`` can now be ``:enabled`` and ``:disabled``.

    * Links (``a``, ``area`` and ``link`` with ``href``) are no longer
      ``:enabled``.

    * Form controls inside the first ``legend`` of a disabled ``fieldset`` are
      no longer ``:disabled``.

    * ``option`` elements inside a disabled ``optgroup`` are now
      ``:disabled``.

    * ``command`` elements are no longer ``:enabled`` or ``:disabled``, and
      ``keygen`` elements are no longer ``:enabled``.

*   Null and surrogate code points, both raw and escaped (e.g. ``\0``), are
    now replaced with U+FFFD, as the CSS specification requires. Raw null
    code points used to cause a ``SelectorSyntaxError``, and the others used
    to end up in the generated XPath.

*   The descendant combinator now translates into a ``descendant::`` step, e.g.
    ``e f`` into ``e/descendant::f`` instead of ``e/descendant-or-self::*/f``,
    which lxml evaluates faster.

*   Class selectors and the ``~=`` attribute operator now translate into an
    XPath expression that starts with a plain ``contains()`` check, which lxml
    evaluates faster on most documents.

*   Documented the support for ID selectors whose value is not a valid CSS
    identifier, e.g. ``#37signals``, as a non-standard extension.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/textproc/py-cssselect/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/textproc/py-cssselect/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-cssselect/Makefile
diff -u pkgsrc/textproc/py-cssselect/Makefile:1.13 pkgsrc/textproc/py-cssselect/Makefile:1.14
--- pkgsrc/textproc/py-cssselect/Makefile:1.13  Tue Aug 11 14:45:19 2026
+++ pkgsrc/textproc/py-cssselect/Makefile       Mon Oct 12 14:42:51 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2026/08/11 14:45:19 adam Exp $
+# $NetBSD: Makefile,v 1.14 2026/10/12 14:42:51 adam Exp $
 
-DISTNAME=      cssselect-1.5.0
+DISTNAME=      cssselect-1.6.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cssselect/}
@@ -11,6 +11,7 @@ COMMENT=      Parses CSS3 Selectors and trans
 LICENSE=       modified-bsd
 
 TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=1.27.0:../../devel/py-hatchling
+TEST_DEPENDS+= ${PYPKGPREFIX}-lxml>=0:../../textproc/py-lxml
 
 USE_LANGUAGES= # none
 

Index: pkgsrc/textproc/py-cssselect/distinfo
diff -u pkgsrc/textproc/py-cssselect/distinfo:1.12 pkgsrc/textproc/py-cssselect/distinfo:1.13
--- pkgsrc/textproc/py-cssselect/distinfo:1.12  Tue Aug 11 14:45:19 2026
+++ pkgsrc/textproc/py-cssselect/distinfo       Mon Oct 12 14:42:51 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.12 2026/08/11 14:45:19 adam Exp $
+$NetBSD: distinfo,v 1.13 2026/10/12 14:42:51 adam Exp $
 
-BLAKE2s (cssselect-1.5.0.tar.gz) = d45e1f828952fb0c8fef2c9e0d0b2d86696747405f64591bb5b3f6e232de75e2
-SHA512 (cssselect-1.5.0.tar.gz) = 7dd9a8e14c23fe58a1a0277fce50a63ea32eed950604db8033e5b5c7da601395ba96aec58e7b55051786952ee4f4a3694ea275b45d603c4572915b1249e99a93
-Size (cssselect-1.5.0.tar.gz) = 47598 bytes
+BLAKE2s (cssselect-1.6.0.tar.gz) = 1660c0a58739f0ae02026a0b187b4b5f579f614834b50a90d2135fa64623f190
+SHA512 (cssselect-1.6.0.tar.gz) = b46451f0a803e3b08775846707ed1b2318ec7cd741963d5c0876b95d560a627fc569beaadbd521ba9024a92b55e5482f9e841b71c2927820a7bb48571556fb5d
+Size (cssselect-1.6.0.tar.gz) = 51743 bytes



Home | Main Index | Thread Index | Old Index