diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 16:17:34 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 16:17:34 +0000 |
commit | 90c532e6171843507fc7e7075582f8ff39cbf32c (patch) | |
tree | f20529f35167d81d69bc7f26ddd9176a771b48eb | |
parent | f4c166e02c60452d075e60cb78a9524968efcac3 (diff) |
automatic import of python-ratelimitingfilter
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-ratelimitingfilter.spec | 108 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 110 insertions, 0 deletions
@@ -0,0 +1 @@ +/ratelimitingfilter-1.5.tar.gz diff --git a/python-ratelimitingfilter.spec b/python-ratelimitingfilter.spec new file mode 100644 index 0000000..2474a56 --- /dev/null +++ b/python-ratelimitingfilter.spec @@ -0,0 +1,108 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ratelimitingfilter +Version: 1.5 +Release: 1 +Summary: A rate limiting filter for the Python logging system +License: MIT +URL: https://github.com/wkeeling/ratelimitingfilter +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cc/c5/c5c8dfb0853ff099ff587b18c931b275f1c2f69ba152b1d01bee796f6dec/ratelimitingfilter-1.5.tar.gz +BuildArch: noarch + + +%description +The ``RateLimitingFilter`` is a filter for the Python logging system +that allows you to restrict the rate at which messages can pass through +your logging handlers. +The filter can be useful if you're using a handler such as Python's +``logging.handlers.SMTPHandler`` to send error notification emails. +Error notification emails provide a useful means of keeping an eye on +the health of a running system, but these emails have the potential to +overload a mailbox if they start arriving in quick succession due to +some kind of critical failure. +The ``RateLimitingFilter`` can help prevent mailbox overload by +throttling messages based on a configurable rate, whilst allowing for +periodic bursts of messages which can be a useful indicator that +something somewhere has broken. + +%package -n python3-ratelimitingfilter +Summary: A rate limiting filter for the Python logging system +Provides: python-ratelimitingfilter +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ratelimitingfilter +The ``RateLimitingFilter`` is a filter for the Python logging system +that allows you to restrict the rate at which messages can pass through +your logging handlers. +The filter can be useful if you're using a handler such as Python's +``logging.handlers.SMTPHandler`` to send error notification emails. +Error notification emails provide a useful means of keeping an eye on +the health of a running system, but these emails have the potential to +overload a mailbox if they start arriving in quick succession due to +some kind of critical failure. +The ``RateLimitingFilter`` can help prevent mailbox overload by +throttling messages based on a configurable rate, whilst allowing for +periodic bursts of messages which can be a useful indicator that +something somewhere has broken. + +%package help +Summary: Development documents and examples for ratelimitingfilter +Provides: python3-ratelimitingfilter-doc +%description help +The ``RateLimitingFilter`` is a filter for the Python logging system +that allows you to restrict the rate at which messages can pass through +your logging handlers. +The filter can be useful if you're using a handler such as Python's +``logging.handlers.SMTPHandler`` to send error notification emails. +Error notification emails provide a useful means of keeping an eye on +the health of a running system, but these emails have the potential to +overload a mailbox if they start arriving in quick succession due to +some kind of critical failure. +The ``RateLimitingFilter`` can help prevent mailbox overload by +throttling messages based on a configurable rate, whilst allowing for +periodic bursts of messages which can be a useful indicator that +something somewhere has broken. + +%prep +%autosetup -n ratelimitingfilter-1.5 + +%build +%py3_build + +%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 . + +%files -n python3-ratelimitingfilter -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5-1 +- Package Spec generated @@ -0,0 +1 @@ +566c38688246bf4c144f4e6d78736c95 ratelimitingfilter-1.5.tar.gz |