forked from pool/python-WebTest
- Update to version 1.4.2:
+ fix tests error due to CLRF in a tarball - Changes from version 1.4.1: + add travis-ci + migrate repository to https://github.com/Pylons/webtest + Fix a typo in apps.py: selectedIndicies + Preserve field order during parsing (support for deform and such) + Allow equals sign in the cookie by spliting name-value-string pairs on the first ‘=’ sign as per http://tools.ietf.org/html/rfc6265#section-5.2 + fix an error when you use AssertionError(response) with unicode chars in response - Build HTML documentaton - Run testsuite - Split of doc package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebTest?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
7600c0eab5
commit
c0753684bc
@@ -17,21 +17,29 @@
|
||||
|
||||
|
||||
Name: python-WebTest
|
||||
Version: 1.4.0
|
||||
Version: 1.4.2
|
||||
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
|
||||
Source: http://pypi.python.org/packages/source/W/WebTest/WebTest-%{version}.zip
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-base
|
||||
BuildRequires: python-distribute
|
||||
BuildRequires: unzip
|
||||
# Documentation build requirements:
|
||||
BuildRequires: python-Sphinx
|
||||
# Test build requirements:
|
||||
BuildRequires: python-WebOb
|
||||
BuildRequires: python-coverage
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-unittest2
|
||||
Requires: python-WebOb
|
||||
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()")}
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
@@ -43,19 +51,34 @@ requests to that application, without starting up an HTTP server.
|
||||
This provides convenient full-stack testing of applications written
|
||||
with any WSGI-compatible framework.
|
||||
|
||||
%package doc
|
||||
Summary: Helper to test WSGI applications - Documentation
|
||||
Group: Documentation/HTML
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n WebTest-%{version}
|
||||
mv docs/_build docs/html
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%check
|
||||
python setup.py test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc docs/html
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc build/sphinx/html
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user