Fri Jan 21 11:31:47 2022 UTC ()
py-pyparsing: updated to 3.0.7
Version 3.0.7
-------------
- Fixed bug 345, in which delimitedList changed expressions in place
using expr.streamline(). Reported by Kim Grč¾°sman, thanks!
- Fixed bug 346, when a string of word characters was passed to WordStart
or WordEnd instead of just taking the default value. Originally posted
as a question by Parag on StackOverflow, good catch!
- Fixed bug 350, in which White expressions could fail to match due to
unintended whitespace-skipping. Reported by Fu Hanxi, thank you!
- Fixed bug 355, when a QuotedString is defined with characters in its
quoteChar string containing regex-significant characters such as ., *,
?, [, ], etc.
- Fixed bug in ParserElement.run_tests where comments would be displayed
using with_line_numbers.
- Added optional "min" and "max" arguments to `delimited_list`. PR
submitted by Marius, thanks!
- Added new API change note in `whats_new_in_pyparsing_3_0_0`, regarding
a bug fix in the `bool()` behavior of `ParseResults`.
Prior to pyparsing 3.0.x, the `ParseResults` class implementation of
`__bool__` would return `False` if the `ParseResults` item list was empty,
even if it contained named results. In 3.0.0 and later, `ParseResults` will
return `True` if either the item list is not empty *or* if the named
results dict is not empty.
# generate an empty ParseResults by parsing a blank string with
# a ZeroOrMore
result = Word(alphas)[...].parse_string("")
print(result.as_list())
print(result.as_dict())
print(bool(result))
# add a results name to the result
result["name"] = "empty result"
print(result.as_list())
print(result.as_dict())
print(bool(result))
Prints:
[]
{}
False
[]
{'name': 'empty result'}
True
In previous versions, the second call to `bool()` would return `False`.
- Minor enhancement to Word generation of internal regular expression, to
emit consecutive characters in range, such as "ab", as "ab", not "a-b".
- Fixed character ranges for search terms using non-Western characters
in booleansearchparser, PR submitted by tc-yu, nice work!
- Additional type annotations on public methods.
(adam)
diff -r1.24 -r1.25 pkgsrc/devel/py-pyparsing/Makefile
diff -r1.24 -r1.25 pkgsrc/devel/py-pyparsing/distinfo
--- pkgsrc/devel/py-pyparsing/Makefile 2022/01/04 20:53:34 1.24
+++ pkgsrc/devel/py-pyparsing/Makefile 2022/01/21 11:31:47 1.25
| @@ -1,18 +1,17 @@ | | | @@ -1,18 +1,17 @@ |
1 | # $NetBSD: Makefile,v 1.24 2022/01/04 20:53:34 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.25 2022/01/21 11:31:47 adam Exp $ |
2 | | | 2 | |
3 | DISTNAME= pyparsing-3.0.6 | | 3 | DISTNAME= pyparsing-3.0.7 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
5 | PKGREVISION= 1 | | | |
6 | CATEGORIES= devel python | | 5 | CATEGORIES= devel python |
7 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyparsing/} | | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyparsing/} |
8 | | | 7 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://github.com/pyparsing/pyparsing | | 9 | HOMEPAGE= https://github.com/pyparsing/pyparsing |
11 | COMMENT= Parsing module for Python | | 10 | COMMENT= Parsing module for Python |
12 | LICENSE= mit | | 11 | LICENSE= mit |
13 | | | 12 | |
14 | USE_LANGUAGES= # none | | 13 | USE_LANGUAGES= # none |
15 | | | 14 | |
16 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | | 15 | PYTHON_VERSIONS_INCOMPATIBLE= 27 |
17 | | | 16 | |
18 | .include "../../lang/python/egg.mk" | | 17 | .include "../../lang/python/egg.mk" |
--- pkgsrc/devel/py-pyparsing/distinfo 2021/11/13 09:52:40 1.24
+++ pkgsrc/devel/py-pyparsing/distinfo 2022/01/21 11:31:47 1.25
| @@ -1,5 +1,5 @@ | | | @@ -1,5 +1,5 @@ |
1 | $NetBSD: distinfo,v 1.24 2021/11/13 09:52:40 adam Exp $ | | 1 | $NetBSD: distinfo,v 1.25 2022/01/21 11:31:47 adam Exp $ |
2 | | | 2 | |
3 | BLAKE2s (pyparsing-3.0.6.tar.gz) = 82e190438d3df5ef1ce4e0aab987c2250a54e6823e49f597faa3460d594cd085 | | 3 | BLAKE2s (pyparsing-3.0.7.tar.gz) = 7c6ed7109b79c8b886a0fc854d7b518285e49e68001355a479968c6033ef931f |
4 | SHA512 (pyparsing-3.0.6.tar.gz) = dd2a77f717ccf8e0f16286eae84fafa0ff14aea2703673efcb3ac13c3f6cc76f146d9e9402d1f83d9aa40bd819f24440a122bd0832bb7df615b64d1b7ee2fded | | 4 | SHA512 (pyparsing-3.0.7.tar.gz) = 1e692f4cdaa6b6e8ca2729d0a3e2ba16d978f1957c538b6de3a4220ec7d996bdbe87c41c43abab851fffa3b0498a05841373e435602917b8c095042e273badb5 |
5 | Size (pyparsing-3.0.6.tar.gz) = 882365 bytes | | 5 | Size (pyparsing-3.0.7.tar.gz) = 884709 bytes |