forked from pool/python-pyquery
- 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
This commit is contained in:
@@ -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}
|
||||
|
Reference in New Issue
Block a user