pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/py-soupsieve



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Nov 22 19:53:07 UTC 2026

Modified Files:
        pkgsrc/www/py-soupsieve: Makefile distinfo

Log Message:
py-soupsieve: update to 4.1.3.

4.1.3

FIX: Fix filter() given a list of tags taking time and memory quadratic in the number of top level elements
of a document, such as a fragment parsed with html.parser, for selectors that count siblings, like
:nth-child() or :first-of-type. The tags were grouped by their top level element, so each top level element
counted all of its siblings again with caches of its own. The tags of a document now share one group, as with
select().
FIX: Fix of-type selectors, such as :first-of-type, :last-of-type, :only-of-type, and
:nth-of-type(), taking time quadratic in the number of siblings when many of them have distinct tag names, as
the siblings were scanned again for each tag name. Siblings of every type now share one scan.
FIX: :lang() stops checking a language against its list of values at the first value that matches. Along with
each distinct language being matched against a list only once per select, a list with many values no longer costs
time for every element.
FIX: Document that max_selectors does not limit the length of selector strings, or the number of values in
the argument of a pseudo-class, and that limiting the length of selectors, if that is a concern, is the
responsibility of the application.

4.1.2

FIX: Fix :lang() taking time quadratic in the number of top level elements of a fragment that have an html
or head child, such as many documents concatenated and parsed with html.parser, as the content language
found in the header of each one was cached in a list that was searched for every new top level element.
FIX: Fix :lang() taking time quadratic in the size of the document when many elements share a long language
tag, such as one inherited from <html lang>, as the tag was checked and matched again for every element.
FIX: Fix :-soup-contains() taking time quadratic in the depth of the document, such as a long list of
unclosed <li> parsed with html.parser, as the text of every element, which includes that of all its
descendants, was gathered and searched again for every element.
FIX: NOCACHE now turns off the caches of the content language in a document's header, of the forms of a
document, and of the selected options of a select, so :lang(), :default, :indeterminate and :checked
see changes made to the tree during a lazy iteration such as iselect().
FIX: Slimmed relation caches so they now take roughly half the memory.
FIX: Fix nth selectors with very large An+B values raising an OverflowError when matching, and
matching the wrong elements when a value is larger than 2^53, as the position of an element was checked with a
float division. A value with more digits than Python will convert to an integer now raises a
SelectorSyntaxError instead of a ValueError.
FIX: filter() given a list of tags now matches the tags under the same top level element together, sharing
the caches that keep matching linear, instead of matching each tag separately, which took time quadratic in the
depth of a nested document for any selector. A selector that uses :scope or & still matches each tag
separately, as each tag is its own scope.
FIX: The ignore option now disallows a pseudo-class however its name is written, as names were compared
without resolving CSS escapes, so a name written with an escape, such as :h\61 s(), was not disallowed. Document
that each alias of a pseudo-class, such as :contains() for :-soup-contains(), must be listed as well.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 pkgsrc/www/py-soupsieve/Makefile \
    pkgsrc/www/py-soupsieve/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-soupsieve/Makefile
diff -u pkgsrc/www/py-soupsieve/Makefile:1.30 pkgsrc/www/py-soupsieve/Makefile:1.31
--- pkgsrc/www/py-soupsieve/Makefile:1.30       Sun Nov 15 22:27:43 2026
+++ pkgsrc/www/py-soupsieve/Makefile    Sun Nov 22 19:53:07 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.30 2026/11/15 22:27:43 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2026/11/22 19:53:07 wiz Exp $
 
-DISTNAME=      soupsieve-4.1.1
+DISTNAME=      soupsieve-4.1.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/soupsieve/}
Index: pkgsrc/www/py-soupsieve/distinfo
diff -u pkgsrc/www/py-soupsieve/distinfo:1.30 pkgsrc/www/py-soupsieve/distinfo:1.31
--- pkgsrc/www/py-soupsieve/distinfo:1.30       Sun Nov 15 22:27:43 2026
+++ pkgsrc/www/py-soupsieve/distinfo    Sun Nov 22 19:53:07 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.30 2026/11/15 22:27:43 wiz Exp $
+$NetBSD: distinfo,v 1.31 2026/11/22 19:53:07 wiz Exp $
 
-BLAKE2s (soupsieve-4.1.1.tar.gz) = f0efeb88eb123f301faa581ff449deafd2e8af3830328ebcf924b4e145baca2f
-SHA512 (soupsieve-4.1.1.tar.gz) = 94df14a715bc901a5925f64378ccfa1f505a072fa15f3e86a91cdc1e8aa8bfad608a3a7117020ff04fb669d214dd0210cb2857316e2a1c1b8b0d868032fc8817
-Size (soupsieve-4.1.1.tar.gz) = 169784 bytes
+BLAKE2s (soupsieve-4.1.3.tar.gz) = 6f75dbc7e80b618c37d3f8187b0e88c3c422014aa1d8481e9fc0c541aabbbea4
+SHA512 (soupsieve-4.1.3.tar.gz) = 69f2c22a86998fcf8b4a46122e11f297fe8e616f5287dcc14862b84269dbaf008c84e0f29c8e5394a529619e20e894f0f1eef7b61decf0f7ea1b6206ada884a1
+Size (soupsieve-4.1.3.tar.gz) = 181564 bytes



Home | Main Index | Thread Index | Old Index