Hello community,

here is the log from the commit of package python-kombu for openSUSE:Factory 
checked in at 2014-09-19 13:56:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-kombu (Old)
 and      /work/SRC/openSUSE:Factory/.python-kombu.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-kombu"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-kombu/python-kombu.changes        
2014-08-16 15:38:11.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-kombu.new/python-kombu.changes   
2014-09-19 13:56:15.000000000 +0200
@@ -1,0 +2,20 @@
+Mon Sep 15 13:47:41 UTC 2014 - [email protected]
+
+- update to version 3.0.23:
+  * Django: Fixed bug in the Django 1.7 compatibility improvements related
+    to autocommit handling.
+  * Django: The Django transport models would not be created on syncdb
+    after app label rename (Issue #406).
+  * kombu.async: Min. delay between waiting for timer was always increased to
+    one second.
+  * Fixed bug in itermessages where message is received after the with
+    statement exits the block.
+  * Connection.autoretry: Now works with functions missing wrapped attributes
+    (``__module__``, ``__name__``, ``__doc__``).  Fixes #392.
+  * Django: Now sets custom app label for ``kombu.transport.django`` to work
+    with recent changes in Django 1.7.
+  * SimpleQueue removed messages from the wrong end of buffer (Issue #380).
+  * Tests: Now using ``unittest.mock`` if available (Issue #381).
+- adjust python-amqp Require
+
+-------------------------------------------------------------------

Old:
----
  kombu-3.0.21.tar.gz

New:
----
  kombu-3.0.23.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-kombu.spec ++++++
--- /var/tmp/diff_new_pack.SE1x1y/_old  2014-09-19 13:56:16.000000000 +0200
+++ /var/tmp/diff_new_pack.SE1x1y/_new  2014-09-19 13:56:16.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-kombu
-Version:        3.0.21
+Version:        3.0.23
 Release:        0
 Summary:        AMQP Messaging Framework for Python
 License:        BSD-3-Clause
@@ -42,7 +42,7 @@
 Requires:       python-importlib
 Requires:       python-ordereddict
 %endif
-Requires:       python-amqp >= 1.4.5
+Requires:       python-amqp >= 1.4.6
 Requires:       python-anyjson >= 0.3.3
 Suggests:       couchdb
 Suggests:       mongodb

++++++ kombu-3.0.21.tar.gz -> kombu-3.0.23.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/AUTHORS new/kombu-3.0.23/AUTHORS
--- old/kombu-3.0.21/AUTHORS    2014-07-07 15:17:34.000000000 +0200
+++ new/kombu-3.0.23/AUTHORS    2014-09-11 15:26:31.000000000 +0200
@@ -81,6 +81,7 @@
 Petar Radosevic <[email protected]>
 Peter Hoffmann <[email protected]>
 Pierre Riteau <[email protected]>
+Radek Czajka <[email protected]>
 Rafael Duran Castaneda <[email protected]>
 Rafal Malinowski <[email protected]>
 Ralf Nyren <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/Changelog new/kombu-3.0.23/Changelog
--- old/kombu-3.0.21/Changelog  2014-07-07 17:11:56.000000000 +0200
+++ new/kombu-3.0.23/Changelog  2014-09-15 00:48:01.000000000 +0200
@@ -4,6 +4,48 @@
  Change history
 ================
 
+.. _version-3.0.23:
+
+3.0.23
+======
+:release-date: 2014-09-14 10:45 P.M UTC
+:release-by: Ask Solem
+
+- Django: Fixed bug in the Django 1.7 compatibility improvements related
+  to autocommit handling.
+
+    Contributed by Radek Czajka.
+
+- Django: The Django transport models would not be created on syncdb
+  after app label rename (Issue #406).
+
+.. _version-3.0.22:
+
+3.0.22
+======
+:release-date: 2014-09-04 03:00 P.M UTC
+:release-by: Ask Solem
+
+- kombu.async: Min. delay between waiting for timer was always increased to
+  one second.
+
+- Fixed bug in itermessages where message is received after the with
+  statement exits the block.
+
+    Fixed by Rumyana Neykova
+
+- Connection.autoretry: Now works with functions missing wrapped attributes
+    (``__module__``, ``__name__``, ``__doc__``).  Fixes #392.
+
+    Contributed by johtso.
+
+- Django: Now sets custom app label for ``kombu.transport.django`` to work
+  with recent changes in Django 1.7.
+
+- SimpleQueue removed messages from the wrong end of buffer (Issue #380).
+
+- Tests: Now using ``unittest.mock`` if available (Issue #381).
+
 .. _version-3.0.21:
 
 3.0.21
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/PKG-INFO new/kombu-3.0.23/PKG-INFO
--- old/kombu-3.0.21/PKG-INFO   2014-07-07 17:12:53.000000000 +0200
+++ new/kombu-3.0.23/PKG-INFO   2014-09-15 00:51:36.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: kombu
-Version: 3.0.21
+Version: 3.0.23
 Summary: Messaging library for Python
 Home-page: http://kombu.readthedocs.org
 Author: Ask Solem
@@ -12,7 +12,7 @@
          kombu - Messaging library for Python
         ========================================
         
-        :Version: 3.0.21
+        :Version: 3.0.23
         
         `Kombu` is a messaging library for Python.
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/README.rst new/kombu-3.0.23/README.rst
--- old/kombu-3.0.21/README.rst 2014-07-07 16:57:16.000000000 +0200
+++ new/kombu-3.0.23/README.rst 2014-09-11 15:26:49.000000000 +0200
@@ -4,7 +4,7 @@
  kombu - Messaging library for Python
 ========================================
 
-:Version: 3.0.21
+:Version: 3.0.23
 
 `Kombu` is a messaging library for Python.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/docs/changelog.rst 
new/kombu-3.0.23/docs/changelog.rst
--- old/kombu-3.0.21/docs/changelog.rst 2014-07-07 17:11:56.000000000 +0200
+++ new/kombu-3.0.23/docs/changelog.rst 2014-09-15 00:48:01.000000000 +0200
@@ -4,6 +4,48 @@
  Change history
 ================
 
+.. _version-3.0.23:
+
+3.0.23
+======
+:release-date: 2014-09-14 10:45 P.M UTC
+:release-by: Ask Solem
+
+- Django: Fixed bug in the Django 1.7 compatibility improvements related
+  to autocommit handling.
+
+    Contributed by Radek Czajka.
+
+- Django: The Django transport models would not be created on syncdb
+  after app label rename (Issue #406).
+
+.. _version-3.0.22:
+
+3.0.22
+======
+:release-date: 2014-09-04 03:00 P.M UTC
+:release-by: Ask Solem
+
+- kombu.async: Min. delay between waiting for timer was always increased to
+  one second.
+
+- Fixed bug in itermessages where message is received after the with
+  statement exits the block.
+
+    Fixed by Rumyana Neykova
+
+- Connection.autoretry: Now works with functions missing wrapped attributes
+    (``__module__``, ``__name__``, ``__doc__``).  Fixes #392.
+
+    Contributed by johtso.
+
+- Django: Now sets custom app label for ``kombu.transport.django`` to work
+  with recent changes in Django 1.7.
+
+- SimpleQueue removed messages from the wrong end of buffer (Issue #380).
+
+- Tests: Now using ``unittest.mock`` if available (Issue #381).
+
 .. _version-3.0.21:
 
 3.0.21
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/docs/introduction.rst 
new/kombu-3.0.23/docs/introduction.rst
--- old/kombu-3.0.21/docs/introduction.rst      2014-07-07 16:57:16.000000000 
+0200
+++ new/kombu-3.0.23/docs/introduction.rst      2014-09-11 15:26:49.000000000 
+0200
@@ -4,7 +4,7 @@
  kombu - Messaging library for Python
 ========================================
 
-:Version: 3.0.21
+:Version: 3.0.23
 
 `Kombu` is a messaging library for Python.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu/__init__.py 
new/kombu-3.0.23/kombu/__init__.py
--- old/kombu-3.0.21/kombu/__init__.py  2014-07-07 16:57:13.000000000 +0200
+++ new/kombu-3.0.23/kombu/__init__.py  2014-09-15 00:48:08.000000000 +0200
@@ -7,7 +7,7 @@
     'version_info_t', ('major', 'minor', 'micro', 'releaselevel', 'serial'),
 )
 
-VERSION = version_info_t(3, 0, 21, '', '')
+VERSION = version_info_t(3, 0, 23, '', '')
 __version__ = '{0.major}.{0.minor}.{0.micro}{0.releaselevel}'.format(VERSION)
 __author__ = 'Ask Solem'
 __contact__ = '[email protected]'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu/async/hub.py 
new/kombu-3.0.23/kombu/async/hub.py
--- old/kombu-3.0.21/kombu/async/hub.py 2014-07-07 16:56:44.000000000 +0200
+++ new/kombu-3.0.23/kombu/async/hub.py 2014-09-11 15:26:31.000000000 +0200
@@ -144,7 +144,7 @@
                     logger.error('Error in timer: %r', exc, exc_info=1)
                 except Exception as exc:
                     logger.error('Error in timer: %r', exc, exc_info=1)
-        return min(max(delay or 0, min_delay), max_delay)
+        return min(delay or min_delay, max_delay)
 
     def add(self, fd, callback, flags, args=(), consolidate=False):
         fd = fileno(fd)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu/common.py 
new/kombu-3.0.23/kombu/common.py
--- old/kombu-3.0.21/kombu/common.py    2014-07-04 18:46:18.000000000 +0200
+++ new/kombu-3.0.23/kombu/common.py    2014-09-11 15:26:31.000000000 +0200
@@ -148,8 +148,10 @@
 
 def itermessages(conn, channel, queue, limit=1, timeout=None,
                  callbacks=None, **kwargs):
-    return drain_consumer(conn.Consumer(channel, queues=[queue], **kwargs),
-                          limit=limit, timeout=timeout, callbacks=callbacks)
+    return drain_consumer(
+        conn.Consumer(queues=[queue], channel=channel, **kwargs),
+        limit=limit, timeout=timeout, callbacks=callbacks,
+    )
 
 
 def eventloop(conn, limit=None, timeout=None, ignore_timeouts=False):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu/connection.py 
new/kombu-3.0.23/kombu/connection.py
--- old/kombu-3.0.21/kombu/connection.py        2014-07-07 16:56:44.000000000 
+0200
+++ new/kombu-3.0.23/kombu/connection.py        2014-09-11 15:26:31.000000000 
+0200
@@ -495,9 +495,9 @@
         create_channel = self.channel
 
         class Revival(object):
-            __name__ = fun.__name__
-            __module__ = fun.__module__
-            __doc__ = fun.__doc__
+            __name__ = getattr(fun, '__name__', None)
+            __module__ = getattr(fun, '__module__', None)
+            __doc__ = getattr(fun, '__doc__', None)
 
             def revive(self, channel):
                 channels[0] = channel
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu/simple.py 
new/kombu-3.0.23/kombu/simple.py
--- old/kombu-3.0.21/kombu/simple.py    2014-02-13 18:29:35.000000000 +0100
+++ new/kombu-3.0.23/kombu/simple.py    2014-08-20 18:00:41.000000000 +0200
@@ -47,7 +47,7 @@
         while True:
             time_start = monotonic()
             if self.buffer:
-                return self.buffer.pop()
+                return self.buffer.popleft()
             try:
                 self.channel.connection.client.drain_events(
                     timeout=timeout and remaining)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu/tests/case.py 
new/kombu-3.0.23/kombu/tests/case.py
--- old/kombu-3.0.21/kombu/tests/case.py        2014-07-07 16:56:44.000000000 
+0200
+++ new/kombu-3.0.23/kombu/tests/case.py        2014-09-11 15:26:31.000000000 
+0200
@@ -6,7 +6,10 @@
 
 from functools import wraps
 
-import mock
+try:
+    from unittest import mock
+except ImportError:
+    import mock  # noqa
 
 from nose import SkipTest
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu/tests/test_connection.py 
new/kombu-3.0.23/kombu/tests/test_connection.py
--- old/kombu-3.0.21/kombu/tests/test_connection.py     2014-07-07 
16:56:44.000000000 +0200
+++ new/kombu-3.0.23/kombu/tests/test_connection.py     2014-09-11 
15:26:31.000000000 +0200
@@ -418,7 +418,6 @@
 
     def test_autoretry(self):
         myfun = Mock()
-        myfun.__name__ = 'test_autoretry'
 
         self.conn.transport.connection_errors = (KeyError, )
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu/transport/django/__init__.py 
new/kombu-3.0.23/kombu/transport/django/__init__.py
--- old/kombu-3.0.21/kombu/transport/django/__init__.py 2014-07-07 
16:56:44.000000000 +0200
+++ new/kombu-3.0.23/kombu/transport/django/__init__.py 2014-09-11 
15:26:31.000000000 +0200
@@ -12,6 +12,17 @@
 
 from .models import Queue
 
+try:
+    from django.apps import AppConfig
+except ImportError:  # pragma: no cover
+    pass
+else:
+    class KombuAppConfig(AppConfig):
+        name = 'kombu.transport.django'
+        label = name.replace('.', '_')
+        verbose_name = 'Message queue'
+    default_app_config = 'kombu.transport.django.KombuAppConfig'
+
 VERSION = (1, 0, 0)
 __version__ = '.'.join(map(str, VERSION))
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu/transport/django/managers.py 
new/kombu-3.0.23/kombu/transport/django/managers.py
--- old/kombu-3.0.21/kombu/transport/django/managers.py 2014-01-22 
21:00:00.000000000 +0100
+++ new/kombu-3.0.23/kombu/transport/django/managers.py 2014-09-11 
15:26:31.000000000 +0200
@@ -1,5 +1,7 @@
 from __future__ import absolute_import
 
+from functools import wraps
+
 from django.db import transaction, connection, models
 try:
     from django.db import connections, router
@@ -7,6 +9,19 @@
     connections = router = None  # noqa
 
 
+try:
+    transaction.atomic
+except AttributeError:
+    commit_on_success = transaction.commit_on_success
+else:
+    def commit_on_success(fun):
+        @wraps(fun)
+        def _commit(*args, **kwargs):
+            with transaction.atomic():
+                return fun(*args, **kwargs)
+        return _commit
+
+
 class QueueManager(models.Manager):
 
     def publish(self, queue_name, payload):
@@ -47,7 +62,7 @@
     _messages_received = [0]
     cleanup_every = 10
 
-    @transaction.commit_manually
+    @commit_on_success
     def pop(self):
         try:
             resultset = select_for_update(
@@ -60,25 +75,17 @@
             recv[0] += 1
             if not recv[0] % self.cleanup_every:
                 self.cleanup()
-            transaction.commit()
             return result.payload
         except self.model.DoesNotExist:
-            transaction.commit()
-        except:
-            transaction.rollback()
+            pass
 
     def cleanup(self):
         cursor = self.connection_for_write().cursor()
-        try:
-            cursor.execute(
-                'DELETE FROM %s WHERE visible=%%s' % (
-                    self.model._meta.db_table, ),
-                (False, )
-            )
-        except:
-            transaction.rollback_unless_managed()
-        else:
-            transaction.commit_unless_managed()
+        cursor.execute(
+            'DELETE FROM %s WHERE visible=%%s' % (
+                self.model._meta.db_table, ),
+            (False, )
+        )
 
     def connection_for_write(self):
         if connections:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu/transport/django/models.py 
new/kombu-3.0.23/kombu/transport/django/models.py
--- old/kombu-3.0.21/kombu/transport/django/models.py   2014-01-22 
21:00:00.000000000 +0100
+++ new/kombu-3.0.23/kombu/transport/django/models.py   2014-09-11 
15:26:31.000000000 +0200
@@ -12,6 +12,7 @@
     objects = QueueManager()
 
     class Meta:
+        app_label = 'kombu_transport_django'
         db_table = 'djkombu_queue'
         verbose_name = _('queue')
         verbose_name_plural = _('queues')
@@ -27,6 +28,7 @@
     objects = MessageManager()
 
     class Meta:
+        app_label = 'kombu_transport_django'
         db_table = 'djkombu_message'
         verbose_name = _('message')
         verbose_name_plural = _('messages')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu/transport/librabbitmq.py 
new/kombu-3.0.23/kombu/transport/librabbitmq.py
--- old/kombu-3.0.21/kombu/transport/librabbitmq.py     2014-07-07 
16:56:44.000000000 +0200
+++ new/kombu-3.0.23/kombu/transport/librabbitmq.py     2014-09-11 
15:26:31.000000000 +0200
@@ -13,15 +13,8 @@
 import socket
 import warnings
 
-try:
-    import librabbitmq as amqp
-    from librabbitmq import ChannelError, ConnectionError
-except ImportError:  # pragma: no cover
-    try:
-        import pylibrabbitmq as amqp                             # noqa
-        from pylibrabbitmq import ChannelError, ConnectionError  # noqa
-    except ImportError:
-        raise ImportError('No module named librabbitmq')
+import librabbitmq as amqp
+from librabbitmq import ChannelError, ConnectionError
 
 from kombu.five import items, values
 from kombu.utils.amq_manager import get_manager
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu.egg-info/PKG-INFO 
new/kombu-3.0.23/kombu.egg-info/PKG-INFO
--- old/kombu-3.0.21/kombu.egg-info/PKG-INFO    2014-07-07 17:12:49.000000000 
+0200
+++ new/kombu-3.0.23/kombu.egg-info/PKG-INFO    2014-09-15 00:51:36.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: kombu
-Version: 3.0.21
+Version: 3.0.23
 Summary: Messaging library for Python
 Home-page: http://kombu.readthedocs.org
 Author: Ask Solem
@@ -12,7 +12,7 @@
          kombu - Messaging library for Python
         ========================================
         
-        :Version: 3.0.21
+        :Version: 3.0.23
         
         `Kombu` is a messaging library for Python.
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/kombu.egg-info/requires.txt 
new/kombu-3.0.23/kombu.egg-info/requires.txt
--- old/kombu-3.0.21/kombu.egg-info/requires.txt        2014-07-07 
17:12:49.000000000 +0200
+++ new/kombu-3.0.23/kombu.egg-info/requires.txt        2014-09-15 
00:51:36.000000000 +0200
@@ -1,5 +1,5 @@
 anyjson>=0.3.3
-amqp>=1.4.5,<2.0
+amqp>=1.4.6,<2.0
 
 [sqlalchemy]
 sqlalchemy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/requirements/default.txt 
new/kombu-3.0.23/requirements/default.txt
--- old/kombu-3.0.21/requirements/default.txt   2014-07-07 16:56:44.000000000 
+0200
+++ new/kombu-3.0.23/requirements/default.txt   2014-09-11 15:26:31.000000000 
+0200
@@ -1,2 +1,2 @@
 anyjson>=0.3.3
-amqp>=1.4.5,<2.0
+amqp>=1.4.6,<2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kombu-3.0.21/setup.cfg new/kombu-3.0.23/setup.cfg
--- old/kombu-3.0.21/setup.cfg  2014-07-07 17:12:53.000000000 +0200
+++ new/kombu-3.0.23/setup.cfg  2014-09-15 00:51:36.000000000 +0200
@@ -13,7 +13,7 @@
 
 [bdist_rpm]
 requires = anyjson >= 0.3.3
-       amqp >= 1.4.5
+       amqp >= 1.4.6
        importlib
        ordereddict
 

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to