From f0a4b46241238151c5b08403e35781ba25a0db2a1f0f06646d5a3860d3cfdc17 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 20 Apr 2023 07:27:23 +0000 Subject: [PATCH] - 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/package/show/devel:languages:python/python-pyquery?expand=0&rev=42 --- pyquery-1.4.3.tar.gz | 3 --- pyquery-2.0.0.tar.gz | 3 +++ python-pyquery.changes | 14 ++++++++++++++ python-pyquery.spec | 10 +++++----- 4 files changed, 22 insertions(+), 8 deletions(-) delete mode 100644 pyquery-1.4.3.tar.gz create mode 100644 pyquery-2.0.0.tar.gz diff --git a/pyquery-1.4.3.tar.gz b/pyquery-1.4.3.tar.gz deleted file mode 100644 index bcab685..0000000 --- a/pyquery-1.4.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a388eefb6bc4a55350de0316fbd97cda999ae669b6743ae5b99102ba54f5aa72 -size 47448 diff --git a/pyquery-2.0.0.tar.gz b/pyquery-2.0.0.tar.gz new file mode 100644 index 0000000..f132584 --- /dev/null +++ b/pyquery-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:963e8d4e90262ff6d8dec072ea97285dc374a2f69cad7776f4082abcf6a1d8ae +size 45210 diff --git a/python-pyquery.changes b/python-pyquery.changes index 161a5a4..134361c 100644 --- a/python-pyquery.changes +++ b/python-pyquery.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Apr 20 07:27:05 UTC 2023 - Steve Kowalik + +- 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 diff --git a/python-pyquery.spec b/python-pyquery.spec index 499dd49..905c10a 100644 --- a/python-pyquery.spec +++ b/python-pyquery.spec @@ -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}