2014-03-14 13:50:29 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-funcparserlib
|
|
|
|
#
|
2022-03-01 09:44:50 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2014-03-14 13:50:29 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 13:28:59 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-03-14 13:50:29 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-04-19 20:05:11 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2014-03-14 13:50:29 +00:00
|
|
|
Name: python-funcparserlib
|
Accepting request 993132 from home:bnavigator:branches:devel:languages:python
- Update to 1.0.0
* The stable 1.0.0 release freezes the API of funcparserlib 0.3.6
which was released on 2013-05-02, with a few bug fixes and
small features.
* Added support for Python 3.10
* Added support for Python 3.9 (#63) (Thanks to @pkulev)
* Added support for Python 3.8
* Added -p (the same as skip(p)) with more strict type hints for
-p and p1 + p2
* Added tok(type[, value]) for more compact grammars, better
error messages
* Added TokenSpec(type, pattern[, flags]) to simplify the use of
make_tokenizer()
* Added type hints for the public API
* Added the new library homepage with the new Getting Started
guide and the new API reference
* Parse exceptions now show expected tokens and grammar rules at
the stopped position (#52)
* Dropped support for Python 3.4, 3.5, 3.6 (end of life)
* Dropped support for Python 2.5, 2.6, 3.3 (end of life),
modernized code for Python 3 to run without obsolete 2to3 (#57)
(Thanks to @jdufresne)
* Removed documentation and unit tests from the distribution
* Switched from setuptools to Poetry
* Switched to poetry-core for lighter PEP 517 builds (#73)
(Thanks to @fabaff)
* Fixed TypeError in oneplus when applying it parser + parser
(#66) (Thanks to @martica)
* Fixed AttributeError when comparing Token objects to None (#58)
(Thanks to @Halolegend94)
OBS-URL: https://build.opensuse.org/request/show/993132
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-funcparserlib?expand=0&rev=18
2022-08-04 20:58:48 +00:00
|
|
|
Version: 1.0.0
|
2014-03-14 13:50:29 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Recursive descent parsing library based on functional combinators
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2020-09-09 08:29:02 +00:00
|
|
|
URL: https://github.com/vlasovskikh/funcparserlib
|
Accepting request 993132 from home:bnavigator:branches:devel:languages:python
- Update to 1.0.0
* The stable 1.0.0 release freezes the API of funcparserlib 0.3.6
which was released on 2013-05-02, with a few bug fixes and
small features.
* Added support for Python 3.10
* Added support for Python 3.9 (#63) (Thanks to @pkulev)
* Added support for Python 3.8
* Added -p (the same as skip(p)) with more strict type hints for
-p and p1 + p2
* Added tok(type[, value]) for more compact grammars, better
error messages
* Added TokenSpec(type, pattern[, flags]) to simplify the use of
make_tokenizer()
* Added type hints for the public API
* Added the new library homepage with the new Getting Started
guide and the new API reference
* Parse exceptions now show expected tokens and grammar rules at
the stopped position (#52)
* Dropped support for Python 3.4, 3.5, 3.6 (end of life)
* Dropped support for Python 2.5, 2.6, 3.3 (end of life),
modernized code for Python 3 to run without obsolete 2to3 (#57)
(Thanks to @jdufresne)
* Removed documentation and unit tests from the distribution
* Switched from setuptools to Poetry
* Switched to poetry-core for lighter PEP 517 builds (#73)
(Thanks to @fabaff)
* Fixed TypeError in oneplus when applying it parser + parser
(#66) (Thanks to @martica)
* Fixed AttributeError when comparing Token objects to None (#58)
(Thanks to @Halolegend94)
OBS-URL: https://build.opensuse.org/request/show/993132
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-funcparserlib?expand=0&rev=18
2022-08-04 20:58:48 +00:00
|
|
|
Source: https://github.com/vlasovskikh/funcparserlib/archive/refs/tags/%{version}.tar.gz#/funcparserlib-%{version}-gh.tar.gz
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module poetry-core}
|
2020-08-17 06:23:32 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2022-10-17 00:42:02 +00:00
|
|
|
BuildRequires: %{python_module six}
|
2017-04-19 20:05:11 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-12-04 17:13:52 +00:00
|
|
|
BuildArch: noarch
|
2017-04-19 20:05:11 +00:00
|
|
|
%python_subpackages
|
2014-03-14 13:50:29 +00:00
|
|
|
|
|
|
|
%description
|
Accepting request 993132 from home:bnavigator:branches:devel:languages:python
- Update to 1.0.0
* The stable 1.0.0 release freezes the API of funcparserlib 0.3.6
which was released on 2013-05-02, with a few bug fixes and
small features.
* Added support for Python 3.10
* Added support for Python 3.9 (#63) (Thanks to @pkulev)
* Added support for Python 3.8
* Added -p (the same as skip(p)) with more strict type hints for
-p and p1 + p2
* Added tok(type[, value]) for more compact grammars, better
error messages
* Added TokenSpec(type, pattern[, flags]) to simplify the use of
make_tokenizer()
* Added type hints for the public API
* Added the new library homepage with the new Getting Started
guide and the new API reference
* Parse exceptions now show expected tokens and grammar rules at
the stopped position (#52)
* Dropped support for Python 3.4, 3.5, 3.6 (end of life)
* Dropped support for Python 2.5, 2.6, 3.3 (end of life),
modernized code for Python 3 to run without obsolete 2to3 (#57)
(Thanks to @jdufresne)
* Removed documentation and unit tests from the distribution
* Switched from setuptools to Poetry
* Switched to poetry-core for lighter PEP 517 builds (#73)
(Thanks to @fabaff)
* Fixed TypeError in oneplus when applying it parser + parser
(#66) (Thanks to @martica)
* Fixed AttributeError when comparing Token objects to None (#58)
(Thanks to @Halolegend94)
OBS-URL: https://build.opensuse.org/request/show/993132
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-funcparserlib?expand=0&rev=18
2022-08-04 20:58:48 +00:00
|
|
|
The primary focus of funcparserlib is parsing little languages or external
|
2014-03-14 13:50:29 +00:00
|
|
|
DSLs (domain specific languages).
|
|
|
|
|
Accepting request 993132 from home:bnavigator:branches:devel:languages:python
- Update to 1.0.0
* The stable 1.0.0 release freezes the API of funcparserlib 0.3.6
which was released on 2013-05-02, with a few bug fixes and
small features.
* Added support for Python 3.10
* Added support for Python 3.9 (#63) (Thanks to @pkulev)
* Added support for Python 3.8
* Added -p (the same as skip(p)) with more strict type hints for
-p and p1 + p2
* Added tok(type[, value]) for more compact grammars, better
error messages
* Added TokenSpec(type, pattern[, flags]) to simplify the use of
make_tokenizer()
* Added type hints for the public API
* Added the new library homepage with the new Getting Started
guide and the new API reference
* Parse exceptions now show expected tokens and grammar rules at
the stopped position (#52)
* Dropped support for Python 3.4, 3.5, 3.6 (end of life)
* Dropped support for Python 2.5, 2.6, 3.3 (end of life),
modernized code for Python 3 to run without obsolete 2to3 (#57)
(Thanks to @jdufresne)
* Removed documentation and unit tests from the distribution
* Switched from setuptools to Poetry
* Switched to poetry-core for lighter PEP 517 builds (#73)
(Thanks to @fabaff)
* Fixed TypeError in oneplus when applying it parser + parser
(#66) (Thanks to @martica)
* Fixed AttributeError when comparing Token objects to None (#58)
(Thanks to @Halolegend94)
OBS-URL: https://build.opensuse.org/request/show/993132
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-funcparserlib?expand=0&rev=18
2022-08-04 20:58:48 +00:00
|
|
|
Parsers made with funcparserlib are pure-Python LL(*) parsers. It means that
|
|
|
|
it's very easy to write parsers without thinking about lookaheads and other
|
|
|
|
hardcore parsing stuff. However, recursive descent parsing is a rather
|
|
|
|
low method compared to LL(k) or LR(k) algorithms. Still, parsing with
|
|
|
|
funcparserlib is at least twice faster than PyParsing, a very popular library
|
|
|
|
for Python.
|
2014-03-14 13:50:29 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n funcparserlib-%{version}
|
|
|
|
|
|
|
|
%build
|
Accepting request 993132 from home:bnavigator:branches:devel:languages:python
- Update to 1.0.0
* The stable 1.0.0 release freezes the API of funcparserlib 0.3.6
which was released on 2013-05-02, with a few bug fixes and
small features.
* Added support for Python 3.10
* Added support for Python 3.9 (#63) (Thanks to @pkulev)
* Added support for Python 3.8
* Added -p (the same as skip(p)) with more strict type hints for
-p and p1 + p2
* Added tok(type[, value]) for more compact grammars, better
error messages
* Added TokenSpec(type, pattern[, flags]) to simplify the use of
make_tokenizer()
* Added type hints for the public API
* Added the new library homepage with the new Getting Started
guide and the new API reference
* Parse exceptions now show expected tokens and grammar rules at
the stopped position (#52)
* Dropped support for Python 3.4, 3.5, 3.6 (end of life)
* Dropped support for Python 2.5, 2.6, 3.3 (end of life),
modernized code for Python 3 to run without obsolete 2to3 (#57)
(Thanks to @jdufresne)
* Removed documentation and unit tests from the distribution
* Switched from setuptools to Poetry
* Switched to poetry-core for lighter PEP 517 builds (#73)
(Thanks to @fabaff)
* Fixed TypeError in oneplus when applying it parser + parser
(#66) (Thanks to @martica)
* Fixed AttributeError when comparing Token objects to None (#58)
(Thanks to @Halolegend94)
OBS-URL: https://build.opensuse.org/request/show/993132
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-funcparserlib?expand=0&rev=18
2022-08-04 20:58:48 +00:00
|
|
|
%pyproject_wheel
|
2014-03-14 13:50:29 +00:00
|
|
|
|
|
|
|
%install
|
Accepting request 993132 from home:bnavigator:branches:devel:languages:python
- Update to 1.0.0
* The stable 1.0.0 release freezes the API of funcparserlib 0.3.6
which was released on 2013-05-02, with a few bug fixes and
small features.
* Added support for Python 3.10
* Added support for Python 3.9 (#63) (Thanks to @pkulev)
* Added support for Python 3.8
* Added -p (the same as skip(p)) with more strict type hints for
-p and p1 + p2
* Added tok(type[, value]) for more compact grammars, better
error messages
* Added TokenSpec(type, pattern[, flags]) to simplify the use of
make_tokenizer()
* Added type hints for the public API
* Added the new library homepage with the new Getting Started
guide and the new API reference
* Parse exceptions now show expected tokens and grammar rules at
the stopped position (#52)
* Dropped support for Python 3.4, 3.5, 3.6 (end of life)
* Dropped support for Python 2.5, 2.6, 3.3 (end of life),
modernized code for Python 3 to run without obsolete 2to3 (#57)
(Thanks to @jdufresne)
* Removed documentation and unit tests from the distribution
* Switched from setuptools to Poetry
* Switched to poetry-core for lighter PEP 517 builds (#73)
(Thanks to @fabaff)
* Fixed TypeError in oneplus when applying it parser + parser
(#66) (Thanks to @martica)
* Fixed AttributeError when comparing Token objects to None (#58)
(Thanks to @Halolegend94)
OBS-URL: https://build.opensuse.org/request/show/993132
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-funcparserlib?expand=0&rev=18
2022-08-04 20:58:48 +00:00
|
|
|
%pyproject_install
|
2017-04-19 20:05:11 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2014-03-14 13:50:29 +00:00
|
|
|
|
|
|
|
%check
|
2020-08-17 06:23:32 +00:00
|
|
|
%pytest
|
2014-03-14 13:50:29 +00:00
|
|
|
|
2017-04-19 20:05:11 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:13:52 +00:00
|
|
|
%license LICENSE
|
Accepting request 993132 from home:bnavigator:branches:devel:languages:python
- Update to 1.0.0
* The stable 1.0.0 release freezes the API of funcparserlib 0.3.6
which was released on 2013-05-02, with a few bug fixes and
small features.
* Added support for Python 3.10
* Added support for Python 3.9 (#63) (Thanks to @pkulev)
* Added support for Python 3.8
* Added -p (the same as skip(p)) with more strict type hints for
-p and p1 + p2
* Added tok(type[, value]) for more compact grammars, better
error messages
* Added TokenSpec(type, pattern[, flags]) to simplify the use of
make_tokenizer()
* Added type hints for the public API
* Added the new library homepage with the new Getting Started
guide and the new API reference
* Parse exceptions now show expected tokens and grammar rules at
the stopped position (#52)
* Dropped support for Python 3.4, 3.5, 3.6 (end of life)
* Dropped support for Python 2.5, 2.6, 3.3 (end of life),
modernized code for Python 3 to run without obsolete 2to3 (#57)
(Thanks to @jdufresne)
* Removed documentation and unit tests from the distribution
* Switched from setuptools to Poetry
* Switched to poetry-core for lighter PEP 517 builds (#73)
(Thanks to @fabaff)
* Fixed TypeError in oneplus when applying it parser + parser
(#66) (Thanks to @martica)
* Fixed AttributeError when comparing Token objects to None (#58)
(Thanks to @Halolegend94)
OBS-URL: https://build.opensuse.org/request/show/993132
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-funcparserlib?expand=0&rev=18
2022-08-04 20:58:48 +00:00
|
|
|
%doc README.md
|
|
|
|
%{python_sitelib}/funcparserlib
|
|
|
|
%{python_sitelib}/funcparserlib-%{version}*-info
|
2014-03-14 13:50:29 +00:00
|
|
|
|
|
|
|
%changelog
|