d6ca0e168d- update to 3.2.0: * Discontinued support for Python 3.6, 3.7, and 3.8. Adopted new Python features from Python versions 3.7-3.9: - Updated type annotations to use built-in container types instead of names imported from the typing module (e.g., list[str] vs List[str]). - Reworked portions of the packrat cache to leverage insertion-preserving ordering in dicts (including removal of uses of OrderedDict). - Changed pdb.set_trace() call in ParserElement.set_break() to breakpoint(). - Converted typing.NamedTuple to dataclasses.dataclass in railroad diagramming code. - Added from __future__ import annotations to clean up some type annotations.Dirk Mueller2024-10-28 17:01:14 +0000
d06fc1910dAccepting request 1198050 from devel:languages:python
Dominique Leuenberger
2024-09-03 11:37:05 +0000
b94867e9fb- update to 3.1.4: * 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. * 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. * 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, while investigating #558 * 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.Dirk Mueller2024-08-31 12:02:09 +0000
f0022a47f2Accepting request 1158443 from devel:languages:python
Ana Guerrero
2024-03-18 15:44:11 +0000
6f62d9a8ca- update to 3.1.2: * Added ieee_float expression to pyparsing.common, which parses float values, plus "NaN", "Inf", "Infinity". * Updated pep8 synonym wrappers for better type checking compatibility. * Fixed empty error message bug, PR submitted by InSync (#534). This _should_ return pyparsing's exception messages to a former, more helpful form. If you have code that parses the exception messages returned by pyparsing, this may require some code changes. * Some code refactoring to reduce code nesting, PRs submitted by InSync. * All internal string expressions using '%' string interpolation and str.format() converted to f-strings.Dirk Mueller2024-03-16 10:02:40 +0000
3a9ef2c2a2Accepting request 1149912 from devel:languages:python
Ana Guerrero
2024-02-25 13:04:53 +0000
0a362603c0Accepting request 1149904 from home:dimstar:FactoryMarkéta Machová2024-02-23 12:33:20 +0000
ddc68dd678Accepting request 1130338 from devel:languages:python
Dominique Leuenberger
2023-12-02 16:12:28 +0000
b486e54fa3- update to 3.1.1: * Fixed regression in Word(min), reported by Ricardo Coccioli, good catch! * Fixed bug in bad exception messages raised by Forward * Fixed regression in SkipTo, where ignored expressions were not checked when looking for the target expression. * Fixed type annotation for enable_packrat * Some general internal code cleanup - drop limit-error-messages.patch (upstream) - Add upstream patch limit-error-messages.patch as a part of * Added new class property identifier to all Unicode set classes in pyparsing.unicode, using the class's values for cls.identchars * ParseResults now has a new method deepcopy(), in addition to the * Updated create_diagram()` code to be compatible with - do primary/all split only for tumbleweed (similar to flit-core)Dirk Mueller2023-12-01 17:07:32 +0000
9babb6f74fAccepting request 1098329 from devel:languages:python
Dominique Leuenberger
2023-07-14 13:35:36 +0000
74909f534dAccepting request 1098099 from home:mcalabkova:branches:devel:languages:python:numericMatej Cepl2023-07-12 08:26:26 +0000
e3ed91f7a9Accepting request 1096296 from home:mcalabkova:branches:devel:languages:pythonDirk Mueller2023-07-03 07:16:42 +0000
69092bc240Accepting request 1081639 from devel:languages:python
Dominique Leuenberger
2023-04-22 19:57:51 +0000
7ba259b5e9Accepting request 1081560 from home:dirkmueller:acdc:as_python3_moduleDirk Mueller2023-04-21 13:23:13 +0000
dc31f62a4eAccepting request 1066427 from devel:languages:python
Dominique Leuenberger
2023-02-19 17:18:34 +0000
766222e4d6- do primary/all split only for tumbleweed (similar to flit-core)Dirk Mueller2023-02-17 20:54:41 +0000
39ab8e5a5cAccepting request 1003985 from devel:languages:python
Dominique Leuenberger
2022-09-17 18:08:25 +0000
3ff735bb32Accepting request 1003977 from home:bnavigator:branches:devel:languages:python
Steve Kowalik
2022-09-16 03:12:47 +0000
5a8545c033Accepting request 989456 from home:bnavigator:branches:devel:languages:pythonMatej Cepl2022-07-15 20:46:23 +0000
e028355ba7Accepting request 989210 from home:bnavigator:branches:devel:languages:pythonMarkéta Machová2022-07-15 06:40:24 +0000
1824aec024Accepting request 951715 from devel:languages:python
Dominique Leuenberger
2022-02-09 19:38:08 +0000
87e9fb868aAccepting request 951459 from home:apersaud:branches:devel:languages:pythonMatej Cepl2022-02-05 11:34:07 +0000
d0d9ed6a33Accepting request 933807 from devel:languages:python
Dominique Leuenberger
2021-12-09 18:44:58 +0000
5a1904f860Accepting request 933496 from home:buschmann23:branches:devel:languages:pythonMatej Cepl2021-11-25 16:28:46 +0000
a0e098dc21Accepting request 900814 from devel:languages:python
Dominique Leuenberger
2021-07-10 20:53:38 +0000
7c37b5bb96Accepting request 900808 from home:bnavigator:branches:devel:languages:pythonMatej Cepl2021-06-18 19:35:28 +0000
0db78f2299Accepting request 811049 from devel:languages:python
Dominique Leuenberger
2020-06-05 18:00:35 +0000
77aab6c1d3Accepting request 811047 from home:pgajdos:python
Tomáš Chvátal
2020-06-03 08:59:48 +0000
8a8a7170b5Accepting request 800308 from devel:languages:python
Dominique Leuenberger
2020-05-07 13:05:56 +0000
1db5aae19e- update to 2.4.7: . Each bug with Regex expressions . And expressions not properly constructing with generator . Traceback abbreviation . Bug in delta_time example . Fix regexen in pyparsing_common.real and .sci_real . Avoid FutureWarning on Python 3.7 or later . Cleanup output in runTests if comments are embedded in test stringDirk Mueller2020-05-05 09:10:51 +0000
8aff5559afAccepting request 773486 from devel:languages:python
Oliver Kurz
2020-02-14 15:23:24 +0000
cf0acc0212- update to 2.4.6 * Fixed typos in White mapping of whitespace characters, to use correct "\u" prefix instead of "u". *fix bug in left-associative ternary operators defined using infixNotation. First reported on StackOverflow by user Jeronimo. * Backport of pyparsing_test namespace from 3.0.0, including TestParseResultsAsserts mixin class defining unittest-helper methods: . def assertParseResultsEquals( self, result, expected_list=None, expected_dict=None, msg=None) . def assertParseAndCheckList( self, expr, test_string, expected_list, msg=None, verbose=True) . def assertParseAndCheckDict( self, expr, test_string, expected_dict, msg=None, verbose=True) . def assertRunTestResults( self, run_tests_report, expected_parse_results=None, msg=None) . def assertRaisesParseException(self, exc_type=ParseException, msg=None)Ondřej Súkup2020-02-11 15:50:39 +0000
30fe066e2cAccepting request 749105 from devel:languages:python
Dominique Leuenberger
2019-11-22 09:25:08 +0000
9aa4248e3aAccepting request 749062 from home:apersaud:branches:devel:languages:python
Tomáš Chvátal
2019-11-17 07:48:15 +0000
75ee93418dAccepting request 743993 from devel:languages:python
Dominique Leuenberger
2019-11-04 16:11:02 +0000
2bfc105583- Do not pull in setuptools dependency at all to avoid cycles
Tomáš Chvátal
2019-10-16 14:23:15 +0000
11aaa98acbAccepting request 721168 from devel:languages:python
Dominique Leuenberger
2019-08-08 12:21:59 +0000
4ce5709805- update to 2.4.2: - Updated the shorthand notation that has been added for repetition expressions: expr[min, max], with '...' valid as a min or max value - The defaults on all the __diag__ switches have been set to False, to avoid getting alarming warnings. To use these diagnostics, set them to True after importing pyparsing. - Fixed bug introduced by the use of __getitem__ for repetition, overlooking Python's legacy implementation of iteration by sequentially calling __getitem__ with increasing numbers until getting an IndexError. Found during investigation of problem reported by murlock, merci! - Changed [...] to emit ZeroOrMore instead of OneOrMore. - Removed code that treats ParserElements like iterables. - Change all __diag__ switches to False. - update to 2.4.1.1: - API change adding support for expr[...] - the original code in 2.4.1 incorrectly implemented this as OneOrMore. Code using this feature under this relase should explicitly use expr[0, ...] for ZeroOrMore and expr[1, ...] for OneOrMore. In 2.4.2 you will be able to write expr[...] equivalent to ZeroOrMore(expr). - Bug if composing And, Or, MatchFirst, or Each expressions using an expression. This only affects code which uses explicit expression construction using the And, Or, etc. classes instead of using overloaded operators '+', '^', and so on. If constructing an And using a single expression, you may get an error that "cannot multiply ParserElement by 0 or (0, 0)" or a Python IndexError. - Some newly-added __diag__ switches are enabled by default, which may give rise to noisy user warnings for existing parsers.
Thomas Bechtold
2019-08-06 05:07:57 +0000
748a5df303Accepting request 695770 from devel:languages:python
Dominique Leuenberger
2019-04-19 16:37:59 +0000
72e3041ee9- update to 2.4.0 - drop nose_to_unittest.patch - drop _service * 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. * User code that is dependent on the pre-bugfix behavior can restore it by setting this value to False. * Updated unitTests.py and simple_unit_tests.py to be compatible with "python setup.py test". * 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: * 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. * 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 testsOndřej Súkup2019-04-18 13:44:27 +0000
5a88eddbca- Do not BuildRequire python-unittest2 when no tests are executed. This breaks a build cycle for pyparsing->unittest2->traceback2->pbr-> Pygments->pytest->setuptools_scm->packaging which needs pyparsing
Thomas Bechtold
2019-04-11 15:58:49 +0000
40d9250d62Accepting request 666937 from devel:languages:python
Dominique Leuenberger
2019-01-28 19:46:48 +0000
6cd74cd044Accepting request 666773 from home:dimstar:Factory
Tomáš Chvátal
2019-01-18 09:58:23 +0000
a099b5dda4- Update to version 2.3.0+git.1546912853.bf348d6: * Update CHANGES to include note on fixing issue #65; generalized the note about the decaf language example; added sample code from the statemachine examples. * Unit test to test fix for issue #65 * Fix inconsistency between Keyword(caseless=True) and CaselessKeyword (issue #65) * Fix typo: 'chemcialFormulas.py' -> 'chemicalFormulas.py' * Convert exception logging to use ParseException.explain() * Add experimental ParseException.explain() method, to return a multiline string showing the parse expressions leading to a parsing failure * Clean up CHANGES notes for new examples * Add document signoff and library book state examples; * Update statemachine demo code to Py3 * Update Lucene grammar example, but remove from Travis-CI acceptance scriptsMatej Cepl2019-01-08 20:06:45 +0000
3899205e0e- Upgrade to the current upstrem master with additional patches to make the test suite pass.Matej Cepl2018-11-21 16:58:27 +0000
a9b2b63dae- Update to 2.3.0, see changelog of the main package
Tomáš Chvátal
2018-11-15 09:08:10 +0000
c862eeaf6cAccepting request 633191 from devel:languages:python
Yuchen Lin
2018-09-10 10:29:50 +0000
989672fcf6Accepting request 633190 from home:mcepl:workMatej Cepl2018-09-04 17:39:25 +0000
869379692cAccepting request 481878 from devel:languages:python
Dominique Leuenberger
2017-04-19 16:02:54 +0000
da105ff4b2- update to 2.2.0: - Bumped minor version number to reflect compatibility issues with OneOrMore and ZeroOrMore bugfixes in 2.1.10. (2.1.10 fixed a bug that was introduced in 2.1.4, but the fix could break code written against 2.1.4 - 2.1.9.) - Updated setup.py to address recursive import problems now that pyparsing is part of 'packaging' (used by setuptools). Patch submitted by Joshua Root, much thanks! - Fixed KeyError issue reported by Yann Bizeul when using packrat parsing in the Graphite time series database, thanks Yann! - Fixed incorrect usages of '\' in literals, as described in https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior Patch submitted by Ville Skyttä - thanks! - Minor internal change when using '-' operator, to be compatible with ParserElement.streamline() method. - Expanded infixNotation to accept a list or tuple of parse actions to attach to an operation. - New unit test added for dill support for storing pyparsing parsers. Ordinary Python pickle can be used to pickle pyparsing parsers as long as they do not use any parse actions. The 'dill' module is an extension to pickle which *does* support pickling of attached - drop desetuptoolize.patch: this is not neededDirk Mueller2017-03-14 21:32:04 +0000
7fc55539d1Accepting request 460253 from devel:languages:python
Dominique Leuenberger
2017-02-27 17:31:19 +0000
170ad64d71Accepting request 460227 from devel:languages:python:singlespec
Jan Matejek
2017-02-24 14:34:29 +0000
0f739a65f3- update for single-spec - desetuptoolize.patch : switch from setuptools to distutils.core for installation, as this is now a setuptools dependency - ensure egg-info is a directory (distutils would install it as file)
Jan Matejek
2017-02-23 13:10:56 +0000
7a02df6f31Accepting request 443683 from devel:languages:python
Dominique Leuenberger
2016-12-07 23:26:53 +0000
93393581fdAccepting request 443222 from home:TheBlackCat:branches:devel:languages:python
Thomas Bechtold
2016-12-04 08:34:25 +0000
3a91e8e70eAccepting request 438176 from devel:languages:python
Dominique Leuenberger
2016-11-03 11:56:08 +0000
ce7b66256cAccepting request 438174 from home:TheBlackCat:branches:devel:languages:python
Todd R
2016-11-01 20:03:25 +0000
5012da3925Accepting request 357104 from devel:languages:python
Dominique Leuenberger
2016-02-16 08:27:00 +0000
0f46391ec5Accepting request 357100 from home:TheBlackCat:branches:devel:languages:python
Todd R
2016-02-01 11:15:59 +0000
7ed3e56c86Accepting request 307470 from devel:languages:python
Dominique Leuenberger
2015-05-18 20:58:29 +0000
f20a1ebe23Accepting request 306410 from home:benoit_monin:branches:devel:languages:python
Denisart Benjamin
2015-05-16 12:53:17 +0000
7e92554949Accepting request 281025 from devel:languages:python
Dominique Leuenberger
2015-01-15 15:01:07 +0000
54a411dd3dAccepting request 280937 from security:forensics
Denisart Benjamin
2015-01-13 13:23:21 +0000
abc2f78bd9Accepting request 200181 from devel:languages:python
Stephan Kulow
2013-09-24 05:11:38 +0000
130a93a6d7Accepting request 200178 from home:frispete:python
Todd R
2013-09-23 12:02:05 +0000
89b48106c8Accepting request 199401 from devel:languages:python
Stephan Kulow
2013-09-17 14:19:02 +0000
e37a4cfdf7- Update to version 2.0.1: - Removed use of "nonlocal" that prevented using this version of pyparsing with Python 2.6 and 2.7. This will make it easier to install for packages that depend on pyparsing, under Python versions 2.6 and later. Those using older versions of Python will have to manually install pyparsing 1.5.7. - Fixed implementation of <<= operator to return self; reported by Luc J. Bourhis, with patch fix by Mathias Mamsch - thanks, Luc and Mathias! - Changes from version 2.0.0: - Rather than release another combined Python 2.x/3.x release I've decided to start a new major version that is only compatible with Python 3.x (and consequently Python 2.7 as well due to backporting of key features). This version will be the main development path from now on, with little follow-on development on the 1.5.x path. - Operator '<<' is now deprecated, in favor of operator '<<=' for attaching parsing expressions to Forward() expressions. This is being done to address precedence of operations problems with '<<'. Operator '<<' will be removed in a future version of pyparsing.
Sascha Peilicke
2013-09-17 13:28:37 +0000
f8b99d39e8Accepting request 199397 from Cloud:OpenStack:Master
Sascha Peilicke
2013-09-17 13:11:36 +0000
4e455b28e1Accepting request 179963 from devel:languages:python
Stephan Kulow
2013-06-19 13:49:23 +0000
455cdc8ddaPython3 moved to devel:languages:python3
Sascha Peilicke
2013-06-17 12:53:13 +0000
433e4a5022Accepting request 163861 from devel:languages:python
Stephan Kulow
2013-04-17 07:25:26 +0000