From 4066c5ae0737f12567d69739669f3c9ed7151c84d82fd1925953d389260017f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 08:52:26 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parsimonious?expand=0&rev=7 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + parsimonious-0.10.0.tar.gz | 3 ++ python-parsimonious.changes | 43 +++++++++++++++++++++++++ python-parsimonious.spec | 62 +++++++++++++++++++++++++++++++++++++ 5 files changed, 132 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 parsimonious-0.10.0.tar.gz create mode 100644 python-parsimonious.changes create mode 100644 python-parsimonious.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/parsimonious-0.10.0.tar.gz b/parsimonious-0.10.0.tar.gz new file mode 100644 index 0000000..eb68705 --- /dev/null +++ b/parsimonious-0.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8281600da180ec8ae35427a4ab4f7b82bfec1e3d1e52f80cb60ea82b9512501c +size 52172 diff --git a/python-parsimonious.changes b/python-parsimonious.changes new file mode 100644 index 0000000..7fc2fb1 --- /dev/null +++ b/python-parsimonious.changes @@ -0,0 +1,43 @@ +------------------------------------------------------------------- +Tue Jun 3 08:52:05 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Wed Mar 8 09:01:53 UTC 2023 - Dirk Müller + +- update to 0.10.0: + * Fix infinite recursion in __eq__ in some cases. (FelisNivalis) + * Improve error message in left-recursive rules. (lucaswiman) + * Add support for range ``{min,max}`` repetition expressions (righthandabacus) + * Fix bug in ``*`` and ``+`` for token grammars (lucaswiman) + * Add support for grammars on bytestrings (lucaswiman) + * Fix LazyReference resolution bug #134 (righthandabacus) + * ~15% speedup on benchmarks with a faster node cache (ethframe) + * This release makes backward-incompatible changes: + * Fix precedence of string literal modifiers ``u/r/b``. + This will break grammars with no spaces between a + reference and a string literal. (lucaswiman) + * Add support for Python 3.7, 3.8, 3.9, 3.10 (righthandabacus, Lonnen) + * Drop support for Python 2.x, 3.3, 3.4 (righthandabacus, Lonnen) + * Remove six and go all in on Python 3 idioms (Lonnen) + * Replace re with regex for improved handling of unicode characters + in regexes (Oderjunkie) + * Dropped nose for unittest (swayson) + * `Grammar.__repr__()` now correctly escapes backslashes (ingolemo) + * Custom rules can now be class methods in addition to + functions (James Addison) + * Make the ascii flag available in the regex syntax (Roman Inflianskas) +- drop replace-nose.patch (upstream) + +------------------------------------------------------------------- +Mon Apr 20 15:58:03 UTC 2020 - Matej Cepl + +- Add replace-nose.patch which replaces use of nose with the + standard library (gh#erikrose/parsimonious#160) +- Switch from using nose runner to pytest + +------------------------------------------------------------------- +Mon Dec 23 05:13:58 UTC 2019 - Martin Herkt <9+suse@cirno.systems> + +- init, version 0.8.1 diff --git a/python-parsimonious.spec b/python-parsimonious.spec new file mode 100644 index 0000000..d1d1a72 --- /dev/null +++ b/python-parsimonious.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-parsimonious +# +# 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/ +# + + +Name: python-parsimonious +Version: 0.10.0 +Release: 0 +Summary: Pure-Python PEG parser +License: MIT +Group: Development/Languages/Python +URL: https://github.com/erikrose/parsimonious +Source: https://files.pythonhosted.org/packages/source/p/parsimonious/parsimonious-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module regex} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-regex +BuildArch: noarch +%python_subpackages + +%description +Parsimonious is an arbitrary-lookahead parser written in pure +Python. It's based on parsing expression grammars (PEGs), which +means you feed it a simplified sort of EBNF notation. + +%prep +%autosetup -p1 -n parsimonious-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/parsimonious +%{python_sitelib}/parsimonious-%{version}*-info + +%changelog