|
|
8d338a |
%global pypi_name lark-parser
|
|
|
8d338a |
|
|
|
8d338a |
Name: python-%{pypi_name}
|
|
|
8d338a |
Version: 0.9.0
|
|
|
8d338a |
Release: 6%{?dist}
|
|
|
8d338a |
Summary: Lark is a modern general-purpose parsing library for Python
|
|
|
8d338a |
License: MIT
|
|
|
8d338a |
Url: https://github.com/lark-parser/lark
|
|
|
8d338a |
Source: https://files.pythonhosted.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
8d338a |
BuildArch: noarch
|
|
|
8d338a |
|
|
|
8d338a |
%description
|
|
|
8d338a |
Lark is a modern general-purpose parsing library for Python.
|
|
|
8d338a |
|
|
|
8d338a |
Lark focuses on simplicity and power. It lets you choose between
|
|
|
8d338a |
two parsing algorithms:
|
|
|
8d338a |
|
|
|
8d338a |
Earley : Parses all context-free grammars (even ambiguous ones)!
|
|
|
8d338a |
It is the default.
|
|
|
8d338a |
|
|
|
8d338a |
LALR(1): Only LR grammars. Outperforms PLY and most if not all
|
|
|
8d338a |
other pure-python parsing libraries.
|
|
|
8d338a |
|
|
|
8d338a |
Both algorithms are written in Python and can be used interchangeably
|
|
|
8d338a |
with the same grammar (aside for algorithmic restrictions).
|
|
|
8d338a |
See "Comparison to other parsers" for more details.
|
|
|
8d338a |
|
|
|
8d338a |
Lark can auto magically build an AST from your grammar, without any
|
|
|
8d338a |
more code on your part.
|
|
|
8d338a |
|
|
|
8d338a |
Features:
|
|
|
8d338a |
|
|
|
8d338a |
- EBNF grammar with a little extra
|
|
|
8d338a |
- Earley & LALR(1)
|
|
|
8d338a |
- Builds an AST auto magically based on the grammar
|
|
|
8d338a |
- Automatic line & column tracking
|
|
|
8d338a |
- Automatic token collision resolution (unless both tokens are regexps)
|
|
|
8d338a |
- Python 2 & 3 compatible
|
|
|
8d338a |
- Unicode fully supported
|
|
|
8d338a |
|
|
|
8d338a |
%package -n python3-%{pypi_name}
|
|
|
8d338a |
Summary: %{summary}
|
|
|
8d338a |
BuildRequires: python3-devel
|
|
|
8d338a |
BuildRequires: python3-setuptools
|
|
|
8d338a |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
8d338a |
|
|
|
8d338a |
%description -n python3-%{pypi_name}
|
|
|
8d338a |
Lark is a modern general-purpose parsing library for Python.
|
|
|
8d338a |
|
|
|
8d338a |
Lark focuses on simplicity and power. It lets you choose between
|
|
|
8d338a |
two parsing algorithms:
|
|
|
8d338a |
|
|
|
8d338a |
Earley : Parses all context-free grammars (even ambiguous ones)!
|
|
|
8d338a |
It is the default.
|
|
|
8d338a |
|
|
|
8d338a |
LALR(1): Only LR grammars. Outperforms PLY and most if not all
|
|
|
8d338a |
other pure-python parsing libraries.
|
|
|
8d338a |
|
|
|
8d338a |
Both algorithms are written in Python and can be used interchangeably
|
|
|
8d338a |
with the same grammar (aside for algorithmic restrictions).
|
|
|
8d338a |
See "Comparison to other parsers" for more details.
|
|
|
8d338a |
|
|
|
8d338a |
Lark can auto magically build an AST from your grammar, without any
|
|
|
8d338a |
more code on your part.
|
|
|
8d338a |
|
|
|
8d338a |
Features:
|
|
|
8d338a |
|
|
|
8d338a |
- EBNF grammar with a little extra
|
|
|
8d338a |
- Earley & LALR(1)
|
|
|
8d338a |
- Builds an AST auto magically based on the grammar
|
|
|
8d338a |
- Automatic line & column tracking
|
|
|
8d338a |
- Automatic token collision resolution (unless both tokens are regexps)
|
|
|
8d338a |
- Python 2 & 3 compatible
|
|
|
8d338a |
- Unicode fully supported
|
|
|
8d338a |
|
|
|
8d338a |
%prep
|
|
|
8d338a |
%autosetup -n %{pypi_name}-%{version}
|
|
|
8d338a |
|
|
|
8d338a |
%build
|
|
|
8d338a |
%py3_build
|
|
|
8d338a |
|
|
|
8d338a |
%install
|
|
|
8d338a |
%py3_install
|
|
|
8d338a |
rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/
|
|
|
8d338a |
|
|
|
8d338a |
%check
|
|
|
8d338a |
%{python3} -m tests
|
|
|
8d338a |
|
|
|
8d338a |
%files -n python3-%{pypi_name}
|
|
|
8d338a |
%license LICENSE
|
|
|
8d338a |
%doc README.md examples
|
|
|
8d338a |
%{python3_sitelib}/lark_parser-*.egg-info
|
|
|
8d338a |
%{python3_sitelib}/lark/
|
|
|
8d338a |
|
|
|
8d338a |
%changelog
|
|
|
8d338a |
* Wed Jun 15 2022 Sergio Correia <scorreia@redhat.com> - 0.9.0-6
|
|
|
8d338a |
- Add python-lark-parser to RHEL-9
|
|
|
8d338a |
Resolves: rhbz#2084554
|
|
|
8d338a |
|
|
|
8d338a |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
|
|
|
8d338a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
8d338a |
|
|
|
8d338a |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
|
|
|
8d338a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
8d338a |
|
|
|
8d338a |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.9.0-3
|
|
|
8d338a |
- Rebuilt for Python 3.10
|
|
|
8d338a |
|
|
|
8d338a |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
|
|
|
8d338a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
8d338a |
|
|
|
8d338a |
* Mon Oct 05 2020 Miro Hron훾ok <mhroncok@redhat.com> - 0.9.0-1
|
|
|
8d338a |
- Update to 0.9.0
|
|
|
8d338a |
|
|
|
8d338a |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-3
|
|
|
8d338a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
8d338a |
|
|
|
8d338a |
* Tue May 26 2020 Miro Hron훾ok <mhroncok@redhat.com> - 0.8.2-2
|
|
|
8d338a |
- Rebuilt for Python 3.9
|
|
|
8d338a |
|
|
|
8d338a |
* Sat Mar 07 2020 Thomas Andrejak <thomas.andrejak@gmail.com> - 0.8.2-1
|
|
|
8d338a |
- Update to 0.8.2
|
|
|
8d338a |
|
|
|
8d338a |
* Mon Feb 24 2020 Thomas Andrejak <thomas.andrejak@gmail.com> - 0.8.1-1
|
|
|
8d338a |
- Update to 0.8.1
|
|
|
8d338a |
|
|
|
8d338a |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.8-2
|
|
|
8d338a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
8d338a |
|
|
|
8d338a |
* Wed Nov 06 2019 Thomas Andrejak <thomas.andrejak@c-s.fr> - 0.7.8-1
|
|
|
8d338a |
- Update to 0.7.8
|
|
|
8d338a |
|
|
|
8d338a |
* Fri Oct 25 2019 Thomas Andrejak <thomas.andrejak@c-s.fr> - 0.7.7-1
|
|
|
8d338a |
- Update to 0.7.7
|
|
|
8d338a |
|
|
|
8d338a |
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.7.1-4
|
|
|
8d338a |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
8d338a |
|
|
|
8d338a |
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.7.1-3
|
|
|
8d338a |
- Rebuilt for Python 3.8
|
|
|
8d338a |
|
|
|
8d338a |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
|
|
|
8d338a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
8d338a |
|
|
|
8d338a |
* Mon May 20 2019 Scott K Logan <logans@cottsay.net> - 0.7.1-1
|
|
|
8d338a |
- Update to 0.7.1
|
|
|
8d338a |
|
|
|
8d338a |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-3
|
|
|
8d338a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
8d338a |
|
|
|
8d338a |
* Fri Jan 11 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 0.6.4-2
|
|
|
8d338a |
- Fix package naming
|
|
|
8d338a |
|
|
|
8d338a |
* Mon Sep 24 2018 Thomas Andrejak <thomas.andrejak@gmail.com> - 0.6.4-1
|
|
|
8d338a |
- Initial package
|