rpms/python-webpy/EL-5 import.log, NONE, 1.1 python-webpy.spec, NONE, 1.1 web.utils-tests.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

rayvd rayvd at fedoraproject.org
Wed Jul 8 16:54:13 UTC 2009


Author: rayvd

Update of /cvs/pkgs/rpms/python-webpy/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22681/EL-5

Modified Files:
	.cvsignore sources 
Added Files:
	import.log python-webpy.spec web.utils-tests.patch 
Log Message:
Initial import


--- NEW FILE import.log ---
python-webpy-0_32-3:EL-5:python-webpy-0.32-3.src.rpm:1247072014


--- NEW FILE python-webpy.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define pkgname webpy
%define srcname web.py

Name:           python-%{pkgname}
Version:        0.32
Release:        3%{?dist}
Summary:        A simple web framework for Python
Group:          Development/Libraries

# The entire source code is Public Domain save for the following exceptions:
#   web/wsgiserver (CherryPy/BSD)
#     See LICENSE.wsgiserver.txt
#     See http://fedoraproject.org/wiki/Licensing:BSD#New_BSD_.28no_advertising.2C_3_clause.29
#   web/debugerror.py (Modified BSD)
#     This is from django
#     See http://code.djangoproject.com/browser/django/trunk/LICENSE
#   web/httpserver.py (Modified BSD)
#     This is from WSGIUtils/lib/wsgiutils/wsgiServer.py
#     See http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5
License:        Public Domain and BSD

URL:            http://webpy.org/
Source0:        http://webpy.org/static/%{srcname}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  python-devel
BuildArch:      noarch
# https://bugs.launchpad.net/webpy/+bug/396789
Patch0:         web.utils-tests.patch

%description
web.py is a web framework for python that is as simple as it is
powerful. web.py is in the public domain; you can use it for whatever
purpose with absolutely no restrictions. 

%prep
%setup -q -n %{pkgname}
%patch0 -p1 -b .tests
# Remove shebang from non scripts.
%{__sed} -i '1d' web/utils.py
%{__sed} -i '1d' web/application.py
%{__sed} -i '1d' web/__init__.py
%{__cp} web/wsgiserver/LICENSE.txt LICENSE.wsgiserver.txt

%build
%{__python} setup.py build

%check
%{__python} test/application.py
%{__python} test/doctests.py

%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE.txt LICENSE.wsgiserver.txt ChangeLog.txt
%{python_sitelib}/*

%changelog
* Tue Jul 07 2009 Ray Van Dolson <rayvd at fedoraproject.org> - 0.32-3
- Strip shebang from non-scripts
- Update license information
- Enable unit tests

* Thu Jul 02 2009 Ray Van Dolson <rayvd at fedoraproject.org> - 0.32-2
- Added python-devel BuildRequires
- Updated with multiple licensing annotations

* Wed Jul 01 2009 Ray Van Dolson <rayvd at fedoraproject.org> - 0.32-1
- Rebase to 0.32

* Mon Jun 01 2009 Ray Van Dolson <rayvd at fedoraproject.org> - 0.31-1
- Initial package

web.utils-tests.patch:

--- NEW FILE web.utils-tests.patch ---
Binary files webpy.orig/test/webtest.pyc and webpy/test/webtest.pyc differ
diff -uNr webpy.orig/web/utils.py webpy/web/utils.py
--- webpy.orig/web/utils.py	2009-06-04 07:24:34.000000000 -0700
+++ webpy/web/utils.py	2009-07-07 14:50:06.000000000 -0700
@@ -834,13 +834,21 @@
 
         import cStringIO
         out = cStringIO.StringIO()
+        oldout = sys.stdout
         stats = hotshot.stats.load(temp.name)
-        stats.stream = out
+        if sys.version_info >= (2, 5):
+          stats.stream = out
+        else:
+          sys.stdout = out
+
         stats.strip_dirs()
         stats.sort_stats('time', 'calls')
         stats.print_stats(40)
         stats.print_callers()
 
+        if sys.version_info < (2, 5):
+          sys.stdout = oldout
+
         x =  '\n\ntook '+ str(stime) + ' seconds\n'
         x += out.getvalue()


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-webpy/EL-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	8 Jul 2009 16:33:44 -0000	1.1
+++ .cvsignore	8 Jul 2009 16:53:43 -0000	1.2
@@ -0,0 +1 @@
+web.py-0.32.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-webpy/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	8 Jul 2009 16:33:44 -0000	1.1
+++ sources	8 Jul 2009 16:53:43 -0000	1.2
@@ -0,0 +1 @@
+ea70fcf5fe5a7365454cf4a47e093221  web.py-0.32.tar.gz




More information about the fedora-extras-commits mailing list