15
0
Files
python-WebTest/python-WebTest.spec
Sascha Peilicke 17efad0d06 - Simplified macro usage
- Run testsuite
- Update to version 1.3.3:
  * added post_json, put_json, delete_json
  * fix #25 params dictionary of webtest.AppTest.post() does not support unicode values
- Changes from version 1.3.2:
  * improve showbrowser.
  * print_stderr fail with unicode string on python2
- Changes from version 1.3.1:
  * Added .option()
  * Full python3 compat

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebTest?expand=0&rev=4
2012-01-31 13:50:23 +00:00

62 lines
2.0 KiB
RPMSpec

#
# spec file for package python-WebTest
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-WebTest
Version: 1.3.3
Release: 0
Url: http://webtest.pythonpaste.org/
Summary: Helper to test WSGI applications
License: MIT
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/W/WebTest/WebTest-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-distribute
Requires: python-WebOb
Requires: python-dtopt
Requires: python-nose
Provides: python-webtest = %{version}
Obsoletes: python-webtest < %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
This wraps any WSGI application and makes it easy to send test
requests to that application, without starting up an HTTP server.
This provides convenient full-stack testing of applications written
with any WSGI-compatible framework.
%prep
%setup -q -n WebTest-%{version}
mv docs/_build docs/html
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc docs/html
%{python_sitelib}/*
%changelog