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: Sat Apr 12 11:44:18 UTC 2025
Modified Files:
pkgsrc/devel/py-pyparsing: Makefile PLIST distinfo
Log Message:
py-pyparsing: updated to 3.2.3
Version 3.2.3 - March, 2025
- Fixed bug released in 3.2.2 in which `nested_expr` could overwrite parse actions
for defined content, and could truncate list of items within a nested list.
Fixes Issue 600, reported by hoxbro and luisglft, with helpful diag logs and
repro code.
Version 3.2.2 - March, 2025
- Released `cvt_pyparsing_pep8_names.py` conversion utility to upgrade pyparsing-based
programs and libraries that use legacy camelCase names to use the new PEP8-compliant
snake_case method names. The converter can also be imported into other scripts as
from pyparsing.tools.cvt_pyparsing_pep8_names import pep8_converter
- Fixed bug in `nested_expr` where nested contents were stripped of whitespace when
the default whitespace characters were cleared (raised in this StackOverflow
question https://stackoverflow.com/questions/79327649 by Ben Alan). Also addressed
bug in resolving PEP8 compliant argument name and legacy argument name.
- Fixed bug in `rest_of_line` and the underlying `Regex` class, in which matching a
pattern that could match an empty string (such as `".*"` or `"[A-Z]*"` would not raise
a `ParseException` at or beyond the end of the input string. This could cause an
infinite parsing loop when parsing `rest_of_line` at the end of the input string.
Reported by user Kylotan, thanks!
- Enhancements and extra input validation for `pyparsing.util.make_compressed_re` - see
usage in `examples/complex_chemical_formulas.py` and result in the generated railroad
diagram `examples/complex_chemical_formulas_diagram.html`. Properly escapes characters
like "." and "*" that have special meaning in regular expressions.
- Fixed bug in `one_of()` to properly escape characters that are regular expression markers
(such as '*', '+', '?', etc.) before building the internal regex.
- Better exception message for `MatchFirst` and `Or` expressions, showing all alternatives
rather than just the first one.
- Added return type annotation of "-> None" for all `__init__()` methods, to satisfy
`mypy --strict` type checking. PR submitted by FeRD, thank you!
- Added optional argument `show_hidden` to `create_diagram` to show
elements that are used internally by pyparsing, but are not part of the actual
parser grammar. For instance, the `Tag` class can insert values into the parsed
results but it does not actually parse any input, so by default it is not included
in a railroad diagram. By calling `create_diagram` with `show_hidden` = `True`,
these internal elements will be included. (You can see this in the tag_metadata.py
script in the examples directory.)
- Fixed bug in `number_words.py` example. Also added `ebnf_number_words.py` to demonstrate
using the `ebnf.py` EBNF parser generator to build a similar parser directly from
EBNF.
- Fixed syntax warning raised in `bigquery_view_parser.py`, invalid escape sequence "\s".
Reported by sameer-google, nice catch!
- Added support for Python 3.14.
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 pkgsrc/devel/py-pyparsing/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/py-pyparsing/PLIST
cvs rdiff -u -r1.33 -r1.34 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.36 pkgsrc/devel/py-pyparsing/Makefile:1.37
--- pkgsrc/devel/py-pyparsing/Makefile:1.36 Sun Feb 23 18:05:52 2025
+++ pkgsrc/devel/py-pyparsing/Makefile Sat Apr 12 11:44:18 2025
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.36 2025/02/23 18:05:52 wiz Exp $
+# $NetBSD: Makefile,v 1.37 2025/04/12 11:44:18 adam Exp $
-DISTNAME= pyparsing-3.2.1
+DISTNAME= pyparsing-3.2.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyparsing/}
Index: pkgsrc/devel/py-pyparsing/PLIST
diff -u pkgsrc/devel/py-pyparsing/PLIST:1.9 pkgsrc/devel/py-pyparsing/PLIST:1.10
--- pkgsrc/devel/py-pyparsing/PLIST:1.9 Sun Feb 23 18:05:52 2025
+++ pkgsrc/devel/py-pyparsing/PLIST Sat Apr 12 11:44:18 2025
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2025/02/23 18:05:52 wiz Exp $
+@comment $NetBSD: PLIST,v 1.10 2025/04/12 11:44:18 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -31,6 +31,12 @@ ${PYSITELIB}/pyparsing/results.pyo
${PYSITELIB}/pyparsing/testing.py
${PYSITELIB}/pyparsing/testing.pyc
${PYSITELIB}/pyparsing/testing.pyo
+${PYSITELIB}/pyparsing/tools/__init__.py
+${PYSITELIB}/pyparsing/tools/__init__.pyc
+${PYSITELIB}/pyparsing/tools/__init__.pyo
+${PYSITELIB}/pyparsing/tools/cvt_pyparsing_pep8_names.py
+${PYSITELIB}/pyparsing/tools/cvt_pyparsing_pep8_names.pyc
+${PYSITELIB}/pyparsing/tools/cvt_pyparsing_pep8_names.pyo
${PYSITELIB}/pyparsing/unicode.py
${PYSITELIB}/pyparsing/unicode.pyc
${PYSITELIB}/pyparsing/unicode.pyo
Index: pkgsrc/devel/py-pyparsing/distinfo
diff -u pkgsrc/devel/py-pyparsing/distinfo:1.33 pkgsrc/devel/py-pyparsing/distinfo:1.34
--- pkgsrc/devel/py-pyparsing/distinfo:1.33 Thu Jan 2 09:19:51 2025
+++ pkgsrc/devel/py-pyparsing/distinfo Sat Apr 12 11:44:18 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.33 2025/01/02 09:19:51 adam Exp $
+$NetBSD: distinfo,v 1.34 2025/04/12 11:44:18 adam Exp $
-BLAKE2s (pyparsing-3.2.1.tar.gz) = 6144aa01457efd2961f76790e11b2b06a15ea793f73f3c60173922c07919d340
-SHA512 (pyparsing-3.2.1.tar.gz) = bb0e703ebf7bcdf34909ac693e16a1c17386a3e92b6c52c157ef338360b3c0cfab9a238bcbfdfe9c061fdff93a34c732d4e1a184b8fb12c728b2b7f2306aa978
-Size (pyparsing-3.2.1.tar.gz) = 1067694 bytes
+BLAKE2s (pyparsing-3.2.3.tar.gz) = 37581b8f110ba3566ccaef35fbd2de245825472fe85f594c9a5f01121dbce9af
+SHA512 (pyparsing-3.2.3.tar.gz) = ef01403a158f15215b3be7f7c4aad2ceb6020d578dac68351b732df3447c685aa478d23ab645d554070ad2aec14ee565a0407f428b91f398e4429c0e53eb4a6d
+Size (pyparsing-3.2.3.tar.gz) = 1088608 bytes
Home |
Main Index |
Thread Index |
Old Index