forked from pool/python-decorator
Accepting request 597436 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/597436 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-decorator?expand=0&rev=17
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7d46dd9f3ea1cf5f06ee0e4e1277ae618cf48dfb10ada7c8427cd46c42702a0e
|
||||
size 33376
|
||||
3
decorator-4.3.0.tar.gz
Normal file
3
decorator-4.3.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c39efa13fbdeb4506c476c9b3babf6a718da943dab7811c206005a4a956c080c
|
||||
size 33758
|
||||
@@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 17 11:05:41 UTC 2018 - jengelh@inai.de
|
||||
|
||||
- Ensure neutrality of description.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 17 01:52:09 UTC 2018 - arun@gmx.de
|
||||
|
||||
- update to version 4.3.0:
|
||||
* Extended the decorator family facility to work with positional
|
||||
arguments and updated the documentation. Removed
|
||||
decorator.getargspec and provided decorator.getfullargspec
|
||||
instead. This is convenient for users of Python 2.6/2.7, the
|
||||
others can just use inspect.getfullargspec.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 17 04:02:48 UTC 2018 - arun@gmx.de
|
||||
|
||||
|
||||
@@ -18,35 +18,29 @@
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-decorator
|
||||
Version: 4.2.1
|
||||
Version: 4.3.0
|
||||
Release: 0
|
||||
Url: http://pypi.python.org/pypi/decorator
|
||||
Summary: Better living through Python with decorators
|
||||
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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
As of now, writing custom decorators correctly requires some experience and it
|
||||
is not as easy as it could be. For instance, typical implementations of
|
||||
decorators involve nested functions, and we all know that flat is better than
|
||||
nested. Moreover, typical implementations of decorators do not preserve the
|
||||
signature of decorated functions, thus confusing both documentation tools and
|
||||
developers.
|
||||
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.
|
||||
|
||||
The aim of the decorator module it to simplify the usage of decorators for the
|
||||
average programmer, and to popularize decorators usage giving examples of
|
||||
useful decorators, such as memoize, tracing, redirecting_stdout, locked, etc.
|
||||
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}
|
||||
@@ -59,8 +53,8 @@ sed -i 's/\r//' docs/README.rst # Fix EOL encoding
|
||||
%python_install
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.md LICENSE.txt docs/README.rst
|
||||
%license LICENSE.txt
|
||||
%doc CHANGES.md docs/README.rst
|
||||
%{python_sitelib}/decorator.py*
|
||||
%pycache_only %{python_sitelib}/__pycache__/decorator.*.py*
|
||||
%{python_sitelib}/decorator-%{version}-py*.egg-info
|
||||
|
||||
Reference in New Issue
Block a user