15
0
forked from pool/python-attr

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
This commit is contained in:
2025-05-13 16:31:59 +00:00
committed by Git OBS Bridge
parent ebe84dcf77
commit b45e58406d
2 changed files with 14 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 13 15:55:48 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Sat Aug 12 11:46:22 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -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