diff --git a/limits-5.5.0.tar.gz b/limits-5.5.0.tar.gz deleted file mode 100644 index 95155c80db1bb1bbc308dc3c26fa5ea063d7b739..0000000000000000000000000000000000000000 Binary files a/limits-5.5.0.tar.gz and /dev/null differ diff --git a/limits-5.6.0.tar.gz b/limits-5.6.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..09fe8ae85c2505eb9c5740b59b578f12596e8fde Binary files /dev/null and b/limits-5.6.0.tar.gz differ diff --git a/python-limits.spec b/python-limits.spec index adb52c3830fcdd43dcc68c59bc905af6b221f6d6..d605bb04f0b4e4817efa27b2690bc25b17b31022 100644 --- a/python-limits.spec +++ b/python-limits.spec @@ -1,6 +1,6 @@ %global _empty_manifest_terminate_build 0 Name: python-limits -Version: 5.5.0 +Version: 5.6.0 Release: 1 Summary: Rate limiting utilities License: MIT @@ -8,6 +8,8 @@ URL: https://limits.readthedocs.org Source0: https://files.pythonhosted.org/packages/source/l/limits/limits-%{version}.tar.gz BuildArch: noarch +BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel + %description limits provides utilities to implement rate limiting using various strategies and storage backends such as redis & memcached. @@ -16,7 +18,6 @@ various strategies and storage backends such as redis & memcached. Summary: Rate limiting utilities Provides: python-limits = %{version}-%{release} BuildRequires: python3-devel -BuildRequires: python3-setuptools Requires: python3-deprecated Requires: python3-importlib-resources Requires: python3-setuptools @@ -37,10 +38,10 @@ various strategies and storage backends such as redis & memcached. %autosetup -n limits-%{version} %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_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 @@ -49,34 +50,21 @@ if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi if [ -f README.txt ]; then cp -af README.txt %{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 . - -%files -n python3-limits -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst + +%files -n python3-limits +%{python3_sitelib}/limits* + +%files help %{_docdir}/* %changelog +* Thu Oct 23 2025 Ge Wang - 5.6.0-1 +- Update to 5.6.0 + * Move all project metadata to pyproject + * Use uv for development + * Use hatch for package build + * Remove versioneer for versioning + * Tue Aug 12 2025 Ge Wang - 5.5.0-1 - Update to 5.5.0 - Relax upper bound of packaging requirement