## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-pyrate-limiter Version: 3.2.0 Release: %autorelease Summary: The request rate limiter using Leaky-bucket algorithm License: MIT URL: https://github.com/vutran1710/PyrateLimiter Source0: %{pypi_source pyrate_limiter} BuildArch: noarch BuildRequires: python3-devel # Multiple packages are needed to run tests on this library that are either not packaged for Fedora, # or are way too old. # Without those, over 300 tests fail. So I will disable the tests until the situation changes. # See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_running_tests # django-redis = "^5.0.0" # Currently too old: # https://bugzilla.redhat.com/show_bug.cgi?id=1445556 # BuildRequires: %%{py3_dist django-redis} >= 5 # fakeredis = "^1.1.0" # Not yet packaged: # BuildRequires: %%{py3_dist fakeredis} >= 1.1 # pytest-cov = "^4.1.0" # Too old... # BuildRequires: %%{py3_dist pytest-cov} >= 4.1 # Hard dependancy on a specific version of the package (Submitted upstream as a possible problem?) # coverage = "6" # BuildRequires: %%{py3_dist coverage} = 6 %global _description \ The request rate limiter using Leaky-bucket algorithm. %description %{_description} %package -n python3-pyrate-limiter Summary: %{summary} %description -n python3-pyrate-limiter %{_description} %prep %autosetup -n pyrate_limiter-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pyrate_limiter %check %pyproject_check_import %files -n python3-pyrate-limiter -f %{pyproject_files} %doc README.md %license LICENSE %changelog ## START: Generated by rpmautospec * Thu Jan 11 2024 Steve Cossette - 3.2.0-1 - 3.2.0 * Tue Sep 05 2023 Steve Cossette - 3.1.0-1 - Update to 3.1.0 * Tue May 02 2023 Steve Cossette - 2.10.0-1 - Update to 2.10.0 * Sun Feb 26 2023 Steve Cossette - 2.9.1-1 - Update to 2.9.1 * Tue Feb 21 2023 Steve Cossette - 2.9.0-2 - Forgot to update SOURCES * Tue Feb 21 2023 Steve Cossette - 2.9.0-1 - Update to 2.9.0 * Mon Feb 06 2023 Steve Cossette - 2.8.5-3 - Forgot to add a patch from last commit * Mon Feb 06 2023 Steve Cossette - 2.8.5-2 - Removed a BuildRequire for epel9 (for Python tests, as Django on epel9 is too old), See https://src.fedoraproject.org/rpms/python-pyrate- limiter/pull-request/1 * Sun Feb 05 2023 Steve Cossette - 2.8.5-1 - Initial import (fedora#2164882) ## END: Generated by rpmautospec