From e2b728cccbc819d496b681cf7dc51cea27318e93cd0a408d3306c2af947fecf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 May 2025 10:24:06 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lazy-object-proxy?expand=0&rev=34 --- python-lazy-object-proxy.changes | 5 +++++ python-lazy-object-proxy.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-lazy-object-proxy.changes b/python-lazy-object-proxy.changes index e45d8d0..b667813 100644 --- a/python-lazy-object-proxy.changes +++ b/python-lazy-object-proxy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 30 10:23:55 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Dec 16 21:01:46 UTC 2023 - Dirk Müller diff --git a/python-lazy-object-proxy.spec b/python-lazy-object-proxy.spec index 6a221a0..e449a61 100644 --- a/python-lazy-object-proxy.spec +++ b/python-lazy-object-proxy.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-lazy-object-proxy # -# 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 @@ -34,8 +34,10 @@ Group: Development/Libraries/Python URL: https://github.com/ionelmc/python-lazy-object-proxy Source: https://files.pythonhosted.org/packages/source/l/lazy-object-proxy/lazy-object-proxy-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 45} BuildRequires: %{python_module setuptools_scm >= 6.2} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Obsoletes: python-lazy_object_proxy < %{version}-%{release} @@ -57,12 +59,12 @@ from Python's ast %build %if !%{with test} export CFLAGS="%{optflags} -fno-strict-aliasing" -%python_build +%pyproject_wheel %endif %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %endif