commit python3-amqp for openSUSE:Factory
Hello community,
here is the log from the commit of package python3-amqp for openSUSE:Factory checked in at 2016-02-01 19:57:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-amqp (Old)
and /work/SRC/openSUSE:Factory/.python3-amqp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-amqp"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-amqp/python3-amqp.changes 2015-11-02 12:55:53.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python3-amqp.new/python3-amqp.changes 2016-02-01 19:57:32.000000000 +0100
@@ -1,0 +2,14 @@
+Sat Jan 30 17:41:20 UTC 2016 - arun@gmx.de
+
+- specfile:
+ * update copyright year
+
+- update to version 1.4.9:
+ * Fixes compatibility with Linux/OS X instances where the "ctypes"
+ module does not exist. Fix contributed by Jared Lewis.
+
+- changes from version 1.4.8:
+ * "abstract_channel.wait" now accepts a float `timeout` parameter
+ expressed in seconds. Contributed by Goir.
+
+-------------------------------------------------------------------
Old:
----
amqp-1.4.7.tar.gz
New:
----
amqp-1.4.9.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-amqp.spec ++++++
--- /var/tmp/diff_new_pack.9RNxj7/_old 2016-02-01 19:57:33.000000000 +0100
+++ /var/tmp/diff_new_pack.9RNxj7/_new 2016-02-01 19:57:33.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python3-amqp
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: python3-amqp
-Version: 1.4.7
+Version: 1.4.9
Release: 0
Summary: Low-level AMQP client for Python (fork of amqplib)
License: LGPL-2.1
++++++ amqp-1.4.7.tar.gz -> amqp-1.4.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/amqp-1.4.7/Changelog new/amqp-1.4.9/Changelog
--- old/amqp-1.4.7/Changelog 2015-10-03 02:31:01.000000000 +0200
+++ new/amqp-1.4.9/Changelog 2016-01-09 02:56:03.000000000 +0100
@@ -5,6 +5,29 @@
The previous amqplib changelog is here:
http://code.google.com/p/py-amqplib/source/browse/CHANGES
+.. _version-1.4.9:
+
+1.4.9
+=====
+:release-date: 2016-01-08 5:50 PM PST
+
+- Fixes compatibility with Linux/OS X instances where the ``ctypes`` module
+ does not exist.
+
+ Fix contributed by Jared Lewis.
+
+.. _version-1.4.8:
+
+1.4.8
+=====
+:release-date: 2015-12-07 12:25 AM
+:release-by: Ask Solem
+
+- ``abstract_channel.wait`` now accepts a float `timeout` parameter expressed
+ in seconds
+
+ Contributed by Goir.
+
.. _version-1.4.7:
1.4.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/amqp-1.4.7/PKG-INFO new/amqp-1.4.9/PKG-INFO
--- old/amqp-1.4.7/PKG-INFO 2015-10-03 02:33:44.000000000 +0200
+++ new/amqp-1.4.9/PKG-INFO 2016-01-09 02:58:17.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: amqp
-Version: 1.4.7
+Version: 1.4.9
Summary: Low-level AMQP client for Python (fork of amqplib)
Home-page: http://github.com/celery/py-amqp
Author: Ask Solem
@@ -10,7 +10,7 @@
Python AMQP 0.9.1 client library
=====================================================================
- :Version: 1.4.7
+ :Version: 1.4.9
:Web: http://amqp.readthedocs.org/
:Download: http://pypi.python.org/pypi/amqp/
:Source: http://github.com/celery/py-amqp/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/amqp-1.4.7/README.rst new/amqp-1.4.9/README.rst
--- old/amqp-1.4.7/README.rst 2015-10-03 00:02:20.000000000 +0200
+++ new/amqp-1.4.9/README.rst 2016-01-09 02:56:48.000000000 +0100
@@ -2,7 +2,7 @@
Python AMQP 0.9.1 client library
=====================================================================
-:Version: 1.4.7
+:Version: 1.4.9
:Web: http://amqp.readthedocs.org/
:Download: http://pypi.python.org/pypi/amqp/
:Source: http://github.com/celery/py-amqp/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/amqp-1.4.7/amqp/__init__.py new/amqp-1.4.9/amqp/__init__.py
--- old/amqp-1.4.7/amqp/__init__.py 2015-10-03 00:02:20.000000000 +0200
+++ new/amqp-1.4.9/amqp/__init__.py 2016-01-09 02:57:00.000000000 +0100
@@ -16,7 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
from __future__ import absolute_import
-VERSION = (1, 4, 7)
+VERSION = (1, 4, 9)
__version__ = '.'.join(map(str, VERSION[0:3])) + ''.join(VERSION[3:])
__author__ = 'Barry Pederson'
__maintainer__ = 'Ask Solem'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/amqp-1.4.7/amqp/abstract_channel.py new/amqp-1.4.9/amqp/abstract_channel.py
--- old/amqp-1.4.7/amqp/abstract_channel.py 2015-10-02 23:42:15.000000000 +0200
+++ new/amqp-1.4.9/amqp/abstract_channel.py 2016-01-08 22:37:48.000000000 +0100
@@ -60,11 +60,11 @@
"""Close this Channel or Connection"""
raise NotImplementedError('Must be overriden in subclass')
- def wait(self, allowed_methods=None):
+ def wait(self, allowed_methods=None, timeout=None):
"""Wait for a method that matches our allowed_methods parameter (the
default value of None means match any method), and dispatch to it."""
method_sig, args, content = self.connection._wait_method(
- self.channel_id, allowed_methods)
+ self.channel_id, allowed_methods, timeout)
return self.dispatch_method(method_sig, args, content)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/amqp-1.4.7/amqp/connection.py new/amqp-1.4.9/amqp/connection.py
--- old/amqp-1.4.7/amqp/connection.py 2015-10-03 00:05:01.000000000 +0200
+++ new/amqp-1.4.9/amqp/connection.py 2016-01-08 22:37:48.000000000 +0100
@@ -216,7 +216,7 @@
raise ConnectionError(
'Channel %r already open' % (channel_id, ))
- def _wait_method(self, channel_id, allowed_methods):
+ def _wait_method(self, channel_id, allowed_methods, timeout=None):
"""Wait for a method from the server destined for
a particular channel."""
#
@@ -235,9 +235,10 @@
#
# Nothing queued, need to wait for a method from the peer
#
+ read_timeout = self.read_timeout
+ wait = self.wait
while 1:
- channel, method_sig, args, content = \
- self.method_reader.read_method()
+ channel, method_sig, args, content = read_timeout(timeout)
if channel == channel_id and (
allowed_methods is None or
@@ -270,7 +271,7 @@
# error, so deal with it right away.
#
if not channel:
- self.wait()
+ wait()
def channel(self, channel_id=None):
"""Fetch a Channel object identified by the numeric channel_id, or
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/amqp-1.4.7/amqp/five.py new/amqp-1.4.9/amqp/five.py
--- old/amqp-1.4.7/amqp/five.py 2015-10-03 00:02:20.000000000 +0200
+++ new/amqp-1.4.9/amqp/five.py 2016-01-08 22:37:48.000000000 +0100
@@ -139,8 +139,12 @@
import platform
SYSTEM = platform.system()
- if SYSTEM == 'Darwin':
+ try:
import ctypes
+ except ImportError: # pragma: no cover
+ ctypes = None # noqa
+
+ if SYSTEM == 'Darwin' and ctypes is not None:
from ctypes.util import find_library
libSystem = ctypes.CDLL(find_library('libSystem.dylib'))
CoreServices = ctypes.CDLL(find_library('CoreServices'),
@@ -154,10 +158,9 @@
def _monotonic():
return absolute_to_nanoseconds(mach_absolute_time()) * 1e-9
- elif SYSTEM == 'Linux':
+ elif SYSTEM == 'Linux' and ctypes is not None:
# from stackoverflow:
# questions/1205722/how-do-i-get-monotonic-time-durations-in-python
- import ctypes
import os
CLOCK_MONOTONIC = 1 # see
participants (1)
-
root@hilbert.suse.de