Accepting request 1080484 from devel:languages:python

- Update to 2.0.0:
  * Breaking change: inputs starting with "http://" or "https://" like
    PyQuery("http://example.com") will no longer fetch the contents of the
    URL. Users desiring the old behavior should switch to
    PyQuery(url="http://example.com").
  * Add nextUntil method
  * .remove() no longer inserts a space in place of the removed element
  * Fix escaping of top-level element text in .html() output
  * Support (and require) cssselect 1.2+
  * Drop support for python 3.5/3.6

OBS-URL: https://build.opensuse.org/request/show/1080484
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyquery?expand=0&rev=22
This commit is contained in:
Dominique Leuenberger 2023-04-21 12:15:44 +00:00 committed by Git OBS Bridge
commit c2a2dc76e2
4 changed files with 22 additions and 8 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a388eefb6bc4a55350de0316fbd97cda999ae669b6743ae5b99102ba54f5aa72
size 47448

BIN
pyquery-2.0.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Thu Apr 20 07:27:05 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 2.0.0:
* Breaking change: inputs starting with "http://" or "https://" like
PyQuery("http://example.com") will no longer fetch the contents of the
URL. Users desiring the old behavior should switch to
PyQuery(url="http://example.com").
* Add nextUntil method
* .remove() no longer inserts a space in place of the removed element
* Fix escaping of top-level element text in .html() output
* Support (and require) cssselect 1.2+
* Drop support for python 3.5/3.6
-------------------------------------------------------------------
Fri Feb 17 16:46:13 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@ -26,22 +26,21 @@
%bcond_with test
%endif
Name: python-pyquery%{psuffix}
Version: 1.4.3
Version: 2.0.0
Release: 0
Summary: A jQuery-like library for python
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://pypi.python.org/pypi/pyquery
Source: https://files.pythonhosted.org/packages/source/p/pyquery/pyquery-%{version}.tar.gz
# PATCH-FIX-OPENSUSE make_webtest_optional.patch mcepl@suse.com
# Make it possible to run test suite (albeit partial) without WebTest module
Patch0: make_webtest_optional.patch
BuildRequires: %{python_module cssselect > 0.7.9}
BuildRequires: %{python_module cssselect >= 1.2.0}
BuildRequires: %{python_module lxml >= 2.1}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cssselect > 0.7.9
Requires: python-cssselect >= 1.2.0
Requires: python-lxml >= 2.1
BuildArch: noarch
%if %{with test}
@ -74,7 +73,8 @@ XML and HTML manipulation.
%if %{with test}
%check
# Disable tests which perform live fetch
%pytest -k 'not test_get' tests
# test_selector_html uses XML namespaces, which are broken with libxml2 2.10.4+
%pytest -k 'not (test_get or test_selector_html)' tests
%endif
%if !%{with test}