From 5b1ba1dbaa19969eb7b6cd65319fc27fb584f3b4 Mon Sep 17 00:00:00 2001 From: Toshio くらとみ Date: May 22 2009 05:24:36 +0000 Subject: - Update to upstream release 3.0.1. --- diff --git a/.cvsignore b/.cvsignore index af7c68c..f668aa9 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -decorator-2.3.2.tar.gz +decorator-3.0.1.tar.gz diff --git a/decorator-3.0.1-doctest.patch b/decorator-3.0.1-doctest.patch new file mode 100644 index 0000000..4eda3b8 --- /dev/null +++ b/decorator-3.0.1-doctest.patch @@ -0,0 +1,75 @@ +diff -up decorator-3.0.1/documentation.py.doctest decorator-3.0.1/documentation.py +--- decorator-3.0.1/documentation.py.doctest 2009-05-21 21:13:24.171482875 -0700 ++++ decorator-3.0.1/documentation.py 2009-05-21 21:59:01.242233871 -0700 +@@ -120,7 +120,7 @@ keyword arguments: + + >>> from inspect import getargspec + >>> print getargspec(f1) +- ([], 'args', 'kw', None) ++ ArgSpec(args=[], varargs='args', keywords='kw', defaults=None) + + This means that introspection tools such as pydoc will give + wrong informations about the signature of ``f1``. This is pretty bad: +@@ -186,7 +186,7 @@ The signature of ``heavy_computation`` i + .. code-block:: python + + >>> print getargspec(heavy_computation) +- ([], None, None, None) ++ ArgSpec(args=[], varargs=None, keywords=None, defaults=None) + + A ``trace`` decorator + ------------------------------------------------------ +@@ -219,7 +219,7 @@ and it that it has the correct signature + .. code-block:: python + + >>> print getargspec(f1) +- (['x'], None, None, None) ++ ArgSpec(args=['x'], varargs=None, keywords=None, defaults=None) + + The same decorator works with functions of any signature: + +@@ -233,7 +233,7 @@ The same decorator works with functions + calling f with args (0, 3, 2), {} + + >>> print getargspec(f) +- (['x', 'y', 'z'], 'args', 'kw', (1, 2)) ++ ArgSpec(args=['x', 'y', 'z'], varargs='args', keywords='kw', defaults=(1, 2)) + + That includes even functions with exotic signatures like the following: + +@@ -243,7 +243,7 @@ That includes even functions with exotic + ... def exotic_signature((x, y)=(1,2)): return x+y + + >>> print getargspec(exotic_signature) +- ([['x', 'y']], None, None, ((1, 2),)) ++ ArgSpec(args=[['x', 'y']], varargs=None, keywords=None, defaults=((1, 2),)) + >>> exotic_signature() + calling exotic_signature with args ((1, 2),), {} + 3 +@@ -281,7 +281,7 @@ can easily check that the signature has + .. code-block:: python + + >>> print getargspec(trace) +- (['f'], None, None, None) ++ ArgSpec(args=['f'], varargs=None, keywords=None, defaults=None) + + Therefore now ``trace`` can be used as a decorator and + the following will work: +@@ -387,13 +387,13 @@ be locked. Here is a minimalistic exampl + Each call to ``write`` will create a new writer thread, but there will + be no synchronization problems since ``write`` is locked. + +->>> write("data1") +- ++>>> write("data1") # doctest: +ELLIPSIS ++ + + >>> time.sleep(.1) # wait a bit, so we are sure data2 is written after data1 + +->>> write("data2") +- ++>>> write("data2") # doctest: +ELLIPSIS ++ + + >>> time.sleep(2) # wait for the writers to complete + diff --git a/python-decorator.spec b/python-decorator.spec index b165886..331ad12 100644 --- a/python-decorator.spec +++ b/python-decorator.spec @@ -2,14 +2,15 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-decorator -Version: 2.3.2 -Release: 2%{?dist} +Version: 3.0.1 +Release: 1%{?dist} Summary: Module to simplify usage of decorators Group: Development/Languages License: BSD URL: http://www.phyast.pitt.edu/~micheles/python/documentation.html Source0: http://pypi.python.org/packages/source/d/decorator/decorator-%{version}.tar.gz +Patch0: decorator-3.0.1-doctest.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -25,7 +26,8 @@ etc. The core of this module is a decorator factory called decorator. %prep %setup -q -n decorator-%{version} -chmod a-x *.txt *.py Makefile +%patch0 -p1 -b .doctest +chmod a-x *.txt *.py %{__sed} -i 's/\r//' README.txt %build @@ -47,6 +49,9 @@ nosetests --with-doctest %{python_sitelib}/* %changelog +* Thu May 21 2009 Toshio Kuratomi - 3.0.1-1 +- Update to upstream release 3.0.1. + * Thu Feb 26 2009 Fedora Release Engineering - 2.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild diff --git a/sources b/sources index 8925113..42a992a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c52e22e9d8f5bc0c5d70e990dbe761e0 decorator-2.3.2.tar.gz +c4130a467be7f71154976c84af4a04c6 decorator-3.0.1.tar.gz