From 899bc271c6e947e2aa788a137a74de8b34c25430f4d665ad39929a6550fea01b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Dec 2024 11:42:18 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-lark revision 20cc00d2446a9c011346438d827244a4 --- lark-1.1.5.tar.gz | 3 -- lark-1.2.2.tar.gz | 3 ++ python-lark.changes | 87 +++++++++++++++++++++++++++++++++++++++------ python-lark.spec | 24 ++++++------- 4 files changed, 90 insertions(+), 27 deletions(-) delete mode 100644 lark-1.1.5.tar.gz create mode 100644 lark-1.2.2.tar.gz diff --git a/lark-1.1.5.tar.gz b/lark-1.1.5.tar.gz deleted file mode 100644 index d3d631b..0000000 --- a/lark-1.1.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b7a10ba0e3fa335a45502e228a7df4d80bf0a320b6c9d322fe7893c70b7a2448 -size 409659 diff --git a/lark-1.2.2.tar.gz b/lark-1.2.2.tar.gz new file mode 100644 index 0000000..c3971ba --- /dev/null +++ b/lark-1.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:472a686b2cf8034938e9fd5df98afd09ae8781e837bfd74abb18d161cc504a82 +size 416094 diff --git a/python-lark.changes b/python-lark.changes index 134f14a..183bae2 100644 --- a/python-lark.changes +++ b/python-lark.changes @@ -1,3 +1,70 @@ +------------------------------------------------------------------- +Thu Oct 3 08:30:59 UTC 2024 - Dirk Müller + +- update to 1.2.2: + * Bugfix: Earley now respects ambiguity='resolve' again. +- update to 1.2.1: + * Dropped support for Python versions lower than 3.8 + * Several bugfixes in the Earley algorithm, related to + suppressed ambiguities + * Improved performance in `InteractiveParser.accepts()` + * Give "Shaping the tree" clear sub-headings + * Fix for when providing a transformer with a Token + * Pin types-regex to a working version + * Add Outlines to list of projects using Lark + * Code coverage: Update Python version + * Attempt to solve performance problems in accepts() + * Docs: Added Indenter + * Clean up test_parser.py, use xFail instead of skip where + appropriate + * Update config and drop python < 3.8 + * BUGFIX Earley: Now yielding a previously repressed ambiguity + * Fix SymbolNode.end for completed tokens + * Disable ForestToParseTree cache when ambiguity='resolve' + * Bugfix for issue #1434 + +------------------------------------------------------------------- +Sat Jan 13 20:25:08 UTC 2024 - Dirk Müller + +- update to 1.1.9: + * Use MAXWIDTH instead of MAXREPEAT when available + * Fix nested list markdown syntax in how_to_use.md + * Run tests against Python 3.12 + +------------------------------------------------------------------- +Wed Dec 20 21:59:06 UTC 2023 - Dirk Müller + +- update to 1.1.8: + * Populate the `Token.end_*` fields for ignored tokens + * Include .lark files in package data + * Add an error message when using Lark.save() when + parser!='lalr' + * Add and improve docstrings + * Small update to PR #1338 + * Fix 1345 attempt two + * Earley now uses OrderedSet for better output stability + * ContextualLexer now uses self.basic_lexer for easy + extensibility (iss… + * Improved typing around LALR and ParserState + * Typing fixes. Mypy now produces 0 type errors + * Standalone: Added support for interactive parser. +- update to 1.1.7: + * Bugfix in propagate_positions (issue #1304) +- update to 1.1.6: + * Added strict-mode, enabled by `strict=True`, implemented + using interegular by @MegaIng + * Read more here: https://lark- + parser.readthedocs.io/en/latest/how_to_use.html#strict-mode + * Cache: Replace md5 hashing with sha256. + * Support for Python-style comments in Lark grammar + * Updates to python.lark + * Bugfixes and cleanup + +------------------------------------------------------------------- +Tue Oct 24 10:45:58 UTC 2023 - Daniel Garcia + +- Remove not needed python-Js2Py BuildRequires + ------------------------------------------------------------------- Fri Apr 21 12:27:48 UTC 2023 - Dirk Müller @@ -11,7 +78,7 @@ Thu Apr 13 22:42:25 UTC 2023 - Matej Cepl ------------------------------------------------------------------- Tue Dec 13 15:41:34 UTC 2022 - Yogalakshmi Arunachalam -- Update to v1.1.5 +- Update to v1.1.5 * What's Changed setup.cfg: Replace deprecated license_file with license_files by @mgorny in #1209 Fix Github shenanigans by @erezsh in #1220 @@ -22,7 +89,7 @@ Tue Dec 13 15:41:34 UTC 2022 - Yogalakshmi Arunachalam ------------------------------------------------------------------- Fri Dec 2 18:23:05 UTC 2022 - Yogalakshmi Arunachalam -- Update to v1.1.4 +- Update to v1.1.4 ci: Python 3.11 final by @henryiii in #1204 Add __all__ to __init__ by @aspizu in #1200 PropagatePositions: Allow any object to carry the metadata, @@ -35,7 +102,7 @@ Fri Dec 2 18:23:05 UTC 2022 - Yogalakshmi Arunachalam ------------------------------------------------------------------- Fri Oct 28 17:58:49 UTC 2022 - Yogalakshmi Arunachalam -- Update to v1.1.3 +- Update to v1.1.3 Various fixes and refactors * Add user to cache filename; better handle cache load/save failures by @klauer in #1179 * refactor: add 'usedforsecurity=False' arg to hashlib.md5 usage by @cquick01 in #1190 @@ -61,7 +128,7 @@ Fri Oct 28 17:58:49 UTC 2022 - Yogalakshmi Arunachalam ------------------------------------------------------------------- Sun Oct 9 10:06:19 UTC 2022 - Ben Greiner -- Rename to python-lark +- Rename to python-lark - Update dependencies - Fix License identifier: LICENSE was changed 6 years ago @@ -140,20 +207,20 @@ Wed Apr 15 10:54:30 UTC 2020 - Marketa Calabkova - Update to 0.8.5 * Updated js2py version (for the optional nearley support) * Added the g_regex_flags option, to allow applying flags to all terminals. - * The standalone parser is now MPL2, instead of GPL. The Mozilla - Public License is much less restrictive, so this shouldn't affect - anyone who's already using the standalone parser. But it should + * The standalone parser is now MPL2, instead of GPL. The Mozilla + Public License is much less restrictive, so this shouldn't affect + anyone who's already using the standalone parser. But it should make it easier for other users to adopt it. - * The biggest change to this release is a new LALR engine, that is + * The biggest change to this release is a new LALR engine, that is capable of dealing with a few edge cases that the previous parser couldn't. - * Transformers now visit tokens, as well as rules (an alternative to + * Transformers now visit tokens, as well as rules (an alternative to lexer_callbacks) ------------------------------------------------------------------- Sun Oct 27 14:28:26 UTC 2019 - Lars Vogdt - Update to 0.7.7: - * Fixed a bug in Earley where running it from different threads + * Fixed a bug in Earley where running it from different threads produced bad results * Improved error reporting when using LALR * Added 'edit_terminals' option, to allow programmatical manipulation diff --git a/python-lark.spec b/python-lark.spec index 85245fa..409c7b9 100644 --- a/python-lark.spec +++ b/python-lark.spec @@ -1,7 +1,7 @@ # # spec file for package python-lark # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,32 +16,28 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-lark -Version: 1.1.5 +Version: 1.2.2 Release: 0 Summary: A parsing library for Python License: MIT Group: Development/Languages/Python URL: https://github.com/lark-parser/lark Source: https://github.com/lark-parser/lark/archive/%{version}.tar.gz#/lark-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest >= 6} +BuildRequires: %{python_module regex} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Suggests: python-regex Suggests: python-Js2Py Suggests: python-atomicwrites -# SECTION TEST -BuildRequires: %{python_module regex} -BuildRequires: %{python_module Js2Py} -BuildRequires: %{python_module pytest >= 6} -# /SECTION -BuildArch: noarch +Suggests: python-regex # Upstream renamed the package with v0.12.0, SUSE had the old name until 1.1.2 Provides: python-lark-parser = %{version}-%{release} Obsoletes: python-lark-parser <= 1.1.2 +BuildArch: noarch %python_subpackages %description @@ -53,10 +49,10 @@ With Lark, one can parse any context-free grammar with little code. %setup -q -n lark-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check