From cab4d6c6383448439c645f0812383eb3b7b05493225b48ff80388ef2e90e74bc Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 10 Oct 2022 08:20:53 +0000 Subject: [PATCH] Accepting request 1009203 from home:bnavigator:branches:devel:languages:python - Rename to python-lark - Update dependencies - Fix License identifier: LICENSE was changed 6 years ago OBS-URL: https://build.opensuse.org/request/show/1009203 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lark?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + lark-1.1.2.tar.gz | 3 + python-lark.changes | 156 ++++++++++++++++++++++++++++++++++++++++++++ python-lark.spec | 70 ++++++++++++++++++++ 5 files changed, 253 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 lark-1.1.2.tar.gz create mode 100644 python-lark.changes create mode 100644 python-lark.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/lark-1.1.2.tar.gz b/lark-1.1.2.tar.gz new file mode 100644 index 0000000..e6e1159 --- /dev/null +++ b/lark-1.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d89e5c8a580e7f5c9a10f925b5c3f186168bbf8618618d3dc551f1985e068dd +size 406185 diff --git a/python-lark.changes b/python-lark.changes new file mode 100644 index 0000000..2589fea --- /dev/null +++ b/python-lark.changes @@ -0,0 +1,156 @@ +------------------------------------------------------------------- +Sun Oct 9 10:06:19 UTC 2022 - Ben Greiner + +- Rename to python-lark +- Update dependencies +- Fix License identifier: LICENSE was changed 6 years ago + +------------------------------------------------------------------- +Thu Jul 14 18:24:01 UTC 2022 - Johannes Kastl + +- BuildRequire pytest >= 6.0.0, to avoid '/home/abuild/rpmbuild/BUILD/lark-1.1.2/pytest.ini:2: requires pytest-6.0, actual pytest-3.10.1' + +------------------------------------------------------------------- +Tue May 24 07:13:03 UTC 2022 - Alberto Planas Dominguez + +- Update to 1.1.2 + * Tree instances now have a pretty print with the "rich" library, + when doing rich.print(tree) + * Bugfix for recursive regexes (with the "regex" library) + * Refactors, cleanups, and better mypy support + * Clean up tree templates implementation to reduce mypy errors + * Remove redefinitions related to standalone parser + * Added Tree.rich() method to make Tree a Rich renderable + * Rename lexer_state->lexer_thread, and make a few adjustments for + the benefit of Lark-Cython + * Use isinstance() checks in expcetions match_examples() + * change MAXREPEAT to int + * Tests: Small fixes +- For previous changes check + https://github.com/lark-parser/lark/releases +- Drop Python2 support + +------------------------------------------------------------------- +Wed May 26 08:33:40 UTC 2021 - pgajdos@suse.com + +- version update to 0.11.3 + * lot of changes, see + https://github.com/lark-parser/lark/releases +- removed sources + * testdata.tar.gz (unneeded) +- %check: use %pytest rpm macro + +------------------------------------------------------------------- +Fri Jul 3 09:25:30 UTC 2020 - Antonio Larrosa + +- Update to 0.9.0 + * Added error handling to LALR! + + on_error option to Lark.parse(). + + Parser now comes with a puppet for advanced error handling. + * Support for better regexps with the regex module, when using + Lark(..., regex=True) + +- Update to 0.8.9 + * Bugfix for PyInstaller (2) (Fixing the last two releases) + +- Update to 0.8.8 + * Reverted EOF commit due to unexpected problems. + +- Update to 0.8.7 + * Bugfix for PyInstaller + +- Update to 0.8.6 + * Grammar caching: It's now possible to cache the results of the + LALR grammar analysis, for x2 to x3 faster loading. Use + Lark(..., cache=True) or specify a file name. + * Grammar templates: Added support for grammar "functions" that + expand in preprocessing. + * Lark online IDE: Technically not a feature, but it's possible to + run Lark in the browser. Now we also have a simple IDE on github + pages: https://lark-parser.github.io/lark/ide/app.html + * Other changes: + + Improved performance for large grammars + + More debug prints when in debug mode + + Better support for PyInstaller + + Lots of bugfixes: mypy stubs, v_args, docs, and more. + +------------------------------------------------------------------- +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 + make it easier for other users to adopt it. + * 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 + 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 + produced bad results + * Improved error reporting when using LALR + * Added 'edit_terminals' option, to allow programmatical manipulation + of terminals, for example to support keywords in different languages. + +------------------------------------------------------------------- +Wed Sep 11 13:06:32 UTC 2019 - Tomáš Chvátal + +- Update to 0.7.5: + * Lark transformers can now visit tokens as wel + * Fixed long-standing non-determinism and prioritization bugs in Earley. + * Serialize tool now supports multiple start symbols + * iter_subtrees, find_data and find_pred methods are now included in standalone parser + * Bugfixes for the transformer interface, for the custom lexer, for grammar imports, and many more + +------------------------------------------------------------------- +Mon Aug 26 13:28:28 UTC 2019 - John Vandenberg + +- Drop no longer necessary disable_test.patch +- Replace %doc entry docs/ with docs/* to avoid extra sub-directory +- Added Suggests: python-Js2Py for optional runtime dependency +- Update to v0.7.3 + * Added a new tool called Serialize, that stores Lark's internal + state as JSON. That will allow for integration with other languages. + * Minor bugfix regarding line-counting and the \s regex +- from v0.7.2 + * Lark now allows you to specify the start symbol when calling + Lark.parse() (requires pre-declaration of all possible start states, + see the start option) + * Negative priority now allowed in rules and terminals + * Also includes many minor bugfixes, optimizations, and improvements + to documentation + +------------------------------------------------------------------- +Tue May 21 14:06:52 UTC 2019 - pgajdos@suse.com + +- version update to 0.7.1 + Lark can now serialize its parsers, resulting in simplified stand-alone code. + Bugfix for v_args (Issue #350) + Improvements and bugfixes for importing rules from grammar files + Performance improvement for the reconstructor feature + New Earley implementation with SPPF support + Added support for importing rules between grammars. The import mechanism + is namespace-aware. + Added the maybe_placeholders option, which causes optionals of the form + [expr] to return None when not matched, instead of just not appearing. + (optionals of the form expr? maintain the previous behavior of not + appearing unless matched) + Plenty of bugfixes, better errors, and better docs + +------------------------------------------------------------------- +Thu Mar 14 16:41:11 UTC 2019 - Jan Engelhardt + +- Trim bias from description. + +------------------------------------------------------------------- +Wed Mar 13 15:21:17 UTC 2019 - Ondřej Súkup + +- initial commit +- add disable_test.patch - skip test without needed data diff --git a/python-lark.spec b/python-lark.spec new file mode 100644 index 0000000..c84458e --- /dev/null +++ b/python-lark.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-lark +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-lark +Version: 1.1.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: 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 +# 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 +%python_subpackages + +%description +Lark is a general-purpose parsing library for Python. + +With Lark, one can parse any context-free grammar with little code. + +%prep +%setup -q -n lark-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.md docs/* +%{python_sitelib}/lark +%{python_sitelib}/lark-%{version}*-info + +%changelog