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 2.4.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a4f7065df116
branches:  trunk
changeset: 332307:a4f7065df116
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Apr 08 10:41:05 2019 +0000

description:
py-pyparsing: updated to 2.4.0

Version 2.4.0:

- Well, it looks like the API change that was introduced in 2.3.1 was more
  drastic than expected, so for a friendlier forward upgrade path, this
  release:
  . Bumps the current version number to 2.4.0, to reflect this
    incompatible change.
  . Adds a pyparsing.__compat__ object for specifying compatibility with
    future breaking changes.
  . Conditionalizes the API-breaking behavior, based on the value
    pyparsing.__compat__.collect_all_And_tokens.  By default, this value
    will be set to True, reflecting the new bugfixed behavior. To set this
    value to False, add to your code:

        import pyparsing
        pyparsing.__compat__.collect_all_And_tokens = False

  . User code that is dependent on the pre-bugfix behavior can restore
    it by setting this value to False.

  In 2.5 and later versions, the conditional code will be removed and
  setting the flag to True or False in these later versions will have no
  effect.

- Updated unitTests.py and simple_unit_tests.py to be compatible with
  "python setup.py test". To run tests using setup, do:

      python setup.py test
      python setup.py test -s unitTests.suite
      python setup.py test -s simple_unit_tests.suite

- Fixed bug in runTests handling '\n' literals in quoted strings.

- Added tag_body attribute to the start tag expressions generated by
  makeHTMLTags, so that you can avoid using SkipTo to roll your own
  tag body expression:

      a, aEnd = pp.makeHTMLTags('a')
      link = a + a.tag_body("displayed_text") + aEnd
      for t in s.searchString(html_page):
          print(t.displayed_text, '->', t.startA.href)

- indentedBlock failure handling was improved

- Address Py2 incompatibility in simpleUnitTests, plus explain() and
  Forward str() cleanup.

- Fixed docstring with embedded '\w', which creates SyntaxWarnings in
  Py3.8.

- Examples:
  - Added example parser for rosettacode.org tutorial compiler.

  - Added example to show how an HTML table can be parsed into a
    collection of Python lists or dicts, one per row.

  - Updated SimpleSQL.py example to handle nested selects, reworked
    'where' expression to use infixNotation.

  - Added include_preprocessor.py, similar to macroExpander.py.

  - Examples using makeHTMLTags use new tag_body expression when
    retrieving a tag's body text.

  - Updated examples that are runnable as unit tests:
        python setup.py test -s examples.antlr_grammar_tests
        python setup.py test -s examples.test_bibparse

diffstat:

 devel/py-pyparsing/Makefile |   4 ++--
 devel/py-pyparsing/distinfo |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (27 lines):

diff -r 48926fc4773f -r a4f7065df116 devel/py-pyparsing/Makefile
--- a/devel/py-pyparsing/Makefile       Mon Apr 08 10:33:36 2019 +0000
+++ b/devel/py-pyparsing/Makefile       Mon Apr 08 10:41:05 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2019/01/15 11:37:21 adam Exp $
+# $NetBSD: Makefile,v 1.15 2019/04/08 10:41:05 adam Exp $
 
-DISTNAME=      pyparsing-2.3.1
+DISTNAME=      pyparsing-2.4.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pyparsing/}
diff -r 48926fc4773f -r a4f7065df116 devel/py-pyparsing/distinfo
--- a/devel/py-pyparsing/distinfo       Mon Apr 08 10:33:36 2019 +0000
+++ b/devel/py-pyparsing/distinfo       Mon Apr 08 10:41:05 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.11 2019/01/15 11:37:21 adam Exp $
+$NetBSD: distinfo,v 1.12 2019/04/08 10:41:05 adam Exp $
 
-SHA1 (pyparsing-2.3.1.tar.gz) = 616f04f73e8f168140df4d2c349dfae3259bf496
-RMD160 (pyparsing-2.3.1.tar.gz) = 90fca0886feae2fc8718fdd35a4390c55cc3cf5c
-SHA512 (pyparsing-2.3.1.tar.gz) = fc8342780c38fd08c07d0b885c4d6c77d59f38098aa13c3abd05a790ee6caf2065a0bdab33bc290a6e2da123f4ac7e38c049e389b740546499dc48eba7ae431f
-Size (pyparsing-2.3.1.tar.gz) = 596497 bytes
+SHA1 (pyparsing-2.4.0.tar.gz) = dfddeaf3e8973875693d1a40ccee87f39dd120bd
+RMD160 (pyparsing-2.4.0.tar.gz) = 6d139406b6b5bee25d04df435c8b42c0dabf10ea
+SHA512 (pyparsing-2.4.0.tar.gz) = 71877dc006cce5c1b1d45e7cc89cd60e03cb80353387fb0c6498cfc0d69af465dc574d1bceb87248033e7a82694aa940e9fce1ca80b2ef538a8df51f697ef530
+Size (pyparsing-2.4.0.tar.gz) = 611956 bytes



Home | Main Index | Thread Index | Old Index