4 Commits

2 changed files with 23 additions and 5 deletions

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed Sep 24 10:43:53 UTC 2025 - pgajdos@suse.com
- temporarily disable tests that fails because of libxml2 version
bump to 2.14
https://github.com/gawel/pyquery/issues/257
-------------------------------------------------------------------
Wed Jun 11 05:49:31 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 15 13:38:40 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> Fri Nov 15 13:38:40 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pyquery # spec file for package python-pyquery
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -38,7 +38,9 @@ Source: https://files.pythonhosted.org/packages/source/p/pyquery/pyquery
Patch0: make_webtest_optional.patch Patch0: make_webtest_optional.patch
BuildRequires: %{python_module cssselect >= 1.2.0} BuildRequires: %{python_module cssselect >= 1.2.0}
BuildRequires: %{python_module lxml >= 2.1} BuildRequires: %{python_module lxml >= 2.1}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-cssselect >= 1.2.0 Requires: python-cssselect >= 1.2.0
@@ -63,11 +65,11 @@ XML and HTML manipulation.
%autosetup -p1 -n pyquery-%{version} %autosetup -p1 -n pyquery-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%if !%{with test} %if !%{with test}
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif %endif
@@ -75,7 +77,11 @@ XML and HTML manipulation.
%check %check
# Disable tests which perform live fetch # Disable tests which perform live fetch
# test_selector_html uses XML namespaces, which are broken with libxml2 2.10.4+ # test_selector_html uses XML namespaces, which are broken with libxml2 2.10.4+
%pytest -k 'not (test_get or test_selector_html)' tests # test_val_for_textarea libxml2-2.14 https://github.com/gawel/pyquery/issues/257
# test_replaceWith libxml2-2.14 https://github.com/gawel/pyquery/issues/257
# test_post libxml2-2.14 https://github.com/gawel/pyquery/issues/257
# test_session libxml2-2.14 https://github.com/gawel/pyquery/issues/257
%pytest -k 'not (test_get or test_selector_html or test_val_for_textarea or test_replaceWith or test_post or test_session)' tests
%endif %endif
%if !%{with test} %if !%{with test}
@@ -83,7 +89,7 @@ XML and HTML manipulation.
%license LICENSE.txt %license LICENSE.txt
%doc CHANGES.rst README.rst %doc CHANGES.rst README.rst
%{python_sitelib}/pyquery/ %{python_sitelib}/pyquery/
%{python_sitelib}/pyquery-%{version}*-info %{python_sitelib}/pyquery-%{version}.dist-info
%endif %endif
%changelog %changelog