15
0
Files
python-WebTest/python-WebTest.spec
Dirk Mueller e55f634329 Accepting request 672512 from home:frispete:python
- Update to 2.0.32 (2018-10-05)
  + remove invalid email from setup.py
- Update to 2.0.31 (2018-10-05)
  + py33 is no longer supported. It may works but has been removed
    from tox config
  + Fixed #205: Use empty string as default value for submit and
    button
  + tests use pytest
  + docs use the standard Pylons template on RTD
- Update to 2.0.30 (2018-06-23)
  + Add Email class for input fields with type "email".
  + Documentation bearer token and JWT authorization
- Update to 2.0.29 (2017-10-21)
  + Bugfix: Preserve submit order for radio inputs.
  + Fixed #186: avoid UnicodeDecodeError in linter with py2 when a
    header contain non ascii chars

OBS-URL: https://build.opensuse.org/request/show/672512
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebTest?expand=0&rev=42
2019-02-08 09:44:27 +00:00

104 lines
3.2 KiB
RPMSpec

#
# spec file for package python-WebTest
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%bcond_without tests
Name: python-WebTest
Version: 2.0.32
Release: 0
Url: http://webtest.pythonpaste.org/
Summary: Helper to test WSGI applications
License: MIT
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/W/WebTest/WebTest-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module PasteDeploy}
BuildRequires: %{python_module WSGIProxy2}
BuildRequires: %{python_module WebOb >= 1.2}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module cssselect}
BuildRequires: %{python_module pyquery}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module waitress >= 0.8.5}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with tests}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
%endif
# Documentation build requirements:
BuildRequires: python3-Sphinx
BuildRequires: python3-pylons-sphinx-themes
Requires: python-WebOb >= 1.2
Requires: python-beautifulsoup4
Requires: python-six
Requires: python-waitress >= 0.8.5
%ifpython2
Obsoletes: %{oldpython}-webtest < %{version}
Provides: %{oldpython}-webtest = %{version}
%endif
BuildArch: noarch
%python_subpackages
%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 -n %{name}-doc
Summary: Helper to test WSGI applications - Documentation
Group: Documentation/HTML
Provides: %{python_module WebTest-doc = %{version}}
%description -n %{name}-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_build
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with tests}
%check
%python_exec setup.py -q test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGELOG.rst README.rst docs/license.rst
%{python_sitelib}/webtest/
%{python_sitelib}/WebTest-%{version}-py*.egg-info
%files -n %{name}-doc
%defattr(-,root,root,-)
%doc build/sphinx/html
%changelog