14
0
forked from pool/python-amqp

Accepting request 676364 from home:jayvdb:django

- Add versions to dependencies
- Remove python-sasl from build dependencies
- Update to version 2.4.1, includes Python 3.7 support

OBS-URL: https://build.opensuse.org/request/show/676364
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-amqp?expand=0&rev=53
This commit is contained in:
Tomáš Chvátal
2019-02-15 10:36:47 +00:00
committed by Git OBS Bridge
parent 3157bb613c
commit 2f87effc0a
4 changed files with 65 additions and 12 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:073dd02fdd73041bffc913b767866015147b61f2a9bc104daef172fc1a0066eb
size 105854

3
amqp-2.4.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6816eed27521293ee03aa9ace300a07215b11fee4e845588a9b863a7ba30addb
size 115394

View File

@@ -1,3 +1,58 @@
-------------------------------------------------------------------
Fri Feb 15 09:32:49 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Add versions to dependencies
- Remove python-sasl from build dependencies
- Update to version 2.4.1
* To avoid breaking the API basic_consume() now returns the consumer tag
instead of a tuple when nowait is True.
* Fix crash in basic_publish when broker does not support connection.blocked
capability.
* read_frame() is now Python 3 compatible for large payloads.
* Support float read_timeout/write_timeout.
* Always treat SSLError timeouts as socket timeouts.
* Treat EWOULDBLOCK as timeout.
- from 2.4.0
* Fix inconsistent frame_handler return value.
The function returned by frame_handler is meant to return True
once the complete message is received and the callback is called,
False otherwise.
This fixes the return value for messages with a body split across
multiple frames, and heartbeat frames.
* Don't default content_encoding to utf-8 for bytes.
This is not an acceptable default as the content may not be
valid utf-8, and even if it is, the producer likely does not
expect the message to be decoded by the consumer.
* Fix encoding of messages with multibyte characters.
Body length was previously calculated using string length,
which may be less than the length of the encoded body when
it contains multibyte sequences. This caused the body of
the frame to be truncated.
* Respect content_encoding when encoding messages.
Previously the content_encoding was ignored and messages
were always encoded as utf-8. This caused messages to be
incorrectly decoded if content_encoding is properly respected
when decoding.
* Fix AMQP protocol header for AMQP 0-9-1.
Previously it was set to a different value for unknown reasons.
* Add support for Python 3.7.
Change direct SSLSocket instantiation with wrap_socket.
* Add support for field type "x" (byte array).
* If there is an exception raised on Connection.connect or
Connection.close, ensure that the underlying transport socket
is closed. Adjust exception message on connection errors as well.
* TCP_USER_TIMEOUT has to be excluded from KNOWN_TCP_OPTS in BSD platforms.
* Handle negative acknowledgments.
* Added integration tests.
* Fix basic_consume() with no consumer_tag provided.
* Improved empty AMQPError string representation.
* Drain events before publish.
This is needed to capture out of memory messages for clients that only
publish. Otherwise on_blocked is never called.
* Don't revive channel when connection is closing.
When connection is closing don't raise error when Channel.Close
method is received.
-------------------------------------------------------------------
Sun Jul 1 02:15:08 UTC 2018 - arun@gmx.de

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-amqp
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@@ -12,26 +12,24 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-amqp
Version: 2.3.2
Version: 2.4.1
Release: 0
Summary: Low-level AMQP client for Python (fork of amqplib)
License: LGPL-2.1-or-later
Group: Development/Languages/Python
URL: http://github.com/celery/py-amqp
Source: https://files.pythonhosted.org/packages/source/a/amqp/amqp-%{version}.tar.gz
Source99: %{name}.changes
BuildRequires: %{python_module case}
BuildRequires: %{python_module pytest-sugar}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module sasl}
BuildRequires: %{python_module case >= 1.3.1}
BuildRequires: %{python_module pytest >= 3.0}
BuildRequires: %{python_module pytest-sugar >= 0.9.1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module vine}
BuildRequires: %{python_module vine >= 1.1.3}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-vine >= 1.1.3