From 656bca62482b55425924b605edc24ec8767553020046e34dbecfe51eb307ccbf Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:21:00 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyquery?expand=0&rev=50 --- python-pyquery.changes | 5 +++++ python-pyquery.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-pyquery.changes b/python-pyquery.changes index 65f12c5..993d31d 100644 --- a/python-pyquery.changes +++ b/python-pyquery.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 11 05:49:31 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Fri Nov 15 13:38:40 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-pyquery.spec b/python-pyquery.spec index b0a73cf..e0991cb 100644 --- a/python-pyquery.spec +++ b/python-pyquery.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyquery # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # 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 BuildRequires: %{python_module cssselect >= 1.2.0} BuildRequires: %{python_module lxml >= 2.1} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-cssselect >= 1.2.0 @@ -63,11 +65,11 @@ XML and HTML manipulation. %autosetup -p1 -n pyquery-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -83,7 +85,7 @@ XML and HTML manipulation. %license LICENSE.txt %doc CHANGES.rst README.rst %{python_sitelib}/pyquery/ -%{python_sitelib}/pyquery-%{version}*-info +%{python_sitelib}/pyquery-%{version}.dist-info %endif %changelog