15
0
Files
python-decorator/python-decorator.spec
Todd R 787b8e8efe Accepting request 674686 from home:TheBlackCat:branches:devel:languages:python
- update to version 4.3.2
   * now the decorator module can decorate generator functions by
     preserving their being generator functions
   * Set `python_requires='>=2.6, !=3.0.*, !=3.1.*'` in setup.py
- update to version 4.3.1
  * Added a section "For the impatient" to the README, addressing
    an issue raised by Amir Malekpour.
  * Added support for Python 3.7.
  * Now  the path to the decorator module appears in the
    tracebacks, as suggested by a user at EuroPython 2018.

OBS-URL: https://build.opensuse.org/request/show/674686
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-decorator?expand=0&rev=40
2019-02-13 17:55:13 +00:00

64 lines
2.1 KiB
RPMSpec

#
# spec file for package python-decorator
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-decorator
Version: 4.3.2
Release: 0
Summary: Non-nested signature-retaining Python decorators
License: BSD-2-Clause
Group: Development/Languages/Python
URL: http://pypi.python.org/pypi/decorator
Source: https://files.pythonhosted.org/packages/source/d/decorator/decorator-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
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.
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.
%prep
%setup -q -n decorator-%{version}
sed -i 's/\r//' README.rst # Fix EOL encoding
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE.txt
%doc CHANGES.md README.rst
%{python_sitelib}/decorator.py*
%pycache_only %{python_sitelib}/__pycache__/decorator.*.py*
%{python_sitelib}/decorator-%{version}-py*.egg-info
%changelog