py-pyparsing: updated to 2.2.2

Version 2.2.2 - September, 2018
-------------------------------
- Fixed bug in SkipTo, if a SkipTo expression that was skipping to
  an expression that returned a list (such as an And), and the
  SkipTo was saved as a named result, the named result could be
  saved as a ParseResults - should always be saved as a string.
  Issue 28, reported by seron.

- Added simple_unit_tests.py, as a collection of easy-to-follow unit
  tests for various classes and features of the pyparsing library.
  Primary intent is more to be instructional than actually rigorous
  testing. Complex tests can still be added in the unitTests.py file.

- New features added to the Regex class:
  - optional asGroupList parameter, returns all the capture groups as
    a list
  - optional asMatch parameter, returns the raw re.match result
  - new sub(repl) method, which adds a parse action calling
    re.sub(pattern, repl, parsed_result). Simplifies creating
    Regex expressions to be used with transformString. Like re.sub,
    repl may be an ordinary string (similar to using pyparsing's
    replaceWith), or may contain references to capture groups by group
    number, or may be a callable that takes an re match group and
    returns a string.

    For instance:
        expr = pp.Regex(r"([Hh]\d):\s*(.*)").sub(r"<\1>\2</\1>")
        expr.transformString("h1: This is the title")

    will return
        <h1>This is the title</h1>

- Fixed omission of LICENSE file in source tarball, also added
  CODE_OF_CONDUCT.md per GitHub community standards.


Version 2.2.1 - September, 2018
-------------------------------
- Applied changes necessary to migrate hosting of pyparsing source
  over to GitHub. Many thanks for help and contributions from hugovk,
  jdufresne, and cngkaygusuz among others through this transition,
  sorry it took me so long!

- Fixed import of collections.abc to address DeprecationWarnings
  in Python 3.7.

- Updated oc.py example to support function calls in arithmetic
  expressions; fixed regex for '==' operator; and added packrat
  parsing. Raised on the pyparsing wiki by Boris Marin, thanks!

- Fixed bug in select_parser.py example, group_by_terms was not
  reported. Reported on SF bugs by Adam Groszer, thanks Adam!

- Added "Getting Started" section to the module docstring, to
  guide new users to the most common starting points in pyparsing's
  API.

- Fixed bug in Literal and Keyword classes, which erroneously
  raised IndexError instead of ParseException.
This commit is contained in:
adam 2018-10-03 11:50:46 +00:00
parent ed4f228644
commit 06a452f73f
2 changed files with 10 additions and 12 deletions

View file

@ -1,18 +1,16 @@
# $NetBSD: Makefile,v 1.11 2017/06/01 13:31:46 wiz Exp $
# $NetBSD: Makefile,v 1.12 2018/10/03 11:50:46 adam Exp $
DISTNAME= pyparsing-2.2.0
DISTNAME= pyparsing-2.2.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyparsing/}
MASTER_SITES+= ${MASTER_SITE_PYPI:=p/pyparsing/}
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyparsing/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pyparsing.wikispaces.com/
HOMEPAGE= https://github.com/pyparsing/pyparsing
COMMENT= Parsing module for Python
LICENSE= mit
USE_LANGUAGES= # none
#BOOTSTRAP_SETUPTOOLS= yes
USE_LANGUAGES= # none
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.8 2017/04/07 03:35:12 adam Exp $
$NetBSD: distinfo,v 1.9 2018/10/03 11:50:46 adam Exp $
SHA1 (pyparsing-2.2.0.tar.gz) = f8504f4f8baa69de5b63fd2275a0ebf36a2cf74b
RMD160 (pyparsing-2.2.0.tar.gz) = d0527da2c5f27bff03647157e4c50cacdc1293f0
SHA512 (pyparsing-2.2.0.tar.gz) = 6a409f429d40a5ac202d144e4150de2c80d7c7120147f603f72a4a99797d48c50822a6437f590ec5ae4418d51aa1f6b1d4e5d95a57e19bec0a127b04e4937008
Size (pyparsing-2.2.0.tar.gz) = 1232522 bytes
SHA1 (pyparsing-2.2.2.tar.gz) = ab898372ceb30961aa862f47eb8acf81b96405ab
RMD160 (pyparsing-2.2.2.tar.gz) = e8fb80e5c6511ff657871ed8274186e0539c0701
SHA512 (pyparsing-2.2.2.tar.gz) = 911fa94403c04a2c676e67072f16c6705422b0938199404f5c2c2dc14f454217c88bd237664cae2355f948e42279f9e7fc738583b027c787863870c9c08c0620
Size (pyparsing-2.2.2.tar.gz) = 837646 bytes