From 096c5c23ecc54d4ff5577eeb69d8e0468d5ffc53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 6 Jan 2025 17:44:57 +0100 Subject: [PATCH] Fix build with setuptools 74+ Don't run tests via setup.py test. Drop no longer used test dependency on pytest. --- python-pdfkit.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python-pdfkit.spec b/python-pdfkit.spec index f7edcac..6b77578 100644 --- a/python-pdfkit.spec +++ b/python-pdfkit.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 0.6.1 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Wkhtmltopdf python wrapper License: MIT @@ -21,7 +21,6 @@ BuildArch: noarch BuildRequires: python3-setuptools BuildRequires: python3-devel BuildRequires: python3 -BuildRequires: python3-pytest BuildRequires: wkhtmltopdf Requires: wkhtmltopdf @@ -59,7 +58,8 @@ find tests -type f |\ while read a; do b=$(echo $a |\ sed -r 's/%{commit0}_//'); \ mv -v $a $b; done -%{__python3} setup.py test +cd tests +%{__python3} pdfkit-tests.py %files -n python3-%{pypi_name} %license LICENSE @@ -68,6 +68,10 @@ find tests -type f |\ %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Mon Jan 06 2025 Miro HronĨok - 0.6.1-17 +- Fix build with setuptools 74+ +- Fixes: rhzb#2319690 + * Fri Jul 19 2024 Fedora Release Engineering - 0.6.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild