From 36d4f5555f2747955a628fd5a4a56a30cf64eb05 Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Thu, 12 Jun 2025 11:13:31 +0800 Subject: [PATCH] Switch to pytest to fix build failure --- python-cachetools.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python-cachetools.spec b/python-cachetools.spec index 3c8bd90..f8f73f6 100644 --- a/python-cachetools.spec +++ b/python-cachetools.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-cachetools Version: 6.0.0 -Release: 1 +Release: 2 Summary: Extensible memoizing collections and decorators License: MIT URL: https://github.com/tkem/cachetools/ @@ -21,6 +21,7 @@ BuildRequires: python3-setuptools BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel +BuildRequires: python3-pytest %description -n python3-cachetools This module provides various memoizing collections and decorators, including variants of the Python Standard Library's `@lru_cache`_ @@ -70,7 +71,7 @@ mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %check -%{__python3} setup.py test +%pytest %files -n python3-cachetools -f filelist.lst %dir %{python3_sitelib}/* @@ -80,6 +81,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Jun 12 2025 yaoxin <1024769339@qq.com> - 6.0.0-2 +- Switch to pytest to fix build failure + * Thu May 29 2025 hexun - 6.0.0-1 - Update package to version 6.0.0 -- Gitee