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 Aug 26 14:58:07 UTC 2024

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

Log Message:
py-pyparsing: updated to 3.1.4

Version 3.1.4 - August, 2024
----------------------------
- Fix to type annotation that referenced `re.Pattern`. Since this type was introduced in
  Python 3.7, using this type definition broke Python 3.6 installs of pyparsing. PR
  submitted by Felix Fontein, nice work!

Version 3.1.3 - August, 2024
----------------------------
- Added new `Tag` ParserElement, for inserting metadata into the parsed results.
  This allows a parser to add metadata or annotations to the parsed tokens.
  The `Tag` element also accepts an optional `value` parameter, defaulting to `True`.
  See the new `tag_metadata.py` example in the `examples` directory.

  Example:

        # add tag indicating mood
        end_punc = "." | ("!" + Tag("enthusiastic")))
        greeting = "Hello" + Word(alphas) + end_punc

        result = greeting.parse_string("Hello World.")
        print(result.dump())

        result = greeting.parse_string("Hello World!")
        print(result.dump())

  prints:

        ['Hello', 'World', '.']

        ['Hello', 'World', '!']
        - enthusiastic: True

- Added example `mongodb_query_expression.py`, to convert human-readable infix query
  expressions (such as `a==100 and b>=200`) and transform them into the equivalent
  query argument for the pymongo package (`{'$and': [{'a': 100}, {'b': {'$gte': 200}}]}`).
  Supports many equality and inequality operators - see the docstring for the
  `transform_query` function for more examples.

- Fixed issue where PEP8 compatibility names for `ParserElement` static methods were
  not themselves defined as `staticmethods`. When called using a `ParserElement` instance,
  this resulted  in a `TypeError` exception.

- To address a compatibility issue in RDFLib, added a property setter for the
  `ParserElement.name` property, to call `ParserElement.set_name`.

- Modified `ParserElement.set_name()` to accept a None value, to clear the defined
  name and corresponding error message for a `ParserElement`.

- Updated railroad diagram generation for `ZeroOrMore` and `OneOrMore` expressions with
  `stop_on` expressions.

- Added `<META>` tag to HTML generated for railroad diagrams to force UTF-8 encoding
  with older browsers, to better display Unicode parser characters.

- Fixed some cosmetics/bugs in railroad diagrams:
  - fixed groups being shown even when `show_groups`=False
  - show results names as quoted strings when `show_results_names`=True
  - only use integer loop counter if repetition > 2

- Some type annotations added for parse action related methods.

- Added exception type to `trace_parse_action` exception output, while investigating
  SO question posted by medihack.

- Added `set_name` calls to internal expressions generated in `infix_notation`, for
  improved railroad diagramming.

- `delta_time`, `lua_parser`, `decaf_parser`, and `roman_numerals` examples cleaned up
  to use latest PEP8 names and add minor enhancements.

- Fixed bug (and corresponding test code) in `delta_time` example that did not handle
  weekday references in time expressions (like "Monday at 4pm") when the weekday was
  the same as the current weekday.

- Minor performance speedup in `trim_arity`, to benefit any parsers using parse actions.

- Added early testing support for Python 3.13 with JIT enabled.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 pkgsrc/devel/py-pyparsing/Makefile
cvs rdiff -u -r1.30 -r1.31 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.32 pkgsrc/devel/py-pyparsing/Makefile:1.33
--- pkgsrc/devel/py-pyparsing/Makefile:1.32     Wed Mar  6 13:33:03 2024
+++ pkgsrc/devel/py-pyparsing/Makefile  Mon Aug 26 14:58:06 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.32 2024/03/06 13:33:03 adam Exp $
+# $NetBSD: Makefile,v 1.33 2024/08/26 14:58:06 adam Exp $
 
-DISTNAME=      pyparsing-3.1.2
+DISTNAME=      pyparsing-3.1.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pyparsing/}
@@ -12,7 +12,5 @@ LICENSE=      mit
 
 USE_LANGUAGES= # none
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27
-
 .include "../../lang/python/bootstrap.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-pyparsing/distinfo
diff -u pkgsrc/devel/py-pyparsing/distinfo:1.30 pkgsrc/devel/py-pyparsing/distinfo:1.31
--- pkgsrc/devel/py-pyparsing/distinfo:1.30     Wed Mar  6 13:33:03 2024
+++ pkgsrc/devel/py-pyparsing/distinfo  Mon Aug 26 14:58:06 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.30 2024/03/06 13:33:03 adam Exp $
+$NetBSD: distinfo,v 1.31 2024/08/26 14:58:06 adam Exp $
 
-BLAKE2s (pyparsing-3.1.2.tar.gz) = 7b4aa21047c72959757da120cfca4a883b68a0036ce55fab63b25e95d3c00d4c
-SHA512 (pyparsing-3.1.2.tar.gz) = 1134949f3576edbec4438eefe952eb5cc6e734fb060905d714b6a77f71e90d364b01345df5e7b8fb5ffa798c530be9c65f6d152b3f591cba787660c4dd8894d2
-Size (pyparsing-3.1.2.tar.gz) = 889571 bytes
+BLAKE2s (pyparsing-3.1.4.tar.gz) = df048ef1feb94c8ea769f4ab2ec5e98a86235acbca3ad5b5f3f7bf90b669ed97
+SHA512 (pyparsing-3.1.4.tar.gz) = b475e5571510cd7b07fecbc8ae583b1e75a6308b64018d2884570dfa461e0529b96d02d11403cecac41f92b5d802a5dd4bbf9f8321d58ffa2d24cb89b86652e1
+Size (pyparsing-3.1.4.tar.gz) = 900231 bytes



Home | Main Index | Thread Index | Old Index