From 1f4e9743059b68c64b2e6fe0629a6632dc704b7c5b41595060de45937b8abd0d Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Mon, 12 May 2025 11:44:52 +0000 Subject: [PATCH] Accepting request 1276815 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1276815 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyPrind?expand=0&rev=12 --- python-PyPrind.changes | 5 +++++ python-PyPrind.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-PyPrind.changes b/python-PyPrind.changes index b6a68c3..95183b3 100644 --- a/python-PyPrind.changes +++ b/python-PyPrind.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 11:25:44 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Aug 31 09:55:14 UTC 2022 - Matej Cepl diff --git a/python-PyPrind.spec b/python-PyPrind.spec index 4dd22d9..3b92274 100644 --- a/python-PyPrind.spec +++ b/python-PyPrind.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyPrind # -# Copyright (c) 2022 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-PyPrind Version: 2.11.3 Release: 0 @@ -24,9 +23,11 @@ Summary: Python progress bar and percent indicator utility License: BSD-3-Clause URL: https://github.com/rasbt/pyprind Source0: https://files.pythonhosted.org/packages/source/P/PyPrind/PyPrind-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module psutil >= 3.2.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-psutil >= 3.2.0 @@ -45,10 +46,10 @@ computation progress. %setup -q -n PyPrind-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -56,6 +57,7 @@ computation progress. %files %{python_files} %doc README.md -%{python_sitelib}/* +%{python_sitelib}/pyprind +%{python_sitelib}/[Pp]y[Pp]rind-%{version}*-info %changelog