From f9012c6bd6441cb8e88037bb64a305336a1d7285025825fb1f861439b8072b84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 08:11:10 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyPEG2?expand=0&rev=8 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + pyPEG2-2.15.2.tar.gz | 3 +++ python-pyPEG2.changes | 20 ++++++++++++++ python-pyPEG2.spec | 62 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 109 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pyPEG2-2.15.2.tar.gz create mode 100644 python-pyPEG2.changes create mode 100644 python-pyPEG2.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/pyPEG2-2.15.2.tar.gz b/pyPEG2-2.15.2.tar.gz new file mode 100644 index 0000000..6061a9a --- /dev/null +++ b/pyPEG2-2.15.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b2d4f80d8e1a9370b2a91f4a25f4abf7f69b85c8da84cd23ec36451958a1f6d +size 40334 diff --git a/python-pyPEG2.changes b/python-pyPEG2.changes new file mode 100644 index 0000000..0abc805 --- /dev/null +++ b/python-pyPEG2.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Wed Jun 4 08:06:58 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Mon Jun 8 13:14:43 UTC 2020 - Marketa Calabkova + +- replace nose with pytest + +------------------------------------------------------------------- +Tue May 2 21:42:12 UTC 2017 - sor.alexei@meowr.ru + +- Update for the multipython build. +- Use python-nose unconditionally. + +------------------------------------------------------------------- +Thu Apr 21 07:07:37 UTC 2016 - sor.alexei@meowr.ru + +- Initial package. diff --git a/python-pyPEG2.spec b/python-pyPEG2.spec new file mode 100644 index 0000000..89b551b --- /dev/null +++ b/python-pyPEG2.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-pyPEG2 +# +# 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/ +# + + +%define _name pyPEG2 +Name: python-pyPEG2 +Version: 2.15.2 +Release: 0 +Summary: PEG Parser-Interpreter framework for Python +License: GPL-2.0-only +Group: Development/Languages/Python +URL: https://fdik.org/pyPEG2 +Source: https://files.pythonhosted.org/packages/source/p/%{_name}/%{_name}-%{version}.tar.gz +BuildRequires: %{python_module lxml} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +Requires: python-lxml +BuildArch: noarch + +%description +pyPEG is a plain and simple intrinsic parser interpreter framework +for Python. It is based on Parsing Expression Grammar, PEG. +With pyPEG you can parse many formal languages in a very easy way. + +%python_subpackages + +%prep +%setup -q -n %{_name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install + +%check +%pytest + +%files %{python_files} +%license LICENSE.txt +%doc CHANGES.txt README.txt +%{python_sitelib}/pypeg2/ +%{python_sitelib}/py[Pp][Ee][Gg]2-%{version}*-info + +%changelog