forked from pool/python-amqpstorm
Accepting request 975670 from home:mcalabkova:branches:devel:languages:python
- Update to 2.10.4 * Fixed a potential deadlock when opening a channel with a broken connection [#97] * Added support for custom Message implementations * Added Pagination and Filtering support to Management list calls * Updated to use pytest framework instead of nose for testing. * Fixed bug with UriConnection not handling amqps:// properly. * Fixed bad socket fd causing high cpu usage [#110] - Get new pamqp3.patch from https://github.com/eandersson/amqpstorm/pull/95, which should be in v3 (which is somehow not tagged yet) * rebased it to the new codestream - Do not require mock * mock.patch - Update to 2.8.4 OBS-URL: https://build.opensuse.org/request/show/975670 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-amqpstorm?expand=0&rev=29
This commit is contained in:
3
AMQPStorm-2.10.4.tar.gz
Normal file
3
AMQPStorm-2.10.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:eb3d4cedd523fe4aaf0171a0ad6161d808da480ad59858698bd5e466af096586
|
||||
size 71916
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f74f9d32d0d231f2625b16c92ce8649da7cb59de81cb4b4b800fdd34762d3223
|
||||
size 77302
|
||||
107
mock.patch
Normal file
107
mock.patch
Normal file
@@ -0,0 +1,107 @@
|
||||
Index: AMQPStorm-2.10.4/amqpstorm/tests/unit/basic/test_basic.py
|
||||
===================================================================
|
||||
--- AMQPStorm-2.10.4.orig/amqpstorm/tests/unit/basic/test_basic.py
|
||||
+++ AMQPStorm-2.10.4/amqpstorm/tests/unit/basic/test_basic.py
|
||||
@@ -3,7 +3,7 @@ import random
|
||||
import string
|
||||
import sys
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
from pamqp import commands
|
||||
from pamqp.body import ContentBody
|
||||
from pamqp.header import ContentHeader
|
||||
Index: AMQPStorm-2.10.4/amqpstorm/tests/unit/channel/test_channel.py
|
||||
===================================================================
|
||||
--- AMQPStorm-2.10.4.orig/amqpstorm/tests/unit/channel/test_channel.py
|
||||
+++ AMQPStorm-2.10.4/amqpstorm/tests/unit/channel/test_channel.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
from pamqp import commands
|
||||
|
||||
from amqpstorm import Channel
|
||||
Index: AMQPStorm-2.10.4/amqpstorm/tests/unit/channel/test_channel_exception.py
|
||||
===================================================================
|
||||
--- AMQPStorm-2.10.4.orig/amqpstorm/tests/unit/channel/test_channel_exception.py
|
||||
+++ AMQPStorm-2.10.4/amqpstorm/tests/unit/channel/test_channel_exception.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
from pamqp import commands
|
||||
|
||||
import amqpstorm
|
||||
Index: AMQPStorm-2.10.4/amqpstorm/tests/unit/channel/test_channel_frame.py
|
||||
===================================================================
|
||||
--- AMQPStorm-2.10.4.orig/amqpstorm/tests/unit/channel/test_channel_frame.py
|
||||
+++ AMQPStorm-2.10.4/amqpstorm/tests/unit/channel/test_channel_frame.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
from pamqp.header import ContentHeader
|
||||
from pamqp import commands
|
||||
from pamqp.body import ContentBody
|
||||
Index: AMQPStorm-2.10.4/amqpstorm/tests/unit/channel/test_channel_message_handling.py
|
||||
===================================================================
|
||||
--- AMQPStorm-2.10.4.orig/amqpstorm/tests/unit/channel/test_channel_message_handling.py
|
||||
+++ AMQPStorm-2.10.4/amqpstorm/tests/unit/channel/test_channel_message_handling.py
|
||||
@@ -1,6 +1,6 @@
|
||||
import threading
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
from pamqp.header import ContentHeader
|
||||
from pamqp import commands
|
||||
from pamqp.body import ContentBody
|
||||
Index: AMQPStorm-2.10.4/amqpstorm/tests/unit/connection/test_connection.py
|
||||
===================================================================
|
||||
--- AMQPStorm-2.10.4.orig/amqpstorm/tests/unit/connection/test_connection.py
|
||||
+++ AMQPStorm-2.10.4/amqpstorm/tests/unit/connection/test_connection.py
|
||||
@@ -1,7 +1,7 @@
|
||||
import socket
|
||||
import threading
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
from pamqp import exceptions as pamqp_exception
|
||||
from pamqp import frame as pamqp_frame
|
||||
from pamqp import commands
|
||||
Index: AMQPStorm-2.10.4/amqpstorm/tests/unit/io/test_io.py
|
||||
===================================================================
|
||||
--- AMQPStorm-2.10.4.orig/amqpstorm/tests/unit/io/test_io.py
|
||||
+++ AMQPStorm-2.10.4/amqpstorm/tests/unit/io/test_io.py
|
||||
@@ -1,7 +1,7 @@
|
||||
import socket
|
||||
import ssl
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
|
||||
import amqpstorm.io
|
||||
from amqpstorm.exception import AMQPConnectionError
|
||||
Index: AMQPStorm-2.10.4/amqpstorm/tests/unit/io/test_io_exception.py
|
||||
===================================================================
|
||||
--- AMQPStorm-2.10.4.orig/amqpstorm/tests/unit/io/test_io_exception.py
|
||||
+++ AMQPStorm-2.10.4/amqpstorm/tests/unit/io/test_io_exception.py
|
||||
@@ -3,7 +3,7 @@ import socket
|
||||
from errno import EINTR
|
||||
from errno import EWOULDBLOCK
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
|
||||
from amqpstorm import AMQPConnectionError
|
||||
from amqpstorm import compatibility
|
||||
Index: AMQPStorm-2.10.4/amqpstorm/tests/unit/test_rpc.py
|
||||
===================================================================
|
||||
--- AMQPStorm-2.10.4.orig/amqpstorm/tests/unit/test_rpc.py
|
||||
+++ AMQPStorm-2.10.4/amqpstorm/tests/unit/test_rpc.py
|
||||
@@ -1,7 +1,7 @@
|
||||
import threading
|
||||
import time
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
|
||||
from amqpstorm.exception import AMQPChannelError
|
||||
from amqpstorm.rpc import Rpc
|
||||
897
pamqp3.patch
897
pamqp3.patch
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 9 04:55:21 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Update to 2.10.4
|
||||
* Fixed a potential deadlock when opening a channel with a broken connection [#97]
|
||||
* Added support for custom Message implementations
|
||||
* Added Pagination and Filtering support to Management list calls
|
||||
* Updated to use pytest framework instead of nose for testing.
|
||||
* Fixed bug with UriConnection not handling amqps:// properly.
|
||||
* Fixed bad socket fd causing high cpu usage [#110]
|
||||
- Get new pamqp3.patch from https://github.com/eandersson/amqpstorm/pull/95,
|
||||
which should be in v3 (which is somehow not tagged yet)
|
||||
* rebased it to the new codestream
|
||||
- Do not require mock
|
||||
* mock.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 19 13:03:19 UTC 2021 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Upadte to 2.8.4
|
||||
- Update to 2.8.4
|
||||
* Added getter/setter methods for Message properties expiration, message_type and user_id
|
||||
* Fixed pip sdist circular dependency
|
||||
* Fixed basic.consume argument type in documentation
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-amqpstorm
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,14 +18,14 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-amqpstorm
|
||||
Version: 2.8.4
|
||||
Version: 2.10.4
|
||||
Release: 0
|
||||
Summary: Thread-safe Python RabbitMQ Client & Management library
|
||||
License: MIT
|
||||
URL: https://github.com/eandersson/amqpstorm
|
||||
Source: https://files.pythonhosted.org/packages/source/A/AMQPStorm/AMQPStorm-%{version}.tar.gz
|
||||
Patch0: pamqp3.patch
|
||||
BuildRequires: %{python_module mock}
|
||||
Patch1: mock.patch
|
||||
BuildRequires: %{python_module pamqp >= 3.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests}
|
||||
@@ -50,7 +50,6 @@ When using a SSL connection, TLSv1 or higher is required.
|
||||
%prep
|
||||
%setup -q -n AMQPStorm-%{version}
|
||||
%autopatch -p1
|
||||
sed -i -e "s/'pamqp>=2.0.0,<3.0'/'pamqp>=3.0'/" setup.py
|
||||
|
||||
%build
|
||||
export LANG="en_US.UTF8"
|
||||
@@ -69,7 +68,7 @@ export LANG="en_US.UTF8"
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst examples
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user