rpms/python-decorator3/EL-5 decorator-3.0.1-doctest.patch, NONE, 1.1 import.log, NONE, 1.1 python-decorator3.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Toshio くらとみ
toshio at fedoraproject.org
Fri Oct 9 21:24:30 UTC 2009
- Previous message (by thread): rpms/apanov-heuristica-fonts/devel apanov-heuristica-fonts.spec, 1.13, 1.14 import.log, 1.10, 1.11
- Next message (by thread): rpms/eclipse-cdt/F-12 eclipse-cdt-discoverytab.patch, NONE, 1.1 .cvsignore, 1.46, 1.47 eclipse-cdt.spec, 1.133, 1.134 sources, 1.55, 1.56
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: toshio
Update of /cvs/pkgs/rpms/python-decorator3/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21815/EL-5
Modified Files:
.cvsignore sources
Added Files:
decorator-3.0.1-doctest.patch import.log
python-decorator3.spec
Log Message:
Initial import
decorator-3.0.1-doctest.patch:
documentation.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
--- NEW FILE decorator-3.0.1-doctest.patch ---
Index: decorator-3.1.2/documentation.py
===================================================================
--- decorator-3.1.2.orig/documentation.py
+++ decorator-3.1.2/documentation.py
@@ -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
--- NEW FILE import.log ---
python-decorator3-3_1_2-2_fc11_1:EL-5:python-decorator3-3.1.2-2.fc11.1.src.rpm:1255123216
--- NEW FILE python-decorator3.spec ---
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-decorator3
Version: 3.1.2
Release: 2%{?dist}.1
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
Requires: python-setuptools
BuildRequires: python-devel
BuildRequires: python-setuptools-devel
BuildRequires: python-nose
%description
The aim of the decorator module is 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. The core of this module is a decorator factory called decorator.
This package contains version 3.x of the decorator module.
%prep
%setup -q -n decorator-%{version}
%patch0 -p1 -b .doctest
chmod a-x *.txt *.py
%{__sed} -i 's/\r//' README.txt
%build
%{__python} setup.py bdist_egg
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{python_sitelib}
easy_install -m --prefix %{buildroot}%{_usr} dist/*.egg
%clean
rm -rf %{buildroot}
%check
# Until we get the python-multiprocessing backport packaged
%if 0%{?fedora} >= 11 || 0%{?rhel} > 5
nosetests --with-doctest
%endif
%files
%defattr(0644,root,root,0755)
%doc *.txt
%{python_sitelib}/decorator*.egg/
%changelog
* Tue Oct 6 2009 Toshio Kuratomi <toshio at fedoraproject.org> - 3.1.2-2.1
- Initial python-decorator3 package. Forwards compat for EL-5 (where
python-decorator is version 2.3.x)
* Tue Oct 6 2009 Toshio Kuratomi <toshio at fedoraproject.org> - 3.1.2-2
- Really include the new source tarball
* Tue Oct 6 2009 Toshio Kuratomi <toshio at fedoraproject.org> - 3.1.2-1
- Update to upstream release 3.1.2
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sun May 31 2009 Luke Macken <lmacken at redhat.com> - 3.0.1-2
- Only run the test suite on Fedora 11, which has Py2.6 and the multiprocessing
module. We can disable this once the compat module is packaged for F10 and
below.
* Thu May 21 2009 Toshio Kuratomi <toshio at fedoraproject.org> - 3.0.1-1
- Update to upstream release 3.0.1.
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.3.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Jan 21 2009 Toshio Kuratomi <toshio at fedoraproject.org> - 2.3.2-1
- Update to 2.3.2
- Enable tests via nose
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 2.2.0-2
- Rebuild for Python 2.6
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-decorator3/EL-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 8 Oct 2009 05:49:31 -0000 1.1
+++ .cvsignore 9 Oct 2009 21:24:29 -0000 1.2
@@ -0,0 +1 @@
+decorator-3.1.2.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-decorator3/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 8 Oct 2009 05:49:31 -0000 1.1
+++ sources 9 Oct 2009 21:24:29 -0000 1.2
@@ -0,0 +1 @@
+9ebbe8d0f0c42495561b8e79fd0d8e56 decorator-3.1.2.tar.gz
- Previous message (by thread): rpms/apanov-heuristica-fonts/devel apanov-heuristica-fonts.spec, 1.13, 1.14 import.log, 1.10, 1.11
- Next message (by thread): rpms/eclipse-cdt/F-12 eclipse-cdt-discoverytab.patch, NONE, 1.1 .cvsignore, 1.46, 1.47 eclipse-cdt.spec, 1.133, 1.134 sources, 1.55, 1.56
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list