%global _without_tests 1 %global real_name pyquery %if 0%{?rhel} %bcond_with tests %else %bcond_without tests %endif Name: python-%{real_name} Version: 1.4.3 Release: 20%{?dist} Summary: A jQuery-like library for python # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: http://pypi.python.org/pypi/pyquery Source0: %pypi_source pyquery # skip some tests that need network Patch: python-pyquery-skip-test-requiring-net-connection.patch # Fix for Python 3.12+ # https://github.com/gawel/pyquery/issues/249 # https://github.com/gawel/pyquery/commit/60ea3abafdf3e9cddcc580b9f94197c6badab09b Patch: 0001-backport-3.12-OrderedDict.__repr__-to-run-doctest-on.patch # Fix a test with libxml 2.10.4+ # https://github.com/gawel/pyquery/issues/248 # https://github.com/gawel/pyquery/pull/250 Patch: 0002-test-allow-libxml2-behavior-change.patch BuildArch: noarch %global _description\ python-pyquery allows you to make jQuery queries on XML documents. The API is\ as much as possible the similar to jQuery. python-pyquery uses lxml for fast\ XML and HTML manipulation. %description %_description %package -n python3-pyquery Summary: A jQuery-like library for python3 BuildRequires: python3-devel BuildRequires: python3-setuptools # test deps BuildRequires: python3-cssselect BuildRequires: python3-lxml >= 2.1 BuildRequires: python3-requests %if %{with tests} BuildRequires: python3-nose BuildRequires: python3-webob BuildRequires: python3-webtest %endif Requires: python3-lxml >= 2.1 Requires: python3-cssselect %description -n python3-pyquery python3-pyquery allows you to make jQuery queries on XML documents. The API is as much as possible the similar to jQuery. python-pyquery uses lxml for fast XML and HTML manipulation. %prep %autosetup -n %{real_name}-%{version} -p1 %build %py3_build %install %py3_install %check %if %{with tests} nosetests-%{python3_version} %endif %files -n python3-pyquery %doc CHANGES.rst README.rst %{python3_sitelib}/pyquery/ %{python3_sitelib}/pyquery*.egg-info/ %changelog * Wed Sep 04 2024 Miroslav Suchý - 1.4.3-20 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 1.4.3-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 13 2024 Python Maint - 1.4.3-18 - Rebuilt for Python 3.13 * Tue Jun 11 2024 Python Maint - 1.4.3-17 - Bootstrap for Python 3.13 * Tue Jun 11 2024 Adam Williamson - 1.4.3-16 - Backport patches from upstream to fix build/tests with Python 3.12 * Fri Jan 26 2024 Fedora Release Engineering - 1.4.3-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.4.3-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.4.3-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 1.4.3-12 - Rebuilt for Python 3.12 * Wed Jun 14 2023 Python Maint - 1.4.3-11 - Bootstrap for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.4.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.4.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jul 09 2022 Kevin Fenzi - 1.4.3-8 - Fix test deps and disable tests in epel * Fri Jun 17 2022 Python Maint - 1.4.3-8 - Rebuilt for Python 3.11 * Mon Jun 13 2022 Python Maint - 1.4.3-7 - Bootstrap for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.4.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.4.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.4.3-4 - Rebuilt for Python 3.10 * Fri Jun 04 2021 Python Maint - 1.4.3-3 - Bootstrap for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 01 2021 Kevin Fenzi - 1.4.3-1 - Update to 1.4.3. Fixes rhbz#1900198 * Wed Jul 29 2020 Fedora Release Engineering - 1.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 25 2020 Miro Hrončok - 1.4.1-3 - Rebuilt for Python 3.9 * Mon May 25 2020 Miro Hrončok - 1.4.1-2 - Bootstrap for Python 3.9 * Fri Apr 03 2020 Clement Verna - 1.4.1-1 - Update to 1.4.1 * Thu Jan 30 2020 Fedora Release Engineering - 1.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Sep 09 2019 Miro Hrončok - 1.4.0-6 - Subpackage python2-pyquery has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Aug 17 2019 Miro Hrončok - 1.4.0-5 - Rebuilt for Python 3.8 * Sat Aug 17 2019 Miro Hrončok - 1.4.0-4 - Bootstrap for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jul 25 2018 Pierre-Yves Chibon - 1.4.0-1 - Update to 1.4.0 * Wed Jul 25 2018 Pierre-Yves Chibon - 1.3.0-7 - Use the py2 version of the macros * Sat Jul 14 2018 Fedora Release Engineering - 1.3.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jun 18 2018 Miro Hrončok - 1.3.0-6 - Rebuilt for Python 3.7 * Sun Jun 17 2018 Miro Hrončok - 1.3.0-5 - Bootstrap for Python 3.7 * Wed Feb 28 2018 Randy Barlow - 1.3.0-4 - Use /usr/bin/python2 instead of /usr/bin/python when building and installing. * Tue Feb 27 2018 Iryna Shcherbina - 1.3.0-3 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Dec 18 2017 Kevin Fenzi - 1.3.0-1 - Update to 1.3.0. Fixes bug #1505136 * Fri Sep 29 2017 Troy Dawson - 1.2.17-7 - Cleanup spec file conditionals * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 1.2.17-6 - Python 2 binary package renamed to python2-pyquery See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 1.2.17-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild