15
0
forked from pool/python-attr

- Convert to pip-based build

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
commit 9be6a553dd
5 changed files with 122 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
attr-0.3.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1ceebca768181cdcce9827611b1d728e592be5d293911539ea3d0b0bfa1146f4
size 2649

35
python-attr.changes Normal file
View File

@@ -0,0 +1,35 @@
-------------------------------------------------------------------
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>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Tue Jul 19 11:22:58 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 0.3.2:
* adds license declaration
-------------------------------------------------------------------
Tue Dec 4 12:45:47 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Sun Jul 29 13:12:14 UTC 2018 - jengelh@inai.de
- Use noun phrase in summary.
-------------------------------------------------------------------
Thu May 24 17:27:19 UTC 2018 - toddrme2178@gmail.com
- Spec file cleanups
-------------------------------------------------------------------
Thu Nov 16 17:44:17 UTC 2017 - toddrme2178@gmail.com
- Initial version

60
python-attr.spec Normal file
View File

@@ -0,0 +1,60 @@
#
# spec file for package python-attr
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-attr
Version: 0.3.2
Release: 0
Summary: Python module for setting attributes of target functions or classes
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
A decorator to set attributes of target function or class in a DRY way.
%prep
%setup -q -n attr-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec dry_attr.py
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/attr.py
%{python_sitelib}/dry_attr.py
%{python_sitelib}/attr-%{version}*-info
%pycache_only %{python_sitelib}/__pycache__/*attr*
%changelog