From b45e58406d099131038ba9c4f71d86cc5264a9d7c7a1faea9466f54f3ca94a9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 16:31:59 +0000 Subject: [PATCH] Accepting request 1277205 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277205 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attr?expand=0&rev=14 --- python-attr.changes | 5 +++++ python-attr.spec | 14 +++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/python-attr.changes b/python-attr.changes index 77807f2..eb636dc 100644 --- a/python-attr.changes +++ b/python-attr.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 15:55:48 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Aug 12 11:46:22 UTC 2023 - ecsos diff --git a/python-attr.spec b/python-attr.spec index 2f846e3..97d48a4 100644 --- a/python-attr.spec +++ b/python-attr.spec @@ -1,7 +1,7 @@ # # spec file for package python-attr # -# 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 @@ -25,11 +25,12 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/denis-ryzhkov/attr Source: https://files.pythonhosted.org/packages/source/a/attr/attr-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -39,10 +40,10 @@ A decorator to set attributes of target function or class in a DRY way. %setup -q -n attr-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -51,6 +52,9 @@ A decorator to set attributes of target function or class in a DRY way. %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/attr.py +%{python_sitelib}/dry_attr.py +%{python_sitelib}/attr-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/*attr* %changelog