From 693c16b43a345fb633a7b7dd4e2a9cf23c77c5ab1e260fe30acf43c52b4f0c96 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Fri, 30 May 2025 10:42:44 +0000 Subject: [PATCH] Accepting request 1281359 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1281359 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lazr.delegates?expand=0&rev=6 --- python-lazr.delegates.changes | 5 +++++ python-lazr.delegates.spec | 13 +++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/python-lazr.delegates.changes b/python-lazr.delegates.changes index 8a86661..6b3c233 100644 --- a/python-lazr.delegates.changes +++ b/python-lazr.delegates.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 30 10:11:08 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Jun 15 12:18:35 UTC 2023 - Andreas Schneider diff --git a/python-lazr.delegates.spec b/python-lazr.delegates.spec index 8772cce..79e5552 100644 --- a/python-lazr.delegates.spec +++ b/python-lazr.delegates.spec @@ -1,7 +1,7 @@ # # spec file for package python-lazr.delegates # -# 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 @@ -24,7 +24,9 @@ Summary: Easily write objects that delegate behavior License: LGPL-3.0-only URL: https://launchpad.net/lazr.delegates Source: https://files.pythonhosted.org/packages/source/l/lazr.delegates/lazr.delegates-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-zope.interface @@ -43,10 +45,10 @@ Easily write objects that delegate behavior %build sed -i "/'nose'/d" setup.py -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -55,6 +57,9 @@ sed -i "/'nose'/d" setup.py %files %{python_files} %doc README.rst %license COPYING.txt -%{python_sitelib}/* +%dir %{python_sitelib}/lazr +%{python_sitelib}/lazr/delegates +%{python_sitelib}/lazr[._]delegates-%{version}*-info +%{python_sitelib}/lazr[._]delegates-%{version}*nspkg.pth %changelog