diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 09:54:12 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 09:54:12 +0000 |
commit | 45df435b61056a10a980be06995bd87ebed8fa30 (patch) | |
tree | fa2bb9dcc2511c4aedc24d39b46f14882661c592 /python-bunnymq.spec | |
parent | ad8e82ebc6c4d3d9a9b4123e735188782248699c (diff) |
automatic import of python-bunnymqopeneuler20.03
Diffstat (limited to 'python-bunnymq.spec')
-rw-r--r-- | python-bunnymq.spec | 247 |
1 files changed, 247 insertions, 0 deletions
diff --git a/python-bunnymq.spec b/python-bunnymq.spec new file mode 100644 index 0000000..93e3fee --- /dev/null +++ b/python-bunnymq.spec @@ -0,0 +1,247 @@ +%global _empty_manifest_terminate_build 0 +Name: python-bunnymq +Version: 0.0.15 +Release: 1 +Summary: Simple messaging with RabbitMQ and Python. +License: MIT License +URL: https://github.com/havefish/bunnymq +Source0: https://mirrors.aliyun.com/pypi/web/packages/22/47/c8242e4646965eaad745cb8a975a3ff595165de205f7d06f8e3e5ba9ca11/bunnymq-0.0.15.tar.gz +BuildArch: noarch + +Requires: python3-pika + +%description +# BunnyMQ + +[](https://travis-ci.com/havefish/bunnymq) +[](https://pypi.python.org/pypi/bunnymq/) +[](https://pypi.python.org/pypi/bunnymq/) + +Simple messaging with RabbitMQ and Python. + +Head over to the [tutorial](http://havefish.github.io/bunnymq/) to get started. + +This is a small library inspired by the Python standard library [queue](https://docs.python.org/3/library/queue.html) module and the [hotqueue](https://github.com/richardhenry/hotqueue) library. Primarily geared towards programmer happiness :slightly_smiling_face: + +Basic Usage: + +```python +>>> queue = Queue('test') + +>>> queue.put(1) +>>> queue.put('hello', priority=8) +>>> queue.put({'a': 1}) + +>>> queue.get() +'hello' +>>> queue.task_done() + +>>> queue.get() +1 +>>> queue.requeue() +``` + +Iterating over a queue indefinitely, waiting if nothing is available: + +```python +>>> for item in queue: +... print(item) +... queue.task_done() +``` + +## Features + +* Simple usage +* Automatic serialization and deserialization of Python objects +* Adding custom serializers or turning serialization off is trivial +* Automatic retry while publishing +* Automatic handling of connection failures while consuming +* Easy parallelization by starting multiple workers to share the load. + + +## Install + +``` +pip install bunnymq +``` + +## Requirements +* Python 3.6+ +* [RabbitMQ server](https://www.rabbitmq.com/) +* [Pika](https://pika.readthedocs.io/en/stable/) + + +%package -n python3-bunnymq +Summary: Simple messaging with RabbitMQ and Python. +Provides: python-bunnymq +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-bunnymq +# BunnyMQ + +[](https://travis-ci.com/havefish/bunnymq) +[](https://pypi.python.org/pypi/bunnymq/) +[](https://pypi.python.org/pypi/bunnymq/) + +Simple messaging with RabbitMQ and Python. + +Head over to the [tutorial](http://havefish.github.io/bunnymq/) to get started. + +This is a small library inspired by the Python standard library [queue](https://docs.python.org/3/library/queue.html) module and the [hotqueue](https://github.com/richardhenry/hotqueue) library. Primarily geared towards programmer happiness :slightly_smiling_face: + +Basic Usage: + +```python +>>> queue = Queue('test') + +>>> queue.put(1) +>>> queue.put('hello', priority=8) +>>> queue.put({'a': 1}) + +>>> queue.get() +'hello' +>>> queue.task_done() + +>>> queue.get() +1 +>>> queue.requeue() +``` + +Iterating over a queue indefinitely, waiting if nothing is available: + +```python +>>> for item in queue: +... print(item) +... queue.task_done() +``` + +## Features + +* Simple usage +* Automatic serialization and deserialization of Python objects +* Adding custom serializers or turning serialization off is trivial +* Automatic retry while publishing +* Automatic handling of connection failures while consuming +* Easy parallelization by starting multiple workers to share the load. + + +## Install + +``` +pip install bunnymq +``` + +## Requirements +* Python 3.6+ +* [RabbitMQ server](https://www.rabbitmq.com/) +* [Pika](https://pika.readthedocs.io/en/stable/) + + +%package help +Summary: Development documents and examples for bunnymq +Provides: python3-bunnymq-doc +%description help +# BunnyMQ + +[](https://travis-ci.com/havefish/bunnymq) +[](https://pypi.python.org/pypi/bunnymq/) +[](https://pypi.python.org/pypi/bunnymq/) + +Simple messaging with RabbitMQ and Python. + +Head over to the [tutorial](http://havefish.github.io/bunnymq/) to get started. + +This is a small library inspired by the Python standard library [queue](https://docs.python.org/3/library/queue.html) module and the [hotqueue](https://github.com/richardhenry/hotqueue) library. Primarily geared towards programmer happiness :slightly_smiling_face: + +Basic Usage: + +```python +>>> queue = Queue('test') + +>>> queue.put(1) +>>> queue.put('hello', priority=8) +>>> queue.put({'a': 1}) + +>>> queue.get() +'hello' +>>> queue.task_done() + +>>> queue.get() +1 +>>> queue.requeue() +``` + +Iterating over a queue indefinitely, waiting if nothing is available: + +```python +>>> for item in queue: +... print(item) +... queue.task_done() +``` + +## Features + +* Simple usage +* Automatic serialization and deserialization of Python objects +* Adding custom serializers or turning serialization off is trivial +* Automatic retry while publishing +* Automatic handling of connection failures while consuming +* Easy parallelization by starting multiple workers to share the load. + + +## Install + +``` +pip install bunnymq +``` + +## Requirements +* Python 3.6+ +* [RabbitMQ server](https://www.rabbitmq.com/) +* [Pika](https://pika.readthedocs.io/en/stable/) + + +%prep +%autosetup -n bunnymq-0.0.15 + +%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-bunnymq -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.15-1 +- Package Spec generated |