The NetBSD Project

CVS log for pkgsrc/textproc/py-cssselect/distinfo

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / textproc / py-cssselect

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Oct 12 14:42:51 2026 UTC (4 weeks, 6 days ago) by adam
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -4 lines
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.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Aug 11 14:45:19 2026 UTC (3 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4 lines
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.

*   Fixed ``Selector.specificity()`` calculation for the ``:is()``,
    ``:where()`` and ``:matches()`` pseudo-classes.

*   Fixed issues with whitespace and comment handling inside some selectors.

*   Fixed some exception types and messages.

*   Improved the docs about the ``:has()``, ``:is()`` and ``:where()``
    pseudo-classes and the `!=`` attribute operator.

*   Test improvements.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Feb 9 13:45:11 2026 UTC (9 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -4 lines
py-cssselect: updated to 1.4.0

Version 1.4.0

* Dropped support for Python 3.9 and PyPy 3.10.
* Added support for Python 3.14 and PyPy 3.11.
* Switched the build system to ``hatchling``.
* CI fixes and improvements.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Mar 13 15:19:52 2025 UTC (20 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -4 lines
py-cssselect: updated to 1.3.0

Version 1.3.0

* Dropped support for Python 3.7-3.8, added support for Python 3.12-3.13 and
  PyPy 3.10.
* Removed ``_unicode_safe_getattr()``, deprecated in 1.2.0.
* Added ``pre-commit`` and formatted the code with ``ruff``.
* Many CI additions and improvements.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jan 11 11:48:35 2023 UTC (3 years, 10 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4 lines
py-cssselect: updated to 1.2.0

Version 1.2.0
-------------
* Drop support for Python 2.7, 3.4-3.6, add support for Python 3.7-3.11.
* Add type annotations (PEP 484 and PEP 561).
* More features from the CSS Selectors Level 4:
  * The ``:is()`` pseudo-class.
  * The ``:where()`` pseudo-class.
  * The ``:has()`` pseudo-class, with some limitations.
* Fix parsing ``:scope`` after a comma.
* Add parentheses to fix condition precedence in some cases.
* Private API changes related to the removal of the Python 2 support:
  * Remove ``_unicode`` and ``_unichr`` aliases from ``csselect.parser``.
  * Remove ``_basestring`` and ``_unicode`` aliases from ``csselect.xpath``.
  * Deprecate ``csselect.xpath._unicode_safe_getattr()`` and change it to just
    call ``getattr()``.
* Include tests in the PyPI tarball.
* Many CI additions and improvements.
* Improve the test coverage.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Oct 26 11:23:01 2021 UTC (5 years ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
textproc: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Oct 7 15:02:08 2021 UTC (5 years, 1 month ago) by nia
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -2 lines
textproc: Remove SHA1 hashes for distfiles

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Aug 12 20:00:45 2019 UTC (7 years, 3 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -5 lines
py-cssselect: updated to 1.1.0

Version 1.1.0
*   Support for the :scope selector, which allows to access immediate
    children of a selector.
*   Support for the |E syntax for type selectors without a namespace.
*   A new selector method, canonical, returns the CSS expression of the
    selector, as a string.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jan 1 21:28:59 2018 UTC (8 years, 10 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -5 lines
py-cssselect: updated to 1.0.3

Version 1.0.3
* Fix artifact uploads to pypi

Version 1.0.2
* Drop support for Python 2.6 and Python 3.3.
* Fix deprecation warning in Python 3.6.
* Minor cleanups.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Feb 13 17:58:47 2017 UTC (9 years, 9 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -5 lines
Version 1.0.1
* Add support for Python 3.6.
* Documentation hosted `on Read the Docs <https://cssselect.readthedocs.io/>`_

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Nov 4 02:00:02 2015 UTC (11 years ago) by agc
Branches: MAIN
CVS tags: pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1 lines
Add SHA512 digests for distfiles for textproc category

Problems found locating distfiles:
	Package cabocha: missing distfile cabocha-0.68.tar.bz2
	Package convertlit: missing distfile clit18src.zip
	Package php-enchant: missing distfile php-enchant/enchant-1.1.0.tgz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Apr 11 17:58:35 2014 UTC (12 years, 7 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -4 lines
Update to 0.9.1:

Version 0.9.1
-------------

Released on 2013-10-17.

* **Backward incompatible change from 0.9**:
  :meth:`~GenericTranslator.selector_to_xpath` defaults to
  ignoring pseudo-elements,
  as it did in 0.8 and previous versions.
  (:meth:`~GenericTranslator.css_to_xpath` doesn’t change.)
* Drop official support for Python 2.4 and 3.1,
  as testing was becoming difficult.
  Nothing will break overnight,
  but future releases may on may not work on these versions.
  Older releases will remain available on PyPI.


Version 0.9
-----------

Released on 2013-10-11.

Add parser support for :attr:`functional
pseudo-elements <Selector.pseudo_element>`.

*Update:*
This version accidentally introduced a **backward incompatible** change:
:meth:`~GenericTranslator.selector_to_xpath` defaults to
rejecting pseudo-elements instead of ignoring them.


Version 0.8
-----------

Released on 2013-03-15.

Improvements:

* `#22 <https://github.com/SimonSapin/cssselect/issues/22>`_
  Let extended translators override what XPathExpr class is used
* `#19 <https://github.com/SimonSapin/cssselect/issues/19>`_
  Use the built-in ``lang()`` XPath function
  for implementing the ``:lang()`` pseudo-class
  with XML documents.
  This is probably faster than ``ancestor-or-self::``.

Bug fixes:

* `#14 <https://github.com/SimonSapin/cssselect/issues/14>`_
  Fix non-ASCII pseudo-classes. (Invalid selector instead of crash.)
* `#20 <https://github.com/SimonSapin/cssselect/issues/20>`_
  As per the spec, elements containing only whitespace are not considered empty
  for the ``:empty`` pseudo-class.


Version 0.7.1
-------------

Released on 2012-06-14. Code name *remember-to-test-with-tox*.

0.7 broke the parser in Python 2.4 and 2.5; the tests in 2.x.
Now all is well again.

Also, pseudo-elements are now correctly made lower-case. (They are supposed
to be case-insensitive.)

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jan 13 15:20:35 2013 UTC (13 years, 10 months ago) by jakllsch
Branches: MAIN
CVS tags: pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1
Add py-cssselect.

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.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>