From 18ce8dc887094a1e08013900af6b3769764b84188a6fa3086cc567d052ae87ad Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Thu, 9 Oct 2025 12:42:10 +0000 Subject: [PATCH] - Update to 2.0.3 * fix: memory leak through exception traceback OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Arpeggio?expand=0&rev=40 --- .gitattributes | 23 +++++ .gitignore | 1 + python-Arpeggio-2.0.2.tar.gz | 3 + python-Arpeggio-2.0.3.tar.gz | 3 + python-Arpeggio.changes | 161 +++++++++++++++++++++++++++++++++++ python-Arpeggio.spec | 67 +++++++++++++++ 6 files changed, 258 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-Arpeggio-2.0.2.tar.gz create mode 100644 python-Arpeggio-2.0.3.tar.gz create mode 100644 python-Arpeggio.changes create mode 100644 python-Arpeggio.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-Arpeggio-2.0.2.tar.gz b/python-Arpeggio-2.0.2.tar.gz new file mode 100644 index 0000000..0b7d844 --- /dev/null +++ b/python-Arpeggio-2.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1207c060596f377f1b6b8a9c8bc6c97cfde007acdd1c25544849a06a8c549515 +size 768254 diff --git a/python-Arpeggio-2.0.3.tar.gz b/python-Arpeggio-2.0.3.tar.gz new file mode 100644 index 0000000..0a517ef --- /dev/null +++ b/python-Arpeggio-2.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8e3e585c0807ae76c29a5edddd35151b680724efdfd927cb7a04cf031389cfe +size 768367 diff --git a/python-Arpeggio.changes b/python-Arpeggio.changes new file mode 100644 index 0000000..e596878 --- /dev/null +++ b/python-Arpeggio.changes @@ -0,0 +1,161 @@ +------------------------------------------------------------------- +Thu Oct 9 12:23:02 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 2.0.3 + * fix: memory leak through exception traceback + +------------------------------------------------------------------- +Fri Jun 13 05:36:20 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Mon Jan 29 21:04:08 UTC 2024 - Dirk Müller + +- build for python 3.7 and above + +------------------------------------------------------------------- +Tue Jul 11 13:21:36 UTC 2023 - Dirk Müller + +- update to 2.0.2: + * fix: drop deprecated `setup_requires` and `tests_require` + * fix: replace ` ` with `\n` in error reports for matches + +------------------------------------------------------------------- +Thu Aug 11 09:14:13 UTC 2022 - Sebastian Wagner + +- Disable Python2 to fix build on 15.3. + +------------------------------------------------------------------- +Tue Mar 22 18:46:22 UTC 2022 - Sebastian Wagner + +- update to version 2.0.0: + - Added `eval_attrs` call to `NoMatch` exceptions ([ebfd60]). See [the + docs](https://textx.github.io/Arpeggio/latest/handling_errors/). + - Dropped support for deprecated Python versions. The lowest supported version + is 3.6. **(BIC)** + +------------------------------------------------------------------- +Thu Dec 9 10:47:09 UTC 2021 - pgajdos@suse.com + +- pytest-runner is not required for build + +------------------------------------------------------------------- +Sun Apr 25 13:17:14 UTC 2021 - Sebastian Wagner + +- update to version 1.10.2: + - Added EditorConfig configuration ([#77]). Thanks KOLANICH@GitHub + - Fixed parsing of version from `setup.py` when global encoding isn't UTF-8 + ([#86]). Thanks neirbowj@GitHub + - Fix repetition termination on a successful empty separator match ([#92]). + +------------------------------------------------------------------- +Sun Nov 1 19:43:14 UTC 2020 - Sebastian Wagner + +- Update to version 1.10.1: + - Fix packaging, exclude examples from wheel. + +------------------------------------------------------------------- +Sun Nov 1 16:56:10 UTC 2020 - Sebastian Wagner + +- Update to version 1.10.0: + - Fix reporting duplicate rule names in `NoMatch` exception ([a1f14bede]) + - Raise `AttributeError` when accessing unexisting rule name on parse tree node. + ([#82]) + - Added `tree_str` method to parse tree nodes for nice string representation of + parse trees. ([#76]) + - Added parse tree node suppression support and overriding of special Python + rule syntax. (#76) + - UnorderedGroup matching made deterministic ([#73]) + +------------------------------------------------------------------- +Wed May 6 07:06:42 UTC 2020 - Tomáš Chvátal + +- Do not restrict pytest 5 as we work with it + +------------------------------------------------------------------- +Thu Jan 2 07:31:39 UTC 2020 - Tomáš Chvátal + +- Do not install examples in site-packages/examples to avoid conflicts + +------------------------------------------------------------------- +Sun Oct 6 17:57:05 UTC 2019 - Sebastian Wagner + +- update to version 1.9.2: + - Added explicit Python versions in setup.py classifiers ([#65]) + - Removed pytest version constraint and fixed tests to work with both 5.x and + older versions. ([#57]) + - https://github.com/textX/Arpeggio/issues/65 + - https://github.com/textX/Arpeggio/issues/57 +- update to version 1.9.1: + - Lowered the required pytest version for running tests as we'll still support + Python 2.7 until its EOL. + - Fixed problem with `OrderedChoice` which hasn't maintained `skipws/ws` + state. [#61] + Reported at https://github.com/textX/textX/issues/205 + - Various fixes in the docs, docstrings and examples. Thanks mcepl@GitHub and + zetaraku@GitHub. + - docs support for different versions thanks to + [mike](https://github.com/jimporter/mike) + - https://github.com/textX/Arpeggio/issues/61 +- remvove imp-to-importlib.patch, integrated upstream + +------------------------------------------------------------------- +Fri Jul 19 10:36:13 UTC 2019 - Tomáš Chvátal + +- Restrict the pytest5 for now, issue reported upstream + +------------------------------------------------------------------- +Wed Jun 12 05:09:35 UTC 2019 - Matej Cepl + +- Update imp-to-importlib.patch to deal with irregular imports as well. + +------------------------------------------------------------------- +Tue Jun 11 20:52:07 CEST 2019 - Matej Cepl + +- It's better to fix a bug, than to switch off test. Add + imp-to-importlib.patch replacing use of imp library in Python + 3 with importlib. gh#textX/Arpeggio#54 + +------------------------------------------------------------------- +Tue Jun 11 13:14:44 UTC 2019 - Tomáš Chvátal + +- Skip one randomly failing test + +------------------------------------------------------------------- +Tue Mar 5 11:55:55 UTC 2019 - Tomáš Chvátal + +- Update to 1.9.0: + * Added `extra_info` param to `Terminal` for additional information. + Used by textX. +- Switch to github tarball for tests and license content +- Drop merged patch fix-setup-encoding.patch + +------------------------------------------------------------------- +Tue Dec 4 12:45:41 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Sat Jul 7 08:11:38 UTC 2018 - sebix+novell.com@sebix.at + +- add fix-setup-encoding.patch to fix setup.py encoding issue +- update to version 1.8.0: + - Fixed issue #43. + *Backward incompatible change* for cleanpeg comment syntax. + Please see: https://github.com/igordejanovic/Arpeggio/issues/43 + - Added `file` parser param used for `DebugPrinter` to allow the + output stream to be changed from stdout. This allows doctests to + continue to work. Thanks ianmmoir@GitHub. +- update to version 1.7.1: + - Fixed bug in comment parsing optimization. +- update to version 1.7: + - Added re_flag parameter to RegExMatch constructor. Thanks Aluriak@GitHub. + - Fix in grammar language docs. Thanks schmittlauch@GitHub. + - Small fixes in examples. + +------------------------------------------------------------------- +Mon Aug 28 11:48:43 UTC 2017 - sebix+novell.com@sebix.at + +- intial package diff --git a/python-Arpeggio.spec b/python-Arpeggio.spec new file mode 100644 index 0000000..83c79f9 --- /dev/null +++ b/python-Arpeggio.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-Arpeggio +# +# Copyright (c) 2025 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-Arpeggio +Version: 2.0.3 +Release: 0 +Summary: Packrat parser interpreter +License: MIT +URL: https://github.com/textX/Arpeggio/ +Source: https://github.com/textX/Arpeggio/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +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} +# remove shebang +sed -i '1d' arpeggio/tests/regressions/issue_16/test_issue_16.py +# https://github.com/textX/Arpeggio/issues/94 +sed -i '/pytest-runner/d' setup.cfg + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest arpeggio/tests + +%files %{python_files} +%doc README.md CHANGELOG.md AUTHORS.md +%license LICENSE +%{python_sitelib}/arpeggio +%{python_sitelib}/[Aa]rpeggio-%{version}.dist-info + +%changelog