rpms/python-webob/F-9 WebOb-0.9.2-fix-tests.patch, NONE, 1.1 import.log, NONE, 1.1 python-webob.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ricky Zhou (周家杰) (ricky) fedora-extras-commits at redhat.com
Sun Jul 27 20:58:24 UTC 2008


Author: ricky

Update of /cvs/pkgs/rpms/python-webob/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27959/F-9

Modified Files:
	.cvsignore sources 
Added Files:
	WebOb-0.9.2-fix-tests.patch import.log python-webob.spec 
Log Message:
Initial import.


WebOb-0.9.2-fix-tests.patch:

--- NEW FILE WebOb-0.9.2-fix-tests.patch ---
--- WebOb-0.9.2/tests/test_response.txt.old	2008-06-27 02:03:13.000000000 -0400
+++ WebOb-0.9.2/tests/test_response.txt	2008-06-27 02:07:56.000000000 -0400
@@ -62,15 +62,15 @@ Cookie handling is done through methods:
 
     >>> res.set_cookie('test', 'value')
     >>> res.headers['set-cookie']
-    'test=value; Path=/;'
+    'test=value; Path=/'
     >>> res.set_cookie('test2', 'value2', max_age=10000)
     >>> res.headers['set-cookie'] # We only see the last header
-    'test2=value2; expires="... GMT"; Max-Age=10000; Path=/;'
+    'test2=value2; expires="... GMT"; Max-Age=10000; Path=/'
     >>> res.headers.getall('set-cookie')
-    ['test=value; Path=/;', 'test2=value2; expires="... GMT"; Max-Age=10000; Path=/;']
+    ['test=value; Path=/', 'test2=value2; expires="... GMT"; Max-Age=10000; Path=/']
     >>> res.unset_cookie('test')
     >>> res.headers.getall('set-cookie')
-    ['test2=value2; expires="... GMT"; Max-Age=10000; Path=/;']
+    ['test2=value2; expires="... GMT"; Max-Age=10000; Path=/']
 
 Most headers are available in a parsed getter/setter form through
 properties:


--- NEW FILE import.log ---
python-webob-0_9_2-2_fc9:F-9:python-webob-0.9.2-2.fc9.src.rpm:1217192225


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

Name:           python-webob
Summary:        WSGI request and response object
Version:        0.9.2
Release:        2%{?dist}
License:        MIT
Group:          System Environment/Libraries
URL:            http://pythonpaste.org/webob/
Source0:        http://pypi.python.org/packages/source/W/WebOb/WebOb-%{version}.tar.gz
Patch0:         WebOb-0.9.2-fix-tests.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  python-setuptools-devel
BuildRequires:  python-nose
BuildRequires:  python-dtopt

%description
WebOb provides wrappers around the WSGI request environment, and an object to 
help create WSGI responses. The objects map much of the specified behavior of 
HTTP, including header parsing and accessors for other standard parts of the 
environment.

%prep
%setup -q -n WebOb-%{version}
%patch0 -p1
# Disable the tests that require python-webtest
# (which depends on python-webob to begin with)
%{__rm} -f tests/test_request.py
# Disable conftest, which assumes that WebOb is already installed
%{__rm} -f tests/conftest.py


%build
%{__python} setup.py build


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


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


%check
./test


%files
%defattr(-,root,root,-)
%doc docs/*
%{python_sitelib}/webob/
%{python_sitelib}/WebOb*.egg-info/

%changelog
* Thu Jul 17 2008 Ricky Zhou <ricky at fedoraproject.org> 0.9.2-2
- Remove conftest from the tests.

* Fri Jun 27 2008 Ricky Zhou <ricky at fedoraproject.org> 0.9.2-1
- Upstream released new version.
- Rename to python-webob, as mentioned in the Python package naming
  guidelines.
- Clean up spec.
- Add %%check section.

* Sat Mar 15 2008 Tom "spot" Callaway <tcallawa at redhat.com> 0.9-1
- Initial package for Fedora


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-webob/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	25 Jul 2008 16:44:09 -0000	1.1
+++ .cvsignore	27 Jul 2008 20:57:54 -0000	1.2
@@ -0,0 +1 @@
+WebOb-0.9.2.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-webob/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	25 Jul 2008 16:44:09 -0000	1.1
+++ sources	27 Jul 2008 20:57:54 -0000	1.2
@@ -0,0 +1 @@
+5354df7300ff58bcf89f11ff9e040a82  WebOb-0.9.2.tar.gz




More information about the fedora-extras-commits mailing list