2016-06-03 06:50:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-parsel
|
|
|
|
#
|
2025-02-04 16:21:20 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2016-06-03 06:50:25 +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:44:54 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-06-03 06:50:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-03-16 09:28:20 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2016-06-03 06:50:25 +00:00
|
|
|
Name: python-parsel
|
2025-02-04 16:21:20 +00:00
|
|
|
Version: 1.10.0
|
2016-06-03 06:50:25 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Library to extract data from HTML and XML using XPath and CSS selectors
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Languages/Python
|
2018-11-17 16:05:58 +00:00
|
|
|
URL: https://github.com/scrapy/parsel
|
2017-12-21 23:26:17 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/parsel/parsel-%{version}.tar.gz
|
2024-03-16 09:28:20 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
|
|
BuildRequires: %{python_module cssselect >= 1.2.0}
|
2023-12-20 21:54:39 +00:00
|
|
|
BuildRequires: %{python_module jmespath}
|
2017-12-21 23:26:17 +00:00
|
|
|
BuildRequires: %{python_module lxml}
|
2024-03-16 09:28:20 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2023-01-07 23:17:41 +00:00
|
|
|
BuildRequires: %{python_module psutil}
|
2017-12-21 23:26:17 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-12-20 21:54:39 +00:00
|
|
|
BuildRequires: %{python_module typing-extensions}
|
2023-01-07 23:17:41 +00:00
|
|
|
BuildRequires: %{python_module w3lib >= 1.19.0}
|
2024-03-16 09:28:20 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-12-21 23:26:17 +00:00
|
|
|
BuildRequires: fdupes
|
2017-12-21 23:36:20 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2024-03-16 09:28:20 +00:00
|
|
|
Requires: python-cssselect >= 1.2.0
|
2023-12-20 21:54:39 +00:00
|
|
|
Requires: python-jmespath
|
2016-06-03 06:50:25 +00:00
|
|
|
Requires: python-lxml
|
2023-12-20 21:54:39 +00:00
|
|
|
Requires: python-typing-extensions
|
2023-01-07 23:17:41 +00:00
|
|
|
Requires: python-w3lib >= 1.19.0
|
2019-09-11 08:28:47 +00:00
|
|
|
BuildArch: noarch
|
2018-11-17 16:05:58 +00:00
|
|
|
# SECTION test requirements
|
2018-12-04 13:44:54 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-11-17 16:05:58 +00:00
|
|
|
# /SECTION
|
2017-12-21 23:26:17 +00:00
|
|
|
%python_subpackages
|
2016-06-03 06:50:25 +00:00
|
|
|
|
|
|
|
%description
|
2017-12-21 23:26:17 +00:00
|
|
|
Parsel is a library to extract data from HTML and XML using XPath and CSS
|
|
|
|
selectors.
|
2016-06-03 06:50:25 +00:00
|
|
|
|
|
|
|
%prep
|
2022-10-20 05:30:05 +00:00
|
|
|
%autosetup -p1 -n parsel-%{version}
|
2016-06-03 06:50:25 +00:00
|
|
|
|
|
|
|
%build
|
2024-03-16 09:28:20 +00:00
|
|
|
%pyproject_wheel
|
2016-06-03 06:50:25 +00:00
|
|
|
|
|
|
|
%install
|
2024-03-16 09:28:20 +00:00
|
|
|
%pyproject_install
|
2017-12-21 23:26:17 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-04-20 11:27:39 +00:00
|
|
|
%pytest
|
2016-06-03 06:50:25 +00:00
|
|
|
|
2017-12-21 23:26:17 +00:00
|
|
|
%files %{python_files}
|
2018-04-06 08:40:04 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2024-03-16 09:28:20 +00:00
|
|
|
%{python_sitelib}/parsel
|
|
|
|
%{python_sitelib}/parsel-%{version}.dist-info
|
2016-06-03 06:50:25 +00:00
|
|
|
|
|
|
|
%changelog
|