From df1b1ca179e8d8a27b97eb4aa48f7af58fe58eb2837997d0b5e73ce082fae35d Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 20 Dec 2023 22:00:42 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=201.1.8:=20=20=20*=20Populate?= =?UTF-8?q?=20the=20`Token.end=5F*`=20fields=20for=20ignored=20tokens=20?= =?UTF-8?q?=20=20*=20Include=20.lark=20files=20in=20package=20data=20=20?= =?UTF-8?q?=20*=20Add=20an=20error=20message=20when=20using=20Lark.save()?= =?UTF-8?q?=20when=20=20=20=20=20parser!=3D'lalr'=20=20=20*=20Add=20and=20?= =?UTF-8?q?improve=20docstrings=20=20=20*=20Small=20update=20to=20PR=20#13?= =?UTF-8?q?38=20=20=20*=20Fix=201345=20attempt=20two=20=20=20*=20Earley=20?= =?UTF-8?q?now=20uses=20OrderedSet=20for=20better=20output=20stability=20?= =?UTF-8?q?=20=20*=20ContextualLexer=20now=20uses=20self.basic=5Flexer=20f?= =?UTF-8?q?or=20easy=20=20=20=20=20extensibility=20(iss=E2=80=A6=20=20=20*?= =?UTF-8?q?=20Improved=20typing=20around=20LALR=20and=20ParserState=20=20?= =?UTF-8?q?=20*=20Typing=20fixes.=20Mypy=20now=20produces=200=20type=20err?= =?UTF-8?q?ors=20=20=20*=20Standalone:=20Added=20support=20for=20interacti?= =?UTF-8?q?ve=20parser.=20-=20update=20to=201.1.7:=20=20=20*=20Bugfix=20in?= =?UTF-8?q?=20propagate=5Fpositions=20(issue=20#1304)=20-=20update=20to=20?= =?UTF-8?q?1.1.6:=20=20=20*=20Added=20strict-mode,=20enabled=20by=20`stric?= =?UTF-8?q?t=3DTrue`,=20implemented=20=20=20=20=20using=20interegular=20by?= =?UTF-8?q?=20@MegaIng=20=20=20*=20Read=20more=20here:=20https://lark-=20?= =?UTF-8?q?=20=20=20=20parser.readthedocs.io/en/latest/how=5Fto=5Fuse.html?= =?UTF-8?q?#strict-mode=20=20=20*=20Cache:=20Replace=20md5=20hashing=20wit?= =?UTF-8?q?h=20sha256.=20=20=20*=20Support=20for=20Python-style=20comments?= =?UTF-8?q?=20in=20Lark=20grammar=20=20=20*=20Updates=20to=20python.lark?= =?UTF-8?q?=20=20=20*=20Bugfixes=20and=20cleanup=20-=20Update=20to=20v1.1.?= =?UTF-8?q?5=20-=20Update=20to=20v1.1.4=20-=20Update=20to=20v1.1.3=20-=20R?= =?UTF-8?q?ename=20to=20python-lark=20=20=20*=20The=20standalone=20parser?= =?UTF-8?q?=20is=20now=20MPL2,=20instead=20of=20GPL.=20The=20Mozilla?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lark?expand=0&rev=13 --- lark-1.1.5.tar.gz | 3 --- lark-1.1.8.tar.gz | 3 +++ python-lark.changes | 49 ++++++++++++++++++++++++++++++++++++--------- python-lark.spec | 21 +++++++++---------- 4 files changed, 51 insertions(+), 25 deletions(-) delete mode 100644 lark-1.1.5.tar.gz create mode 100644 lark-1.1.8.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.1.8.tar.gz b/lark-1.1.8.tar.gz new file mode 100644 index 0000000..47fb0ea --- /dev/null +++ b/lark-1.1.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1cd78aeb722ac90bb49572b990027fdd5f3283981339d18c12ebe435b9397b0a +size 415961 diff --git a/python-lark.changes b/python-lark.changes index e1f54cc..bd56955 100644 --- a/python-lark.changes +++ b/python-lark.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +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 @@ -16,7 +45,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 @@ -27,7 +56,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, @@ -40,7 +69,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 @@ -66,7 +95,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 @@ -145,20 +174,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 2b9e127..043acdd 100644 --- a/python-lark.spec +++ b/python-lark.spec @@ -16,31 +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.1.8 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 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 @@ -52,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