14
0

- update to 1.9.0:

* Revamp for a more modern Python style in the 3.12 era:
    + start adding type annotations to code.
    + use pyproject.toml
    + remove illegal escape sequences
  * `BuildTree` now builds trees iteratively rather than
    recursively. With this we can handle larger trees which are
    needed in the decompilers.
  * Revise `README.rst` for the above and go over spelling and
    grammar
  * Internally, more git branches have been created to support
    older Python.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spark_parser?expand=0&rev=16
This commit is contained in:
2024-11-11 21:08:52 +00:00
committed by Git OBS Bridge
parent 489dfa1247
commit 956b38fa22
4 changed files with 27 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-spark_parser
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-spark_parser
Version: 1.8.9
Version: 1.9.0
Release: 0
Summary: An Earley-Algorithm Context-free grammar Parser Toolkit
License: MIT
@@ -26,8 +26,10 @@ Group: Development/Languages/Python
URL: https://github.com/rocky/python-spark/
Source: https://files.pythonhosted.org/packages/source/s/spark_parser/spark_parser-%{version}.tar.gz
BuildRequires: %{python_module click}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-click
@@ -49,10 +51,10 @@ grammar. These are grammars which are left-recursive.
%setup -q -n spark_parser-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/spark-parser-coverage
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -69,6 +71,7 @@ grammar. These are grammars which are left-recursive.
%license LICENSE
%doc ChangeLog README.rst
%python_alternative %{_bindir}/spark-parser-coverage
%{python_sitelib}/*
%{python_sitelib}/spark_parser
%{python_sitelib}/spark_parser-%{version}.dist-info
%changelog