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

This commit is contained in:
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>

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