From 058e5e2b4a57b8bedc8eb61e852d69d29fe1146587793c987d020a9e38020a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 15 May 2025 10:48:12 +0000 Subject: [PATCH] Accepting request 1277075 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277075 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-addict?expand=0&rev=17 --- python-addict.changes | 5 +++++ python-addict.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-addict.changes b/python-addict.changes index 9765547..ee634b0 100644 --- a/python-addict.changes +++ b/python-addict.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 07:00:07 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon May 17 07:36:43 UTC 2021 - pgajdos@suse.com diff --git a/python-addict.spec b/python-addict.spec index 1941b01..c4c1b84 100644 --- a/python-addict.spec +++ b/python-addict.spec @@ -1,7 +1,7 @@ # # spec file for package python-addict # -# Copyright (c) 2021 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-addict Version: 2.4.0 Release: 0 @@ -24,8 +23,10 @@ Summary: A dictionary using both attribute and item syntax License: MIT URL: https://github.com/mewwts/addict Source: https://github.com/mewwts/addict/archive/v%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -40,10 +41,10 @@ using both attribute and item syntax. %setup -q -n addict-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -52,6 +53,7 @@ using both attribute and item syntax. %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/addict +%{python_sitelib}/addict-%{version}*-info %changelog