From 0b033a16733356cc67fac87b4bb6a01d42bf7e2af539a3ca86a0523a819af67f Mon Sep 17 00:00:00 2001 From: Alexandre Rogoski Date: Wed, 5 Dec 2012 05:07:13 +0000 Subject: [PATCH 1/3] - Update to 2.5.3: - Pidbox: Fixed compatibility with Python 2.6 - Aditional changes from 2.5.2: - [Redis] Fixed connection leak and added a new 'max_connections' transport option. - Aditional changes from 2.5.1 - Fixed bug where return value of Queue.as_dict could not be serialized with JSON (Issue #177). - Aditional changes from 2.5.0 - py-amqp is now the new default transport, replacing amqplib. The new py-amqp library is a fork of amqplib started with the following goals: - Uses AMQP 0.9.1 instead of 0.8 - Support for heartbeats (Issue #79 + Issue #131) - Automatically revives channels on channel errors. - Support for all RabbitMQ extensions - Consumer Cancel Notifications (Issue #131) - Publisher Confirms (Issue #131). - Exchange-to-exchange bindings: exchange_bind / exchange_unbind. - API compatible with librabbitmq so that it can be used as a pure-python replacement in environments where rabbitmq-c cannot be compiled. librabbitmq will be updated to support all the same features as py-amqp. - Support for using multiple connection URL's for failover. The first argument to kombu.Connection can now be a list of connection URLs: Connection(['amqp://foo', 'amqp://bar']) or it can be a single string argument with several URLs separated by semicolon: OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kombu?expand=0&rev=60 --- kombu-2.4.10.tar.gz | 3 -- kombu-2.5.3.tar.gz | 3 ++ python-kombu.changes | 98 ++++++++++++++++++++++++++++++++++++++++++++ python-kombu.spec | 4 +- 4 files changed, 103 insertions(+), 5 deletions(-) delete mode 100644 kombu-2.4.10.tar.gz create mode 100644 kombu-2.5.3.tar.gz diff --git a/kombu-2.4.10.tar.gz b/kombu-2.4.10.tar.gz deleted file mode 100644 index 21e2387..0000000 --- a/kombu-2.4.10.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:211cb68b133578338aac0990d31d9255ed54b5f1861fb2cd54c1bb28bdbc8a6e -size 291204 diff --git a/kombu-2.5.3.tar.gz b/kombu-2.5.3.tar.gz new file mode 100644 index 0000000..69ea38f --- /dev/null +++ b/kombu-2.5.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f0708417777f573691eb793f401b444281dbe0ae9dc6a9a5784bf01e9471ad1 +size 300525 diff --git a/python-kombu.changes b/python-kombu.changes index 75c87eb..57f7292 100644 --- a/python-kombu.changes +++ b/python-kombu.changes @@ -1,3 +1,101 @@ +------------------------------------------------------------------- +Wed Dec 5 04:48:02 UTC 2012 - alexandre@exatati.com.br + +- Update to 2.5.3: + - Pidbox: Fixed compatibility with Python 2.6 +- Aditional changes from 2.5.2: + - [Redis] Fixed connection leak and added a new 'max_connections' + transport option. +- Aditional changes from 2.5.1 + - Fixed bug where return value of Queue.as_dict could not be + serialized with JSON (Issue #177). +- Aditional changes from 2.5.0 + - py-amqp is now the new default transport, replacing amqplib. + The new py-amqp library is a fork of amqplib started with the + following goals: + - Uses AMQP 0.9.1 instead of 0.8 + - Support for heartbeats (Issue #79 + Issue #131) + - Automatically revives channels on channel errors. + - Support for all RabbitMQ extensions + - Consumer Cancel Notifications (Issue #131) + - Publisher Confirms (Issue #131). + - Exchange-to-exchange bindings: exchange_bind / + exchange_unbind. + - API compatible with librabbitmq so that it can be used + as a pure-python replacement in environments where rabbitmq-c + cannot be compiled. librabbitmq will be updated to support + all the same features as py-amqp. + - Support for using multiple connection URL's for failover. + The first argument to kombu.Connection can now be a list of connection + URLs: + + Connection(['amqp://foo', 'amqp://bar']) + + or it can be a single string argument with several URLs separated by + semicolon: + + Connection('amqp://foo;amqp://bar') + + There is also a new keyword argument failover_strategy that defines + how kombu.Connection.ensure_connection, kombu.Connection.ensure, + kombu.Connection.autoretry will reconnect in the event of connection + failures. + + The default reconnection strategy is round-robin, which will simply + cycle through the list forever, and there's also a shuffle strategy + that will select random hosts from the list. Custom strategies can also + be used, in that case the argument must be a generator yielding the URL + to connect to. + + Example: + Connection('amqp://foo;amqp://bar') + - Now supports PyDev, PyCharm, pylint and other static code analysis tools. + - kombu.Queue now supports multiple bindings. + You can now have multiple bindings in the same queue by having + the second argument be a list: + + from kombu import binding, Queue + + Queue('name', [ + binding(Exchange('E1'), routing_key='foo'), + binding(Exchange('E1'), routing_key='bar'), + binding(Exchange('E2'), routing_key='baz'), + ]) + + To enable this, helper methods have been added: + + - kombu.Queue.bind_to + - kombu.Queue.unbind_from + + Contributed by Rumyana Neykova. + - Custom serializers can now be registered using Setuptools entry-points. + See serialization-entrypoints. + - New kombu.common.QoS class used as a thread-safe way to manage + changes to a consumer or channels prefetch_count. + This was previously an internal class used in Celery now moved to + the kombu.common module. + - Consumer now supports a on_message callback that can be used to process + raw messages (not decoded). + Other callbacks specified using the callbacks argument, and the + receive` method will be not be called when a on message callback is + present. + - New utility kombu.common.ignore_errors ignores connection and + channel errors. + Must only be used for cleanup actions at shutdown or on connection loss. + - Support for exchange-to-exchange bindings. + The kombu.Exchange entity gained bind_to + and unbind_from methods: + + e1 = Exchange('A')(connection) + e2 = Exchange('B')(connection) + + e2.bind_to(e1, routing_key='rkey', arguments=None) + e2.unbind_from(e1, routing_key='rkey', arguments=None) + + This is currently only supported by the pyamqp transport. + + Contributed by Rumyana Neykova. + ------------------------------------------------------------------- Sat Dec 1 21:56:00 UTC 2012 - toddrme2178@gmail.com diff --git a/python-kombu.spec b/python-kombu.spec index 6934862..011fbb6 100644 --- a/python-kombu.spec +++ b/python-kombu.spec @@ -16,7 +16,7 @@ # Name: python-kombu -Version: 2.4.10 +Version: 2.5.3 Release: 0 License: BSD-2-Clause Summary: AMQP Messaging Framework for Python @@ -33,7 +33,7 @@ BuildRequires: python-nose-cover3 BuildRequires: python-simplejson BuildRequires: python-unittest2 BuildRequires: python-PyYAML -Requires: python-amqplib +Requires: python-amqp Requires: python-anyjson Suggests: couchdb Suggests: mongodb From 633d52244b67f1c09be5b269ab2a99a2b888e2bc1b1c734b72191bda6f52bb68 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 6 Dec 2012 12:52:36 +0000 Subject: [PATCH 2/3] - Add requirements on Python-2.6 compat modules Python-2.6 for SLES: + python-importlib and python-ordereddict OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kombu?expand=0&rev=61 --- python-kombu.changes | 6 ++++++ python-kombu.spec | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-kombu.changes b/python-kombu.changes index 57f7292..d875efe 100644 --- a/python-kombu.changes +++ b/python-kombu.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 6 12:50:10 UTC 2012 - saschpe@suse.de + +- Add requirements on Python-2.6 compat modules Python-2.6 for SLES: + + python-importlib and python-ordereddict + ------------------------------------------------------------------- Wed Dec 5 04:48:02 UTC 2012 - alexandre@exatati.com.br diff --git a/python-kombu.spec b/python-kombu.spec index 011fbb6..9fdfac0 100644 --- a/python-kombu.spec +++ b/python-kombu.spec @@ -35,14 +35,16 @@ BuildRequires: python-unittest2 BuildRequires: python-PyYAML Requires: python-amqp Requires: python-anyjson +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +Requires: python-importlib +Requires: python-ordereddict +%endiff Suggests: couchdb Suggests: mongodb Suggests: rabbitmq-server BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -BuildRequires: python-importlib -%py_requires %else BuildArch: noarch %endif From 6b8ed1f09f9ddadff2c551a31cbae660059e56de97e4a0ad0bcdf1d46322ae37 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 6 Dec 2012 13:33:46 +0000 Subject: [PATCH 3/3] Fixup last commit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kombu?expand=0&rev=62 --- python-kombu.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-kombu.spec b/python-kombu.spec index 9fdfac0..643f59f 100644 --- a/python-kombu.spec +++ b/python-kombu.spec @@ -38,7 +38,7 @@ Requires: python-anyjson %if 0%{?suse_version} && 0%{?suse_version} <= 1110 Requires: python-importlib Requires: python-ordereddict -%endiff +%endif Suggests: couchdb Suggests: mongodb Suggests: rabbitmq-server