From 22c9ffd6652058b5193e2be69cd7c1c33bac53e3 Mon Sep 17 00:00:00 2001 From: tzing_t Date: Mon, 15 Apr 2024 11:58:00 +0000 Subject: [PATCH] fix build error --- python-testtools.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python-testtools.spec b/python-testtools.spec index 2e99a28..801a69a 100644 --- a/python-testtools.spec +++ b/python-testtools.spec @@ -1,6 +1,6 @@ Name: python-testtools Version: 2.5.0 -Release: 1 +Release: 2 Summary: Extensions to the Python unit testing framework License: MIT URL: https://launchpad.net/testtools @@ -10,7 +10,7 @@ BuildRequires: python3-extras python3-mimeparse python3-pbr python3-setuptools BuildRequires: python3-traceback2 python3-testscenarios python3-sphinx python3-devel BuildArch: noarch #https://github.com/testing-cabal/testtools/commit/ec9bb7ed026566688a14be9d8d5d1e4c506e71c0 -Patch0: 0001-Add-support-for-Python-3.10.patch + %description Testtools is a set of extensions to the Python standard library's unit testing framework. These @@ -47,7 +47,8 @@ PYTHONPATH=$PWD make -C doc html %py3_install %check -make PYTHON=%{__python3} check +export PYTHONPATH=%{buildroot}%{python3_sitelib} +%{__python3} -m testtools.run testtools.tests.test_suite %files -n python3-testtools %doc NEWS README.rst @@ -58,6 +59,9 @@ make PYTHON=%{__python3} check %doc doc/_build/html/* %changelog +* Mon Apr 15 2024 tzing_t - 2.5.0-2 +- fix build error + * Wed Oct 26 2022 yaoxin - 2.5.0-1 - Update to 2.5.0 -- Gitee