summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-dramatiq-abort.spec229
-rw-r--r--sources1
3 files changed, 231 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8a4318f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dramatiq-abort-1.1.0.tar.gz
diff --git a/python-dramatiq-abort.spec b/python-dramatiq-abort.spec
new file mode 100644
index 0000000..fc0b44b
--- /dev/null
+++ b/python-dramatiq-abort.spec
@@ -0,0 +1,229 @@
+%global _empty_manifest_terminate_build 0
+Name: python-dramatiq-abort
+Version: 1.1.0
+Release: 1
+Summary: Dramatiq middleware to abort tasks.
+License: GNU Lesser General Public License v3 or later (LGPLv3+)
+URL: https://github.com/flared/dramatiq-abort
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5d/bd/4bd733befa03497f8646cda8d6f50426a10b68ec5b73760dc8e23032d483/dramatiq-abort-1.1.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-dramatiq
+Requires: python3-gevent
+Requires: python3-redis
+Requires: python3-gevent
+Requires: python3-redis
+Requires: python3-flake8
+Requires: python3-flake8-bugbear
+Requires: python3-flake8-quotes
+Requires: python3-isort
+Requires: python3-mypy
+Requires: python3-types-redis
+Requires: python3-black
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-tox
+Requires: python3-sphinx
+Requires: python3-sphinx-autodoc-typehints
+Requires: python3-build
+Requires: python3-wheel
+Requires: python3-twine
+Requires: python3-gevent
+Requires: python3-redis
+
+%description
+# dramatiq-abort
+
+Add the aborting feature to [dramatiq] through a simple middleware with flexible backend.
+
+Current version support aborting using the [Redis] store.
+
+[![Build Status](https://github.com/Flared/dramatiq-abort/workflows/Push/badge.svg)](https://github.com/Flared/dramatiq-abort/actions?query=workflow%3A%22Push%22)
+[![PyPI version](https://badge.fury.io/py/dramatiq-abort.svg)](https://badge.fury.io/py/dramatiq-abort)
+[![Documentation](https://img.shields.io/badge/doc-latest-brightgreen.svg)](http://flared.github.io/dramatiq-abort)
+
+## Installation
+
+Since the only available backend right now is [Redis]:
+
+ pip install dramatiq_abort[redis]
+
+**Documentation**: http://flared.github.io/dramatiq-abort
+
+
+## Quickstart
+
+```python
+
+from dramatiq import get_broker
+from dramatiq_abort import Abortable, backends, abort
+
+abortable = Abortable(backend=backends.RedisBackend())
+get_broker().add_middleware(abortable)
+
+# ...
+
+import dramatiq
+
+@dramatiq.actor
+def my_long_running_task(): ...
+
+message = my_long_running_task.send()
+
+# Now abort the message.
+abort(message.message_id)
+```
+
+[Redis]: https://redis.io
+[dramatiq]: https://dramatiq.io/
+
+
+
+%package -n python3-dramatiq-abort
+Summary: Dramatiq middleware to abort tasks.
+Provides: python-dramatiq-abort
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-dramatiq-abort
+# dramatiq-abort
+
+Add the aborting feature to [dramatiq] through a simple middleware with flexible backend.
+
+Current version support aborting using the [Redis] store.
+
+[![Build Status](https://github.com/Flared/dramatiq-abort/workflows/Push/badge.svg)](https://github.com/Flared/dramatiq-abort/actions?query=workflow%3A%22Push%22)
+[![PyPI version](https://badge.fury.io/py/dramatiq-abort.svg)](https://badge.fury.io/py/dramatiq-abort)
+[![Documentation](https://img.shields.io/badge/doc-latest-brightgreen.svg)](http://flared.github.io/dramatiq-abort)
+
+## Installation
+
+Since the only available backend right now is [Redis]:
+
+ pip install dramatiq_abort[redis]
+
+**Documentation**: http://flared.github.io/dramatiq-abort
+
+
+## Quickstart
+
+```python
+
+from dramatiq import get_broker
+from dramatiq_abort import Abortable, backends, abort
+
+abortable = Abortable(backend=backends.RedisBackend())
+get_broker().add_middleware(abortable)
+
+# ...
+
+import dramatiq
+
+@dramatiq.actor
+def my_long_running_task(): ...
+
+message = my_long_running_task.send()
+
+# Now abort the message.
+abort(message.message_id)
+```
+
+[Redis]: https://redis.io
+[dramatiq]: https://dramatiq.io/
+
+
+
+%package help
+Summary: Development documents and examples for dramatiq-abort
+Provides: python3-dramatiq-abort-doc
+%description help
+# dramatiq-abort
+
+Add the aborting feature to [dramatiq] through a simple middleware with flexible backend.
+
+Current version support aborting using the [Redis] store.
+
+[![Build Status](https://github.com/Flared/dramatiq-abort/workflows/Push/badge.svg)](https://github.com/Flared/dramatiq-abort/actions?query=workflow%3A%22Push%22)
+[![PyPI version](https://badge.fury.io/py/dramatiq-abort.svg)](https://badge.fury.io/py/dramatiq-abort)
+[![Documentation](https://img.shields.io/badge/doc-latest-brightgreen.svg)](http://flared.github.io/dramatiq-abort)
+
+## Installation
+
+Since the only available backend right now is [Redis]:
+
+ pip install dramatiq_abort[redis]
+
+**Documentation**: http://flared.github.io/dramatiq-abort
+
+
+## Quickstart
+
+```python
+
+from dramatiq import get_broker
+from dramatiq_abort import Abortable, backends, abort
+
+abortable = Abortable(backend=backends.RedisBackend())
+get_broker().add_middleware(abortable)
+
+# ...
+
+import dramatiq
+
+@dramatiq.actor
+def my_long_running_task(): ...
+
+message = my_long_running_task.send()
+
+# Now abort the message.
+abort(message.message_id)
+```
+
+[Redis]: https://redis.io
+[dramatiq]: https://dramatiq.io/
+
+
+
+%prep
+%autosetup -n dramatiq-abort-1.1.0
+
+%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-dramatiq-abort -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8d03294
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+36004a3fd681b512a70487727fb412b2 dramatiq-abort-1.1.0.tar.gz