Wed Aug 21 13:03:41 2019 UTC ()
py-pyparsing: updated to 2.4.2
Version 2.4.2:
- Updated the shorthand notation that has been added for repetition
expressions: expr[min, max], with '...' valid as a min or max value:
- expr[...] and expr[0, ...] are equivalent to ZeroOrMore(expr)
- expr[1, ...] is equivalent to OneOrMore(expr)
- expr[n, ...] or expr[n,] is equivalent
to expr*n + ZeroOrMore(expr)
(read as "n or more instances of expr")
- expr[..., n] is equivalent to expr*(0, n)
- expr[m, n] is equivalent to expr*(m, n)
Note that expr[..., n] and expr[m, n] do not raise an exception
if more than n exprs exist in the input stream. If this
behavior is desired, then write expr[..., n] + ~expr.
Better interpretation of [...] as ZeroOrMore raised by crowsonkb,
thanks for keeping me in line!
If upgrading from 2.4.1 or 2.4.1.1 and you have used `expr[...]`
for `OneOrMore(expr)`, it must be updated to `expr[1, ...]`.
- The defaults on all the `__diag__` switches have been set to False,
to avoid getting alarming warnings. To use these diagnostics, set
them to True after importing pyparsing.
Example:
import pyparsing as pp
pp.__diag__.warn_multiple_tokens_in_named_alternation = True
- Fixed bug introduced by the use of __getitem__ for repetition,
overlooking Python's legacy implementation of iteration
by sequentially calling __getitem__ with increasing numbers until
getting an IndexError. Found during investigation of problem
reported by murlock, merci!
(adam)
diff -r1.15 -r1.16 pkgsrc/devel/py-pyparsing/Makefile
diff -r1.12 -r1.13 pkgsrc/devel/py-pyparsing/distinfo
--- pkgsrc/devel/py-pyparsing/Makefile 2019/04/08 10:41:05 1.15
+++ pkgsrc/devel/py-pyparsing/Makefile 2019/08/21 13:03:41 1.16
| @@ -1,16 +1,16 @@ | | | @@ -1,16 +1,16 @@ |
1 | # $NetBSD: Makefile,v 1.15 2019/04/08 10:41:05 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.16 2019/08/21 13:03:41 adam Exp $ |
2 | | | 2 | |
3 | DISTNAME= pyparsing-2.4.0 | | 3 | DISTNAME= pyparsing-2.4.2 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
5 | CATEGORIES= devel python | | 5 | CATEGORIES= devel python |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyparsing/} | | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyparsing/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://github.com/pyparsing/pyparsing | | 9 | HOMEPAGE= https://github.com/pyparsing/pyparsing |
10 | COMMENT= Parsing module for Python | | 10 | COMMENT= Parsing module for Python |
11 | LICENSE= mit | | 11 | LICENSE= mit |
12 | | | 12 | |
13 | USE_LANGUAGES= # none | | 13 | USE_LANGUAGES= # none |
14 | | | 14 | |
15 | .include "../../lang/python/egg.mk" | | 15 | .include "../../lang/python/egg.mk" |
16 | .include "../../mk/bsd.pkg.mk" | | 16 | .include "../../mk/bsd.pkg.mk" |
--- pkgsrc/devel/py-pyparsing/distinfo 2019/04/08 10:41:05 1.12
+++ pkgsrc/devel/py-pyparsing/distinfo 2019/08/21 13:03:41 1.13
| @@ -1,6 +1,6 @@ | | | @@ -1,6 +1,6 @@ |
1 | $NetBSD: distinfo,v 1.12 2019/04/08 10:41:05 adam Exp $ | | 1 | $NetBSD: distinfo,v 1.13 2019/08/21 13:03:41 adam Exp $ |
2 | | | 2 | |
3 | SHA1 (pyparsing-2.4.0.tar.gz) = dfddeaf3e8973875693d1a40ccee87f39dd120bd | | 3 | SHA1 (pyparsing-2.4.2.tar.gz) = a0154a4285e7f04c7dfec2c6f5c1747e14162743 |
4 | RMD160 (pyparsing-2.4.0.tar.gz) = 6d139406b6b5bee25d04df435c8b42c0dabf10ea | | 4 | RMD160 (pyparsing-2.4.2.tar.gz) = 24404a320de32832a3053a929dd1fc884b03c737 |
5 | SHA512 (pyparsing-2.4.0.tar.gz) = 71877dc006cce5c1b1d45e7cc89cd60e03cb80353387fb0c6498cfc0d69af465dc574d1bceb87248033e7a82694aa940e9fce1ca80b2ef538a8df51f697ef530 | | 5 | SHA512 (pyparsing-2.4.2.tar.gz) = 27e5959eb1cf0c4d899746d2d32f5f000c3753278bdbbb670d24a077053e5c08caf8429f684186c502f6d9bf358702e0a8b3fea40cd2b50807cf02ea38c750dd |
6 | Size (pyparsing-2.4.0.tar.gz) = 611956 bytes | | 6 | Size (pyparsing-2.4.2.tar.gz) = 642860 bytes |