chore(deps): update dependency pyparsing to v3.3.2 - autoclosed#8
Closed
renovate[bot] wants to merge 1 commit into
Closed
chore(deps): update dependency pyparsing to v3.3.2 - autoclosed#8renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
20cbd95 to
4dbd90e
Compare
4dbd90e to
089de33
Compare
089de33 to
ab2452d
Compare
ab2452d to
2b5f0c5
Compare
2b5f0c5 to
d8f7c82
Compare
d8f7c82 to
3d8a529
Compare
3d8a529 to
5e043b0
Compare
5e043b0 to
b4a45f7
Compare
b4a45f7 to
af77eed
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==3.2.0→==3.3.2Release Notes
pyparsing/pyparsing (pyparsing)
v3.3.2Compare Source
Defined pyparsing-specific warning classes so that they can be selectively enabled
or disabled without affecting warnings raised by other libraries in the same Python
app:
PyparsingWarning- base warning for all pyparsing-specific warnings (inheritsfrom
UserWarning)PyparsingDeprecationWarning- warning for using deprecated features (inheritsfrom
PyparsingWarningandDeprecationWarning)PyparsingDiagnosticWarning- warning raised when pyparsing diagnostics areenabled and a diagnostic feature is used (inherits from
PyparsingWarning)Added
as_datetimeparse action topyparsing.common- a more generalizedversion of the
convert_to_datetimeparse action (supports any expression that extractsdate/time fields into "year", "month", "day", etc. results names), and validates
that the parsed fields represent a valid date and time.
Added
iso8601_date_validatedandiso8601_datetime_validatedexpressions topyparsing.common, which return a Pythondatetime.datetimeVarious performance improvements in
ParseResultsclass and core functions, with10-20% performance overall.
Added
regex_inverterweb page (using PyScript) to demonstrate using theinv_regex.pyexample.
Expanded regex forms handled by the
examples/inv_regex.pyexample:?P<name>){m,}and{,n})[^...])Added
SPy(Simplified Python) parser to examples.v3.3.1Compare Source
Marc Mueller for submitted issue and PR. Fixes #626.
v3.3.0Compare Source
===========================================================================================
The version 3.3.0 release will begin emitting
DeprecationWarningsfor pyparsing methodsthat have been renamed to PEP8-compliant names (introduced in pyparsing 3.0.0, in August,
2021, with legacy names retained as aliases). In preparation, I added in pyparsing
3.2.2 a utility for finding and replacing the legacy method names with the new names.
This utility is located at
pyparsing/tools/cvt_pep8_names.py. This script will scan allPython files specified on the command line, and if the
-uoption is selected, willreplace all occurrences of the old method names with the new PEP8-compliant names,
updating the files in place.
Here is an example that converts all the files in the pyparsing
/examplesdirectory:v3.2.5Compare Source
Wordexpressions that include a spacecharacter, if that expression was then copied, either directly with .copy() or
by adding a results name, or included in another construct (like
DelimitedList)that makes a copy internally. Issue #618, reported by mstinberg, among others -
thanks, and sorry for the inconvenience.
v3.2.4Compare Source
Barring any catastrophic bugs in this release, this will be the last release in
the 3.2.x line. The next release, 3.3.0, will begin emitting
DeprecationWarningswhen the pre-PEP8 methods are used (see header notes above for more information,
including available automation for converting any existing code using
pyparsing with the old names).
Fixed bug when using a copy of a
Wordexpression (either by using the explicitcopy()method, or attaching a results name), and setting a new expression name,a raised
ParseExceptionstill used the original expression name. Also affectedRegexexpressions withas_matchoras_group_list= True. Reported byWaqas Ilyas, in Issue #612 - good catch!
Fixed type annotation for
replace_with, to acceptAnytype. Fixes Issue #602,reported by esquonk.
Added locking around potential race condition in
ParserElement.reset_cache, aswell as other cache-related methods. Fixes Issue #604, reported by CarlosDescalziIM.
Substantial update to docstrings and doc generation in preparation for 3.3.0,
great effort by FeRD, thanks!
Notable addition by FeRD to convert docstring examples to work with doctest! This
was long overdue, thanks so much!
v3.2.3Compare Source
nested_exprcould overwrite parse actionsfor 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.
v3.2.2Compare Source
Released
cvt_pyparsing_pep8_names.pyconversion utility to upgrade pyparsing-basedprograms 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
Fixed bug in
nested_exprwhere nested contents were stripped of whitespace whenthe 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_lineand the underlyingRegexclass, in which matching apattern that could match an empty string (such as
".*"or"[A-Z]*"would not raisea
ParseExceptionat or beyond the end of the input string. This could cause aninfinite parsing loop when parsing
rest_of_lineat the end of the input string.Reported by user Kylotan, thanks! (Issue #593)
Enhancements and extra input validation for
pyparsing.util.make_compressed_re- seeusage in
examples/complex_chemical_formulas.pyand result in the generated railroaddiagram
examples/complex_chemical_formulas_diagram.html. Properly escapes characterslike "." 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
MatchFirstandOrexpressions, showing all alternativesrather than just the first one. Fixes Issue #592, reported by Focke, thanks!
Added return type annotation of "-> None" for all
__init__()methods, to satisfymypy --stricttype checking. PR submitted by FeRD, thank you!Added optional argument
show_hiddentocreate_diagramto showelements that are used internally by pyparsing, but are not part of the actual
parser grammar. For instance, the
Tagclass can insert values into the parsedresults but it does not actually parse any input, so by default it is not included
in a railroad diagram. By calling
create_diagramwithshow_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.pyexample. Also addedebnf_number_words.pyto demonstrateusing the
ebnf.pyEBNF parser generator to build a similar parser directly fromEBNF.
Fixed syntax warning raised in
bigquery_view_parser.py, invalid escape sequence "\s".Reported by sameer-google, nice catch! (Issue #598)
Added support for Python 3.14.
v3.2.1Compare Source
Updated generated railroad diagrams to make non-terminal elements links to their related
sub-diagrams. This greatly improves navigation of the diagram, especially for
large, complex parsers.
Simplified railroad diagrams emitted for parsers using
infix_notation, by hidinglookahead terms. Renamed internally generated expressions for clarity, and improved
diagramming.
Improved performance of
cpp_style_comment,c_style_comment,common.fnumberand
common.ieee_floatRegexexpressions. PRs submitted by Gabriel Gerlero,nice work, thanks!
Add missing type annotations to
match_only_at_col,replace_with,remove_quotes,with_attribute, andwith_class. Issue #585 reported by rafrafrek.Added generated diagrams for many of the examples.
Replaced old
examples/0README.htmlfile withexamples/README.mdfile.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.