15
0

Accepting request 484363 from home:TheBlackCat:branches:devel:languages:python

Update to 4.0.11

OBS-URL: https://build.opensuse.org/request/show/484363
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-decorator?expand=0&rev=28
This commit is contained in:
Jan Matejek
2017-04-05 12:04:52 +00:00
committed by Git OBS Bridge
parent 7b77330a22
commit 531a132a57
4 changed files with 63 additions and 21 deletions

View File

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

3
decorator-4.0.11.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,47 @@
-------------------------------------------------------------------
Sat Apr 1 21:20:43 UTC 2017 - toddrme2178@gmail.com
- Update to 4.0.11
* Small improvements to the documentation and tested with Python 3.6
- Update to 4.0.10
* Improved the documentation thanks to Tony Goodchild (zearin) who also
provided a much better CSS than the one I was using.
- Update to 4.0.9
* Same as 4.0.7 and 4.0.8, re-uploaded due to issues on PyPI.
- Update to 4.0.7
* Switched to a new changelog format (the one in http://keepachangelog.com/)
since it was contributed by Alexander Artemenko. Re-added a newline to support
old version of Python, as requested by [azjps](https://github.com/azjps).
- Update to 4.0.6
* Removed a file x.py accidentally entered in the tarball.
- Update to 4.0.5
* Documented a quirk signaled by David Goldstein when writing decorators
for functions with keyword arguments. Avoided copying the globals,
as signaled by Benjamin Peterson.
- Update to 4.0.4
* Included a patch from Zev Benjamin: now decorated functions play well
with cProfile.
- Update to 4.0.3
* Added a warning about the memoize example, as requested by Robert
Buchholz.
- Update to 4.0.2
* docs/README.rst was not included in MANIFEST.in by accident,
thus breaking the source installation.
- Update to 4.0.1
* Added docs directory and upload_docs command. Fixed bug with
`__qualname__`, reported by Lucian Petrut.
- Update to 4.0.0
* Removed the need for 2to3 by dropping the support for Python 2.5.
* Added a MANIFEST.in file and produced a proper wheel. Improved
the integration with setuptools so that `python setup.py test` works.
* Reworked the documentation and introduced `decorator.decorated`.
* Removed any dependence from `inspect.getargspec`, which is deprecated
in Python 3.5, as signaled by Ralf Gommers.
* Fixed `contextmanager` to work with Python 3.5.
* Copied the `__qualname__` attribute, as requested by Frazer McLean.
* Added a `dispatch_on` facility to implement generic functions.
- Implement single-spec version.
-------------------------------------------------------------------
Sat May 2 18:01:29 UTC 2015 - benoit.monin@gmx.fr

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-decorator
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@@ -16,8 +16,9 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-decorator
Version: 3.4.2
Version: 4.0.11
Release: 0
Url: http://pypi.python.org/pypi/decorator
Summary: Better living through Python with decorators
@@ -25,15 +26,12 @@ License: BSD-2-Clause
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/d/decorator/decorator-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildArch: noarch
%endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%python_subpackages
%description
As of now, writing custom decorators correctly requires some experience and it
@@ -49,19 +47,19 @@ useful decorators, such as memoize, tracing, redirecting_stdout, locked, etc.
%prep
%setup -q -n decorator-%{version}
sed -i 's/\r//' README.rst # Fix EOL encoding
sed -i 's/\r//' docs/README.rst # Fix EOL encoding
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%{python_sitelib}/decorator.py
%{python_sitelib}/decorator.pyc
%{python_sitelib}/decorator-%{version}-py%{py_ver}.egg-info
%doc CHANGES.md LICENSE.txt documentation.pdf docs/README.rst
%{python_sitelib}/decorator.py*
%pycache_only %{python_sitelib}/__pycache__/decorator.*.py*
%{python_sitelib}/decorator-%{version}-py*.egg-info
%changelog