BSD Ports

textproc/py-cssselect 1.5.0 NetBSD

Parses CSS3 Selectors and translates them to XPath 1.0

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
c9c0d35915
License
modified-bsd
Categories
textproc, python
Package size
45.4 KiB, 267.2 KiB installed

Description

cssselect parses CSS3 Selectors and translate them to XPath 1.0 expressions. Such expressions can be used in lxml or another XPath engine to find the matching elements in an XML or HTML document.

This module used to live inside of lxml as lxml.cssselect before it was extracted as a stand-alone project.

In the other systems

SystemPortVersion
NetBSDtextproc/py-cssselect1.5.0
OpenBSDtextproc/py-cssselect1.5.0
DragonFlywww/py-cssselect1.3.0

Install

Binary package:

pkgin install py311-cssselect

From pkgsrc:

cd /usr/pkgsrc/textproc/py-cssselect && make install clean

Dependencies

Run dependencies 1

Configuration

No options to configure.

Service scripts
none
Flavors
py312-cssselect-1.5.0, py313-cssselect-1.5.0, py314-cssselect-1.5.0

Commit history 2

DateCommitCreditsLog message
c9c0d35915 adam 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 …
92c72fa616 adam py-cssselect: updated to 1.5.0
1.5.0 * **Backward-incompatible change**: removed the no longer used ``closing_combiner`` and ``has_inner_condition`` arguments of ``XPathExpr.join()``. They were added for ``:has()`` support which no longer needs them. * Fixed and improved support for the following selector features: * ``:has()`` pseudo-class. * ``:is()``, ``:where()`` and ``:matches()`` pseudo-classes. * ``:scope`` pseudo-class. * ``:only-child`` and ``:only-of-type`` pseudo-classes. * Namespaces (``|``). * ``An+B`` arguments of pseudo-classes. * Type selectors in predicates. * Fixed some issues with the ``Selector.canonical()`` method. * Improved the ``Element.__repr__()`` and ``Relation.__repr__()`` methods. …