Sync from SUSE:SLFO:Main python-lark revision 20cc00d2446a9c011346438d827244a4

This commit is contained in:
Adrian Schröter 2024-12-13 11:42:18 +01:00
parent 8f1d898b5a
commit 899bc271c6
4 changed files with 90 additions and 27 deletions

BIN
lark-1.1.5.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
lark-1.2.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,70 @@
-------------------------------------------------------------------
Thu Oct 3 08:30:59 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>
- 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 <dmueller@suse.com>
- 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 <daniel.garcia@suse.com>
- Remove not needed python-Js2Py BuildRequires
-------------------------------------------------------------------
Fri Apr 21 12:27:48 UTC 2023 - Dirk Müller <dmueller@suse.com>
@ -11,7 +78,7 @@ Thu Apr 13 22:42:25 UTC 2023 - Matej Cepl <mcepl@suse.com>
-------------------------------------------------------------------
Tue Dec 13 15:41:34 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- 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 <yarunachalam@suse.com>
-------------------------------------------------------------------
Fri Dec 2 18:23:05 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- 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 <yarunachalam@suse.com>
-------------------------------------------------------------------
Fri Oct 28 17:58:49 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- 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 <yarunachalam@suse.com>
-------------------------------------------------------------------
Sun Oct 9 10:06:19 UTC 2022 - Ben Greiner <code@bnavigator.de>
- 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 <mcalabkova@suse.com>
- 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 <lars@linux-schulserver.de>
- 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

View File

@ -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