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