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:           Mon Apr  8 10:41:05 UTC 2019

Modified Files:
        pkgsrc/devel/py-pyparsing: Makefile distinfo

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/devel/py-pyparsing/Makefile
cvs rdiff -u -r1.11 -r1.12 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.14 pkgsrc/devel/py-pyparsing/Makefile:1.15
--- pkgsrc/devel/py-pyparsing/Makefile:1.14     Tue Jan 15 11:37:21 2019
+++ pkgsrc/devel/py-pyparsing/Makefile  Mon Apr  8 10:41:05 2019
@@ -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/}

Index: pkgsrc/devel/py-pyparsing/distinfo
diff -u pkgsrc/devel/py-pyparsing/distinfo:1.11 pkgsrc/devel/py-pyparsing/distinfo:1.12
--- pkgsrc/devel/py-pyparsing/distinfo:1.11     Tue Jan 15 11:37:21 2019
+++ pkgsrc/devel/py-pyparsing/distinfo  Mon Apr  8 10:41:05 2019
@@ -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