2017-09-01 14:34:21 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-Arpeggio
|
|
|
|
|
#
|
2024-01-29 21:04:34 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-09-01 14:34:21 +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:13:48 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-07-07 09:07:38 +00:00
|
|
|
#
|
2017-09-01 14:34:21 +00:00
|
|
|
|
|
|
|
|
|
2024-01-29 21:04:34 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-09-01 14:34:21 +00:00
|
|
|
Name: python-Arpeggio
|
2023-07-11 13:22:13 +00:00
|
|
|
Version: 2.0.2
|
2017-09-01 14:34:21 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Packrat parser interpreter
|
2018-07-07 09:07:38 +00:00
|
|
|
License: MIT
|
2019-06-11 13:14:57 +00:00
|
|
|
URL: https://github.com/textX/Arpeggio/
|
2020-11-01 16:56:53 +00:00
|
|
|
Source: https://github.com/textX/Arpeggio/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2024-01-29 21:04:34 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2021-12-09 11:34:27 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-09-01 14:34:21 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-11-01 16:56:53 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-03-05 11:59:49 +00:00
|
|
|
BuildRequires: fdupes
|
2018-07-07 09:07:38 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-09-01 14:34:21 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Arpeggio is a recursive descent parser with memoization based on PEG grammars
|
|
|
|
|
(aka Packrat parser).
|
|
|
|
|
|
|
|
|
|
For a higher level parsing/language tool (i.e., a nicer interface to
|
|
|
|
|
Arpeggio) see textX
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Arpeggio-%{version}
|
2020-11-01 16:56:53 +00:00
|
|
|
# remove shebang
|
|
|
|
|
sed -i '1d' arpeggio/tests/regressions/issue_16/test_issue_16.py
|
2021-12-09 11:34:27 +00:00
|
|
|
# https://github.com/textX/Arpeggio/issues/94
|
|
|
|
|
sed -i '/pytest-runner/d' setup.cfg
|
2017-09-01 14:34:21 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
2019-03-05 11:59:49 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2019-10-06 17:59:33 +00:00
|
|
|
%pytest arpeggio/tests
|
2017-09-01 14:34:21 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
2020-11-01 16:56:53 +00:00
|
|
|
%doc README.md CHANGELOG.md AUTHORS.md
|
2019-03-05 11:59:49 +00:00
|
|
|
%license LICENSE
|
2017-09-01 14:34:21 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|