forked from pool/python-spark_parser
- 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:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
53
python-spark_parser.changes
Normal file
53
python-spark_parser.changes
Normal file
@@ -0,0 +1,53 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 11 21:08:13 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 16 22:50:53 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Remove unnecessary build dependency nose
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 19 08:03:00 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 10 10:10:05 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 1.8.9:
|
||||
* bugfixes and test enhancements
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 23 10:30:39 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- update to version 1.8.7
|
||||
* Mostly bugfixes and new tests.
|
||||
* See ChangeLog.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:54:32 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Remove superfluous devel dependency for noarch package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 11 15:32:25 UTC 2017 - jengelh@inai.de
|
||||
|
||||
- Trim history from package description.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 7 22:42:35 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- initial version
|
||||
77
python-spark_parser.spec
Normal file
77
python-spark_parser.spec
Normal file
@@ -0,0 +1,77 @@
|
||||
#
|
||||
# spec file for package python-spark_parser
|
||||
#
|
||||
# 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
|
||||
# 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.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-spark_parser
|
||||
Version: 1.9.0
|
||||
Release: 0
|
||||
Summary: An Earley-Algorithm Context-free grammar Parser Toolkit
|
||||
License: MIT
|
||||
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
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
SPARK stands for Scanning, Parsing, and Rewriting Kit. It uses Jay
|
||||
Earley's algorithm for parsing context-free grammars, and comes with
|
||||
some generic Abstract Syntax Tree routines. There is also a prototype
|
||||
scanner which does its job by combining Python regular expressions.
|
||||
|
||||
Please Note: Earley algorithm parsers are almost linear when given an LR
|
||||
grammar. These are grammars which are left-recursive.
|
||||
|
||||
%prep
|
||||
%setup -q -n spark_parser-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/spark-parser-coverage
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest test
|
||||
|
||||
%post
|
||||
%python_install_alternative spark-parser-coverage
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative spark-parser-coverage
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc ChangeLog README.rst
|
||||
%python_alternative %{_bindir}/spark-parser-coverage
|
||||
%{python_sitelib}/spark_parser
|
||||
%{python_sitelib}/spark_parser-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
3
spark_parser-1.8.9.tar.gz
Normal file
3
spark_parser-1.8.9.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a7bb97b97953fb8bf0cd8158d820b6467ef1e7f747738e82248ae4c824f1e25a
|
||||
size 118345
|
||||
3
spark_parser-1.9.0.tar.gz
Normal file
3
spark_parser-1.9.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dc66d48c4265c4133db41a9c5fe9c1c502b3b20167df158a0f234cd31712cf64
|
||||
size 80108
|
||||
Reference in New Issue
Block a user