From c9c112c65989577d2638d31bb8882bd5d1f825c9c4ef495e962e189766cee828 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 --- python-parsimonious.changes | 5 +++++ python-parsimonious.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-parsimonious.changes b/python-parsimonious.changes index 98059db..7fc2fb1 100644 --- a/python-parsimonious.changes +++ b/python-parsimonious.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-parsimonious.spec b/python-parsimonious.spec index 8d2dedd..d1d1a72 100644 --- a/python-parsimonious.spec +++ b/python-parsimonious.spec @@ -1,7 +1,7 @@ # # spec file for package python-parsimonious # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-parsimonious Version: 0.10.0 Release: 0 @@ -25,9 +24,11 @@ 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 @@ -43,10 +44,10 @@ means you feed it a simplified sort of EBNF notation. %autosetup -p1 -n parsimonious-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -55,6 +56,7 @@ means you feed it a simplified sort of EBNF notation. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/parsimonious +%{python_sitelib}/parsimonious-%{version}*-info %changelog