2011-09-01 09:59:03 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-decorator
|
|
|
|
|
#
|
2025-05-20 09:59:33 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2011-09-01 09:59:03 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
2011-11-25 12:40:51 +00:00
|
|
|
|
2018-12-04 13:22:53 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-01 09:59:03 +00:00
|
|
|
#
|
|
|
|
|
|
2011-11-25 12:40:51 +00:00
|
|
|
|
2018-01-17 07:52:34 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
2023-04-21 14:44:48 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-09-01 09:59:03 +00:00
|
|
|
Name: python-decorator
|
2025-05-20 09:59:33 +00:00
|
|
|
Version: 5.2.1
|
2011-09-01 09:59:03 +00:00
|
|
|
Release: 0
|
2020-02-12 09:46:40 +00:00
|
|
|
Summary: Decorators for Humans
|
2011-11-30 15:04:14 +00:00
|
|
|
License: BSD-2-Clause
|
2011-09-01 09:59:03 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-03-19 15:19:51 +00:00
|
|
|
URL: https://github.com/micheles/decorator
|
2017-04-05 15:13:30 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/d/decorator/decorator-%{version}.tar.gz
|
2025-05-20 09:59:33 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-04-05 12:04:52 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-03-19 15:19:51 +00:00
|
|
|
BuildRequires: dos2unix
|
2019-02-13 17:55:13 +00:00
|
|
|
BuildRequires: fdupes
|
2017-04-05 15:13:30 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2011-09-01 09:59:03 +00:00
|
|
|
BuildArch: noarch
|
2017-04-05 12:04:52 +00:00
|
|
|
%python_subpackages
|
2008-12-03 01:04:41 +00:00
|
|
|
|
|
|
|
|
%description
|
2018-04-17 11:20:19 +00:00
|
|
|
Typical implementations of Python decorators involve nested
|
|
|
|
|
functions, and do not preserve the signature of decorated functions,
|
|
|
|
|
thus can be confusing to both developers and documentation tools.
|
2008-12-03 01:04:41 +00:00
|
|
|
|
2018-04-17 11:20:19 +00:00
|
|
|
This module changes the usage of decorators for the average
|
|
|
|
|
programmer so as to make decorators such as memoize, tracing,
|
|
|
|
|
redirecting_stdout, locked, etc. more accessible.
|
2008-12-03 01:04:41 +00:00
|
|
|
|
|
|
|
|
%prep
|
2011-09-01 09:59:03 +00:00
|
|
|
%setup -q -n decorator-%{version}
|
2021-08-05 15:31:45 +00:00
|
|
|
%autopatch -p1
|
2008-12-03 01:04:41 +00:00
|
|
|
|
|
|
|
|
%build
|
2025-05-20 09:59:33 +00:00
|
|
|
%pyproject_wheel
|
2008-12-03 01:04:41 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-05-20 09:59:33 +00:00
|
|
|
%pyproject_install
|
2019-02-13 17:55:13 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2008-12-03 01:04:41 +00:00
|
|
|
|
2019-03-19 15:19:51 +00:00
|
|
|
%check
|
2025-05-20 09:59:33 +00:00
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests/test.py -v
|
2019-03-19 15:19:51 +00:00
|
|
|
|
2017-04-05 12:04:52 +00:00
|
|
|
%files %{python_files}
|
2018-04-17 06:35:14 +00:00
|
|
|
%license LICENSE.txt
|
2020-02-12 09:46:40 +00:00
|
|
|
%doc CHANGES.md README.rst
|
2017-04-05 12:04:52 +00:00
|
|
|
%{python_sitelib}/decorator.py*
|
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/decorator.*.py*
|
2025-05-20 09:59:33 +00:00
|
|
|
%{python_sitelib}/decorator-%{version}.dist-info
|
2008-12-03 01:04:41 +00:00
|
|
|
|
|
|
|
|
%changelog
|