diff --git a/cachetools-6.0.0.tar.gz b/cachetools-6.0.0.tar.gz deleted file mode 100644 index 7d3a74a4c384de21a1cd6166ad1c41aededabf19..0000000000000000000000000000000000000000 Binary files a/cachetools-6.0.0.tar.gz and /dev/null differ diff --git a/cachetools-6.1.0.tar.gz b/cachetools-6.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..eae6a4461a5a2deb7c6dca3e279cefcf933c6b94 Binary files /dev/null and b/cachetools-6.1.0.tar.gz differ diff --git a/python-cachetools.spec b/python-cachetools.spec index f8f73f605677011410008c2a4c981b7a9750964f..420d69234e297d0dbb996350c74cdd651e535670 100644 --- a/python-cachetools.spec +++ b/python-cachetools.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-cachetools -Version: 6.0.0 -Release: 2 +Version: 6.1.0 +Release: 1 Summary: Extensible memoizing collections and decorators License: MIT URL: https://github.com/tkem/cachetools/ -Source0: https://files.pythonhosted.org/packages/c0/b0/f539a1ddff36644c28a61490056e5bae43bd7386d9f9c69beae2d7e7d6d1/cachetools-6.0.0.tar.gz +Source0: %{pypi_source cachetools} BuildArch: noarch %description This module provides various memoizing collections and decorators, @@ -22,6 +22,7 @@ BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-pytest +BuildRequires: pyproject-rpm-macros %description -n python3-cachetools This module provides various memoizing collections and decorators, including variants of the Python Standard Library's `@lru_cache`_ @@ -39,48 +40,25 @@ function decorator. %autosetup -n cachetools-%{version} %build -%py3_build - +%pyproject_wheel %install -%py3_install -install -d -m755 %{buildroot}/%{_pkgdocdir} -if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi -if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi -if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi -if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . +%pyproject3_install +%pyproject_save_files -l cachetools %check %pytest -%files -n python3-cachetools -f filelist.lst -%dir %{python3_sitelib}/* - - -%files help -f doclist.lst -%{_docdir}/* +%files -n python3-cachetools -f %{pyproject_files} +%doc CHANGELOG.rst README.rst %changelog +* Wed Aug 20 2025 yaoxin <1024769339@qq.com> - 6.1.0-1 +- Update to 6.1.0: + * Improve LFUCache insertion performance by switching to an + implementation based on the cacheing library. + * Require Python 3.9 or later (breaking change). + * Thu Jun 12 2025 yaoxin <1024769339@qq.com> - 6.0.0-2 - Switch to pytest to fix build failure