15
0
Files
python-WebTest/python-WebTest.spec

89 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-WebTest
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-WebTest
Version: 3.0.0
Release: 0
Summary: Helper to test WSGI applications
License: MIT
Group: Development/Languages/Python
URL: https://docs.pylonsproject.org/projects/webtest/
Source: https://files.pythonhosted.org/packages/source/W/WebTest/WebTest-%{version}.tar.gz
Patch0: sphinx-7-fix.patch
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 pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module waitress >= 0.8.5}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# Documentation build requirements:
BuildRequires: python3-Sphinx
BuildRequires: python3-pylons-sphinx-themes
Accepting request 173784 from home:dirkmueller:branches:devel:languages:python - Update to 2.0.5: * Correctly handle <option> elements with no value attribute [Marius Gedminas] * Ignore socket.error following StopableWSGIServer.shutdown. [Laurence Rowe] * <button> without type='submit' attribute is treated as Submit control [Andrey Lebedev]. * Support for redirects having relative "Location" header [Andrey Lebedev] * Treat strings in the WSGI environment as native strings, compliant with PEP-3333. [wosc] * Allow TestResponse.click() to match HTML content again. [ender672] * Support secure cookies [Andrey Lebedev] * Added Pasword field [diarmuidbourke] * re-allow to use unknow field type. Like ``type="email"``. [gawel] * Don't let BeautifulSoup use lxml. Fix GH-51 [kmike] * added :meth:`webtest.response.TestResponse.maybe_follow` method [kmike] * drop zc.buildout usage for development, now using only virtualenv [Domen Kožar] * Backward incompatibility : Removed the ``anchor`` argument of :meth:`webtest.response.TestResponse.click` and the ``button`` argument of :meth:`webtest.response.TestResponse.clickbutton`. It is for the greater good. * Rewrote API documentation [Domen Kožar] * Added `wsgiproxy` support to do HTTP request to an URL [gawel] * Use BeautifulSoup4 to parse forms [gawel] * Added `webtest.app.TestApp.patch_json` [gawel] * Implement `webtest.app.TestApp.cookiejar` support and kindof keep `webtest.app.TestApp.cookies` functionality. `webtest.app.TestApp.cookies` should be treated as read-only. [Domen Kožar] * Split Selenium integration into separate package webtest-selenium * Split casperjs integration into separate package webtest-casperjs OBS-URL: https://build.opensuse.org/request/show/173784 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebTest?expand=0&rev=16
2013-04-29 14:08:23 +00:00
Requires: python-WebOb >= 1.2
Requires: python-beautifulsoup4
Requires: python-waitress >= 0.8.5
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}
%patch0 -p1
%build
%python_build
sphinx-build -b html docs build/sphinx/html && rm -r build/sphinx/html/.{buildinfo,doctrees}
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license license.rst
%doc CHANGELOG.rst README.rst
%{python_sitelib}/webtest/
%{python_sitelib}/WebTest-%{version}*-info
%files -n %{name}-doc
%doc build/sphinx/html
%changelog