15
0
Files
python-WebTest/python-WebTest.spec
Alberto Planas Dominguez 59d7a240c4 Accepting request 424244 from home:tbechtold:branches:devel:languages:python
- update 2.0.23:
  - Create universal wheels.
  -  Fix #160: Do not guess encoding if response's charset is set.
  - PR #154 Allow Bearer auth
  - PR #147,#148 Take care of REFERER when using form.submit(), .click() and
  .clickbutton()
  - PR #145 Allow to override content-type when using json methods
  - nothing new release. just try to make wheel available on pypi
  - fixed #131 prevent passing HTML parameters that conflict with Field kwargs
  - fixed #135 Document that WSGIProxy2 is required for "using webtest with a real url"
  - fixed #136 reset values of select multiple
  - drop py32 support (still work but test dependencies fail)
- Use tar.gz instead of zip archive
- Use pypi.io as Source url

OBS-URL: https://build.opensuse.org/request/show/424244
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebTest?expand=0&rev=32
2016-09-01 12:32:17 +00:00

102 lines
3.1 KiB
RPMSpec

#
# spec file for package python-WebTest
#
# Copyright (c) 2016 SUSE LINUX 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: 2.0.23
Release: 0
Url: http://webtest.pythonpaste.org/
Summary: Helper to test WSGI applications
License: MIT
Group: Development/Languages/Python
Source: https://pypi.io/packages/source/W/WebTest/WebTest-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-PasteDeploy
BuildRequires: python-WSGIProxy2
BuildRequires: python-base
BuildRequires: python-beautifulsoup4
BuildRequires: python-cssselect
BuildRequires: python-mock
BuildRequires: python-pyquery
BuildRequires: python-setuptools
BuildRequires: python-six
BuildRequires: python-unittest2
BuildRequires: python-waitress
# Documentation build requirements:
BuildRequires: python-Sphinx
# Test build requirements:
BuildRequires: python-WebOb
BuildRequires: python-coverage
BuildRequires: python-nose
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildRequires: python-unittest2
%endif
Requires: python-WebOb >= 1.2
Requires: python-beautifulsoup4
Requires: python-six
Requires: python-waitress >= 0.8.5
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.
%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}
# remove version limitation for nose
sed -i 's/nose<1\.3\.0/nose/' setup.py
%build
python setup.py build
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%if 0%{?suse_version} > 1110
%check
python setup.py -q test
%endif
%files
%defattr(-,root,root,-)
%doc README.rst docs/license.rst
%{python_sitelib}/*
%files doc
%defattr(-,root,root,-)
%doc build/sphinx/html
%changelog