2018-05-10 03:00:32 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-MechanicalSoup
|
|
|
|
#
|
2023-03-28 10:20:10 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-05-10 03:00:32 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 13:40:02 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-10 03:00:32 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-MechanicalSoup
|
2023-12-07 22:26:10 +00:00
|
|
|
Version: 1.3.0
|
2018-05-10 03:00:32 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A Python library for automating interaction with websites
|
|
|
|
License: MIT
|
2019-03-05 16:58:09 +00:00
|
|
|
URL: https://github.com/hickford/MechanicalSoup
|
2018-05-10 03:00:32 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/M/MechanicalSoup/MechanicalSoup-%{version}.tar.gz
|
2019-03-05 16:58:09 +00:00
|
|
|
BuildRequires: %{python_module beautifulsoup4 >= 4.4}
|
2019-09-05 15:48:43 +00:00
|
|
|
BuildRequires: %{python_module httpbin}
|
|
|
|
BuildRequires: %{python_module jsonschema >= 2.5.1}
|
2019-03-05 16:58:09 +00:00
|
|
|
BuildRequires: %{python_module lxml}
|
|
|
|
BuildRequires: %{python_module pytest-httpbin}
|
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2018-05-10 03:00:32 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module requests >= 2.0}
|
|
|
|
BuildRequires: %{python_module requests-mock}
|
2019-03-05 16:58:09 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-beautifulsoup4 >= 4.4
|
|
|
|
Requires: python-lxml
|
2018-05-10 03:00:32 +00:00
|
|
|
Requires: python-requests >= 2.0
|
2019-09-05 15:48:43 +00:00
|
|
|
Recommends: python-httpbin
|
|
|
|
Recommends: python-jsonschema >= 2.5.1
|
2018-05-10 03:00:32 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
A Python library for automating interaction with websites.
|
|
|
|
MechanicalSoup automatically stores and sends cookies,
|
|
|
|
follows redirects, and can follow links and submit forms.
|
|
|
|
It doesn't do Javascript.
|
|
|
|
|
2018-05-18 18:07:33 +00:00
|
|
|
The Mechanize library is incompatible with Python 3 and development
|
|
|
|
is inactive. MechanicalSoup provides a similar API to it, built on
|
|
|
|
Python giants Requests (for http sessions) and BeautifulSoup (for
|
|
|
|
document navigation).
|
2018-05-10 03:00:32 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n MechanicalSoup-%{version}
|
2019-03-05 16:58:09 +00:00
|
|
|
# do not require cov/xdist/etc
|
|
|
|
sed -i -e '/addopts/d' setup.cfg
|
2018-05-10 03:00:32 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-03-17 10:58:26 +00:00
|
|
|
# https://github.com/MechanicalSoup/MechanicalSoup/issues/299 test_enctype_and_file_submit
|
|
|
|
%pytest -k 'not test_enctype_and_file_submit'
|
2018-05-10 03:00:32 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2023-03-28 10:20:10 +00:00
|
|
|
%{python_sitelib}/MechanicalSoup*
|
|
|
|
%{python_sitelib}/mechanicalsoup*
|
2018-05-10 03:00:32 +00:00
|
|
|
|
|
|
|
%changelog
|