4631f27
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
f920ac3
f920ac3
Name:           python-webtest
59be11a
Version:        1.2.3
59be11a
Release:        1%{?dist}
f920ac3
Summary:        Helper to test WSGI applications
f920ac3
f920ac3
Group:          Development/Languages
f920ac3
License:        MIT
f920ac3
URL:            http://pythonpaste.org/webtest/
5bbb088
Source0:        http://pypi.python.org/packages/source/W/WebTest/WebTest-%{version}.tar.gz
f920ac3
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
f920ac3
f920ac3
BuildArch:      noarch
59be11a
BuildRequires:  python-setuptools
f920ac3
BuildRequires:  python-nose
f920ac3
BuildRequires:  python-webob
Luke Macken c9b2829
BuildRequires:  python-dtopt
f920ac3
Requires:       python-webob
f920ac3
f920ac3
%description
f920ac3
WebTest wraps any WSGI application and makes it easy to send test
f920ac3
requests to that application, without starting up an HTTP server.
f920ac3
f920ac3
This provides convenient full-stack testing of applications written
f920ac3
with any WSGI-compatible framework.
f920ac3
f920ac3
%prep
f920ac3
%setup -q -n WebTest-%{version}
f920ac3
f920ac3
f920ac3
%build
f920ac3
%{__python} setup.py build
f920ac3
f920ac3
f920ac3
%install
f920ac3
%{__rm} -rf %{buildroot}
f920ac3
%{__python} setup.py install --skip-build --root %{buildroot}
f920ac3
f920ac3
 
f920ac3
%clean
f920ac3
%{__rm} -rf %{buildroot}
f920ac3
f920ac3
f920ac3
%check
59be11a
PYTHONPATH=$(pwd) %{__python} setup.py test
f920ac3
f920ac3
f920ac3
%files
f920ac3
%defattr(-,root,root,-)
Luke Macken c9b2829
%doc docs/*
f920ac3
%{python_sitelib}/webtest
f920ac3
%{python_sitelib}/*.egg-info
f920ac3
f920ac3
f920ac3
%changelog
59be11a
* Fri Jul 15 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.2.3-1
59be11a
- Update to 1.2.3
59be11a
c37a8be
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-2
c37a8be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c37a8be
Luke Macken c9b2829
* Tue Oct 05 2010 Luke Macken <lmacken@redhat.com> - 1.2.2-1
Luke Macken c9b2829
- Update to 1.2.2
Luke Macken c9b2829
- Add python-dtopt to the BuildRequires
Luke Macken c9b2829
- Include the docs again
Luke Macken c9b2829
ee28b99
* Sun Jul 25 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot[com> - 1.2.1-3
ee28b99
- Disable tests and docs for now. They are not included in this tarball
ee28b99
3094627
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.1-2
3094627
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
3094627
6ec6ce9
* Wed Jun 09 2010 Luke Macken <lmacken@redhat.com> - 1.2.1-1
6ec6ce9
- Update to 1.2.1
6ec6ce9
f9002d0
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
f9002d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f9002d0
ca87b71
* Sun May 31 2009 Luke Macken <lmacken@redhat.com> - 1.2-1
ca87b71
- Update to 1.2
ca87b71
4631f27
* Tue Apr 14 2009 Ricky Zhou <ricky@fedoraproject.org> - 1.1-3
4631f27
- Change define to global.
4631f27
- Remove old >= 8 conditional.
4631f27
- Remove unnecessary BuildRequires on python-devel.
4631f27
e80f194
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
e80f194
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e80f194
5bbb088
* Sat Dec 06 2008 Ricky Zhou <ricky@fedoraproject.org> - 1.1-1
5bbb088
- Upstream released new version.
5bbb088
24080dd
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-4
24080dd
- Rebuild for Python 2.6
24080dd
f920ac3
* Thu Jul 17 2008 Ricky Zhou <ricky@fedoraproject.org> - 1.0-3
f920ac3
- Update Requires for python-webob rename.
f920ac3
- Add BuildRequires on python-webob for tests.
f920ac3
f920ac3
* Sat Jul 07 2008 Ricky Zhou <ricky@fedoraproject.org> - 1.0-2
f920ac3
- Add %%check section.
f920ac3
f920ac3
* Sat Jun 14 2008 Ricky Zhou <ricky@fedoraproject.org> - 1.0-1
f920ac3
- Initial RPM Package.