forked from pool/python-parsel
Accepting request 1158405 from devel:languages:python
- update to 1.9.0:
* Now requires ``cssselect >= 1.2.0`` (this minimum version was
required since 1.8.0 but that wasn't properly recorded)
* Removed support for Python 3.7
* Added support for Python 3.12 and PyPy 3.10
* Fixed an exception when calling ``__str__`` or `__repr__`` on
some JSON selectors
* Code formatted with ``black``
* CI fixes and improvements
OBS-URL: https://build.opensuse.org/request/show/1158405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-parsel?expand=0&rev=12
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:aff28e68c9b3f1a901db2a4e3f158d8480a38724d7328ee751c1a4e1c1801e39
|
||||
size 50881
|
||||
3
parsel-1.9.0.tar.gz
Normal file
3
parsel-1.9.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a5a6bcb0c5fc741540ba3075636ff5cb968852a78cc16ae82250e5d486fa7d48
|
||||
size 51137
|
||||
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 16 09:25:22 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.9.0:
|
||||
* Now requires ``cssselect >= 1.2.0`` (this minimum version was
|
||||
required since 1.8.0 but that wasn't properly recorded)
|
||||
* Removed support for Python 3.7
|
||||
* Added support for Python 3.12 and PyPy 3.10
|
||||
* Fixed an exception when calling ``__str__`` or `__repr__`` on
|
||||
some JSON selectors
|
||||
* Code formatted with ``black``
|
||||
* CI fixes and improvements
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 20 21:53:12 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-parsel
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,39 +16,35 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-parsel
|
||||
Version: 1.8.1
|
||||
Version: 1.9.0
|
||||
Release: 0
|
||||
Summary: Library to extract data from HTML and XML using XPath and CSS selectors
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/scrapy/parsel
|
||||
Source: https://files.pythonhosted.org/packages/source/p/parsel/parsel-%{version}.tar.gz
|
||||
BuildRequires: %{python_module cssselect >= 0.9}
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module cssselect >= 1.2.0}
|
||||
BuildRequires: %{python_module jmespath}
|
||||
BuildRequires: %{python_module lxml}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module psutil}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module typing-extensions}
|
||||
BuildRequires: %{python_module w3lib >= 1.19.0}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-cssselect >= 0.9
|
||||
Requires: python-cssselect >= 1.2.0
|
||||
Requires: python-jmespath
|
||||
Requires: python-lxml
|
||||
Requires: python-typing-extensions
|
||||
Requires: python-w3lib >= 1.19.0
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Requires: python-functools32
|
||||
%endif
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
%if %{with python2}
|
||||
BuildRequires: python-functools32
|
||||
%endif
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -61,10 +57,10 @@ selectors.
|
||||
sed -i -e '/pytest-runner/d' setup.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -73,6 +69,7 @@ sed -i -e '/pytest-runner/d' setup.py
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/parsel
|
||||
%{python_sitelib}/parsel-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user