15
0
Files
python-amqpstorm/python-amqpstorm.spec
Dirk Mueller 0e23435139 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
2022-05-09 06:02:09 +00:00

75 lines
2.3 KiB
RPMSpec

#
# spec file for package python-amqpstorm
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-amqpstorm
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
Patch1: mock.patch
BuildRequires: %{python_module pamqp >= 3.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pamqp >= 3.0
Requires: python-requests
BuildArch: noarch
%if 0%{?suse_version} < 1500
BuildRequires: python
%endif
%python_subpackages
%description
Thread-safe Python RabbitMQ Client & Management library.
Supports Python 2.7 and Python 3.3+.
Tested against CPython, PyPy and Pyston.
When using a SSL connection, TLSv1 or higher is required.
%prep
%setup -q -n AMQPStorm-%{version}
%autopatch -p1
%build
export LANG="en_US.UTF8"
%python_build
%install
export LANG="en_US.UTF8"
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}/amqpstorm
# remove generic named examples from sitelib
%python_expand rm -rf %{buildroot}%{$python_sitelib}/examples
%check
# test_heartbeat_basic_raise_on_missed_heartbeats randomly fails
%pytest amqpstorm/tests/unit/* -k "not test_heartbeat_basic_raise_on_missed_heartbeats"
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%changelog