pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-pyparsing py-pyparsing: updated to 3.0.7



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9d6085736898
branches:  trunk
changeset: 372193:9d6085736898
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Jan 21 11:31:47 2022 +0000

description:
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.

diffstat:

 devel/py-pyparsing/Makefile |  5 ++---
 devel/py-pyparsing/distinfo |  8 ++++----
 2 files changed, 6 insertions(+), 7 deletions(-)

diffs (27 lines):

diff -r fb4a82825eb4 -r 9d6085736898 devel/py-pyparsing/Makefile
--- a/devel/py-pyparsing/Makefile       Fri Jan 21 11:26:02 2022 +0000
+++ b/devel/py-pyparsing/Makefile       Fri Jan 21 11:31:47 2022 +0000
@@ -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/}
 
diff -r fb4a82825eb4 -r 9d6085736898 devel/py-pyparsing/distinfo
--- a/devel/py-pyparsing/distinfo       Fri Jan 21 11:26:02 2022 +0000
+++ b/devel/py-pyparsing/distinfo       Fri Jan 21 11:31:47 2022 +0000
@@ -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