From 2c5db73f0e0a685c874422e2670fbb3c400a9c62 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Nov 29 2023 19:47:58 +0000 Subject: Orphaned for 6+ weeks --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 2ff3560..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/ratelimiter-1.2.0.post0.tar.gz diff --git a/13.patch b/13.patch deleted file mode 100644 index 4c012c1..0000000 --- a/13.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 7a0dff8c37f71ed797e0839e8323411d844205bd Mon Sep 17 00:00:00 2001 -From: "Benjamin A. Beasley" -Date: Tue, 15 Mar 2022 15:28:13 -0400 -Subject: [PATCH] Fix pytest 7.x compatibility - -pytest.collect.File was moved to pytest.File in pytest 7 - -It turns out that pytest.File was already available in all versions of -pytest this project claims to support, so the change is -backwards-compatible. ---- - tests/conftest.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tests/conftest.py b/tests/conftest.py -index d24b23c..466a080 100644 ---- a/tests/conftest.py -+++ b/tests/conftest.py -@@ -6,7 +6,7 @@ - import pytest - - --class DummyCollector(pytest.collect.File): -+class DummyCollector(pytest.File): - def collect(self): - return [] - diff --git a/README.md b/README.md deleted file mode 100644 index 673fb38..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# python-ratelimiter - -The python-ratelimiter package - -Python module providing rate limiting diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..5204a84 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Orphaned for 6+ weeks diff --git a/pr-11-minimal.patch b/pr-11-minimal.patch deleted file mode 100644 index d38e585..0000000 --- a/pr-11-minimal.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -Naur ratelimiter-1.2.0.post0-original/ratelimiter.py ratelimiter-1.2.0.post0/ratelimiter.py ---- ratelimiter-1.2.0.post0-original/ratelimiter.py 2017-12-11 19:30:27.000000000 -0500 -+++ ratelimiter-1.2.0.post0/ratelimiter.py 2021-11-03 12:07:25.394919687 -0400 -@@ -108,7 +108,7 @@ - if self._alock is None: - self._init_async_lock() - -- with await self._alock: -+ async with self._alock: - # We want to ensure that no more than max_calls were run in the allowed - # period. For this, we store the last timestamps of each call and run - # the rate verification upon each __enter__ call. -@@ -124,7 +124,8 @@ - """) - exec(aenter_code) - -- __aexit__ = asyncio.coroutine(__exit__) -+ async def __aexit__(self, exc_type, exc_value, traceback): -+ return super(AsyncRateLimiter, self).__exit__(exc_type, exc_value, traceback) - - @property - def _timespan(self): diff --git a/python-ratelimiter.spec b/python-ratelimiter.spec deleted file mode 100644 index 4368636..0000000 --- a/python-ratelimiter.spec +++ /dev/null @@ -1,106 +0,0 @@ -%bcond_without tests - -%global pypi_name ratelimiter -%global extraver post0 - -%global _description %{expand: -This package provides the ratelimiter module, which ensures that an operation -will not be executed more than a given number of times on a given period. This -can prove useful when working with third parties APIs which require for example -a maximum of 10 requests per second.} - -Name: python-%{pypi_name} -Version: 1.2.0 -Release: 12.%{extraver}%{?dist} -Summary: Python module providing rate limiting - -License: ASL 2.0 -URL: https://pypi.python.org/pypi/%{pypi_name} -Source0: %{pypi_source %{pypi_name} %{version}.%{extraver}} -BuildArch: noarch - -# Fix warning that coroutine decorator is deprecated since Python 3.8 -# https://github.com/RazerM/ratelimiter/issues/10 -# -# async w/ python 3.8 compatibility sans warnings #11 -# https://github.com/RazerM/ratelimiter/pull/11 -# (only the fix, not the version number and metadata adjustments) -# -# Fixes Python 3.11 compatibility. -Patch0: pr-11-minimal.patch -# Fix pytest 7.x compatibility -# https://github.com/RazerM/ratelimiter/pull/13 -Patch1: https://github.com/RazerM/ratelimiter/pull/13.patch - -%description %_description - -%package -n python3-%{pypi_name} -Summary: Python module providing rate limiting -BuildRequires: python3-devel -BuildRequires: %{py3_dist setuptools} -BuildRequires: %{py3_dist pytest} - -%{?python_provide:%python_provide python3-%{pypi_name}} - -%description -n python3-%{pypi_name} %_description - -%prep -%autosetup -n %{pypi_name}-%{version}.%{extraver} -p1 - -rm -rf %{pypi_name}.egg-info -find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';' - -%build -%py3_build - -%install -%py3_install - -%check -%if %{with tests} -PYTHONPATH="%{buildroot}/%{python3_sitelib}/" pytest-%{python3_version} -%endif - -%files -n python3-%{pypi_name} -%license LICENSE -%doc README.rst -%{python3_sitelib}/%{pypi_name}-%{version}.%{extraver}-py%{python3_version}.egg-info -%{python3_sitelib}/%{pypi_name}.py -%{python3_sitelib}/__pycache__/* - -%changelog -* Fri Jul 21 2023 Fedora Release Engineering - 1.2.0-12.post0 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Tue Jun 13 2023 Python Maint - 1.2.0-11.post0 -- Rebuilt for Python 3.12 - -* Fri Jan 20 2023 Fedora Release Engineering - 1.2.0-10.post0 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Fri Jul 22 2022 Fedora Release Engineering - 1.2.0-9.post0 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jun 13 2022 Python Maint - 1.2.0-8.post0 -- Rebuilt for Python 3.11 - -* Wed Mar 16 2022 Benjamin A. Beasley - 1.2.0-7.post0 -- Fix pytest 7.x compatibility (fix RHBZ#2059969) - -* Fri Jan 21 2022 Fedora Release Engineering - 1.2.0-6.post0 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Wed Nov 03 2021 Benjamin A. Beasley - 1.2.0-5.post0 -- Fix Python 3.11 compatibility (close RHBZ#2019853) - -* Fri Jul 23 2021 Fedora Release Engineering - 1.2.0-4.post0 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint - 1.2.0-3.post0 -- Rebuilt for Python 3.10 - -* Wed Jan 27 2021 Fedora Release Engineering - 1.2.0-2.post0 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Mon Aug 24 2020 Aniket Pradhan - 1.2.0-1.post1 -- Initial build diff --git a/sources b/sources deleted file mode 100644 index ac38b23..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (ratelimiter-1.2.0.post0.tar.gz) = f6553be973832f8b2fea950a9f8fe4a55d80636457bc610cc479860a201e28c0fec9997fdc0b6b826e1bc1a40446b75f3059146c6d107e013a6521b0ad55da6b