Blame SPECS/python-lark-parser.spec

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