commit 9be6a553dd6dbb3a930d9eac5a8600ca3abf23da82cc4e722b1751d32a29959d Author: Markéta Machová Date: Tue May 13 16:31:59 2025 +0000 - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attr?expand=0&rev=14 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/attr-0.3.2.tar.gz b/attr-0.3.2.tar.gz new file mode 100644 index 0000000..87d9003 --- /dev/null +++ b/attr-0.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ceebca768181cdcce9827611b1d728e592be5d293911539ea3d0b0bfa1146f4 +size 2649 diff --git a/python-attr.changes b/python-attr.changes new file mode 100644 index 0000000..eb636dc --- /dev/null +++ b/python-attr.changes @@ -0,0 +1,35 @@ +------------------------------------------------------------------- +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 + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Tue Jul 19 11:22:58 UTC 2022 - Dirk Müller + +- update to 0.3.2: + * adds license declaration + +------------------------------------------------------------------- +Tue Dec 4 12:45:47 UTC 2018 - Matej Cepl + +- 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 diff --git a/python-attr.spec b/python-attr.spec new file mode 100644 index 0000000..97d48a4 --- /dev/null +++ b/python-attr.spec @@ -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