pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-pyparsing
Module Name: pkgsrc
Committed By: adam
Date: Fri Jan 21 11:31:47 UTC 2022
Modified Files:
pkgsrc/devel/py-pyparsing: Makefile distinfo
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/devel/py-pyparsing/Makefile \
pkgsrc/devel/py-pyparsing/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-pyparsing/Makefile
diff -u pkgsrc/devel/py-pyparsing/Makefile:1.24 pkgsrc/devel/py-pyparsing/Makefile:1.25
--- pkgsrc/devel/py-pyparsing/Makefile:1.24 Tue Jan 4 20:53:34 2022
+++ pkgsrc/devel/py-pyparsing/Makefile Fri Jan 21 11:31:47 2022
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2022/01/04 20:53:34 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2022/01/21 11:31:47 adam Exp $
-DISTNAME= pyparsing-3.0.6
+DISTNAME= pyparsing-3.0.7
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyparsing/}
Index: pkgsrc/devel/py-pyparsing/distinfo
diff -u pkgsrc/devel/py-pyparsing/distinfo:1.24 pkgsrc/devel/py-pyparsing/distinfo:1.25
--- pkgsrc/devel/py-pyparsing/distinfo:1.24 Sat Nov 13 09:52:40 2021
+++ pkgsrc/devel/py-pyparsing/distinfo Fri Jan 21 11:31:47 2022
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.24 2021/11/13 09:52:40 adam Exp $
+$NetBSD: distinfo,v 1.25 2022/01/21 11:31:47 adam Exp $
-BLAKE2s (pyparsing-3.0.6.tar.gz) = 82e190438d3df5ef1ce4e0aab987c2250a54e6823e49f597faa3460d594cd085
-SHA512 (pyparsing-3.0.6.tar.gz) = dd2a77f717ccf8e0f16286eae84fafa0ff14aea2703673efcb3ac13c3f6cc76f146d9e9402d1f83d9aa40bd819f24440a122bd0832bb7df615b64d1b7ee2fded
-Size (pyparsing-3.0.6.tar.gz) = 882365 bytes
+BLAKE2s (pyparsing-3.0.7.tar.gz) = 7c6ed7109b79c8b886a0fc854d7b518285e49e68001355a479968c6033ef931f
+SHA512 (pyparsing-3.0.7.tar.gz) = 1e692f4cdaa6b6e8ca2729d0a3e2ba16d978f1957c538b6de3a4220ec7d996bdbe87c41c43abab851fffa3b0498a05841373e435602917b8c095042e273badb5
+Size (pyparsing-3.0.7.tar.gz) = 884709 bytes
Home |
Main Index |
Thread Index |
Old Index