diff --git a/flask_limiter-3.12.tar.gz b/flask_limiter-3.12.tar.gz deleted file mode 100644 index 77b64fe0779ec8a81569c0fa092065896e819139..0000000000000000000000000000000000000000 Binary files a/flask_limiter-3.12.tar.gz and /dev/null differ diff --git a/flask_limiter-4.0.0.tar.gz b/flask_limiter-4.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..128bf070295a53cbd32540853e66d489fd20f199 Binary files /dev/null and b/flask_limiter-4.0.0.tar.gz differ diff --git a/python-flask-limiter.spec b/python-flask-limiter.spec index 7c6ad43c2e3e11512e35674048d93033c46274b9..bba8ed181b524c5ed8c7bdce992fb3a685ab5538 100644 --- a/python-flask-limiter.spec +++ b/python-flask-limiter.spec @@ -1,6 +1,6 @@ %global _empty_manifest_terminate_build 0 Name: python-Flask-Limiter -Version: 3.12 +Version: 4.0.0 Release: 1 Summary: Rate limiting for flask applications License: MIT @@ -8,7 +8,6 @@ URL: https://flask-limiter.readthedocs.org Source0: %{pypi_source flask_limiter} BuildArch: noarch - %description Flask-Limiter provides rate limiting features to flask routes. @@ -17,9 +16,14 @@ Summary: Rate limiting for flask applications Provides: python-Flask-Limiter = %{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-hatchling +BuildRequires: python3-hatch-vcs +BuildRequires: python3-wheel Requires: python3-limits Requires: python3-flask Requires: python3-six +Requires: python3-rich >= 12 %description -n python3-Flask-Limiter Flask-Limiter provides rate limiting features to flask routes. @@ -33,43 +37,30 @@ Development documents and examples for Flask-Limiter %autosetup -n flask_limiter-%{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 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 . - -%files -n python3-Flask-Limiter -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst + +%files -n python3-Flask-Limiter +%{python3_sitelib}/flask_limiter* + +%files help %{_docdir}/* %changelog +* Thu Oct 23 2025 xu_ping <707078654@qq.com> - 4.0.0-1 +- Update package to version 4.0.0 + * Migrate all project metadata to pyproject + * Remove versioneer + * Use uv for development + * Use hatch for build + * Wed Aug 13 2025 Ge Wang - 3.12-1 - Update package to version 3.12 * Drop support for python 3.9