2018-08-28 23:58:14 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-amqpstorm
|
|
|
|
|
#
|
2025-05-13 15:10:47 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-08-28 23:58:14 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-02-05 17:51:17 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-28 23:58:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-amqpstorm
|
2023-12-02 19:55:12 +00:00
|
|
|
Version: 2.10.7
|
2018-08-28 23:58:14 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Thread-safe Python RabbitMQ Client & Management library
|
|
|
|
|
License: MIT
|
2018-08-29 13:41:07 +00:00
|
|
|
URL: https://github.com/eandersson/amqpstorm
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/A/AMQPStorm/AMQPStorm-%{version}.tar.gz
|
2023-12-02 20:10:05 +00:00
|
|
|
Patch0: mock.patch
|
2023-12-02 20:00:11 +00:00
|
|
|
Patch1: pamqp3.patch
|
2021-04-19 13:30:06 +00:00
|
|
|
BuildRequires: %{python_module pamqp >= 3.0}
|
2025-05-13 15:10:47 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-06-10 11:49:05 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-08-29 13:49:18 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
2018-08-28 23:58:14 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-05-13 15:10:47 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-08-28 23:58:14 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2021-04-19 13:30:06 +00:00
|
|
|
Requires: python-pamqp >= 3.0
|
2018-08-29 13:49:18 +00:00
|
|
|
Requires: python-requests
|
2018-08-28 23:58:14 +00:00
|
|
|
BuildArch: noarch
|
2019-09-13 13:05:39 +00:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
|
BuildRequires: python
|
|
|
|
|
%endif
|
2018-08-28 23:58:14 +00:00
|
|
|
%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
|
2023-12-02 20:00:11 +00:00
|
|
|
%autosetup -p1 -n AMQPStorm-%{version}
|
2018-08-28 23:58:14 +00:00
|
|
|
|
|
|
|
|
%build
|
2018-09-10 07:13:11 +00:00
|
|
|
export LANG="en_US.UTF8"
|
2025-05-13 15:10:47 +00:00
|
|
|
%pyproject_wheel
|
2018-08-28 23:58:14 +00:00
|
|
|
|
|
|
|
|
%install
|
2018-09-10 07:13:11 +00:00
|
|
|
export LANG="en_US.UTF8"
|
2025-05-13 15:10:47 +00:00
|
|
|
%pyproject_install
|
2018-08-28 23:58:14 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/amqpstorm
|
2018-09-13 13:30:39 +00:00
|
|
|
# remove generic named examples from sitelib
|
|
|
|
|
%python_expand rm -rf %{buildroot}%{$python_sitelib}/examples
|
2018-08-28 23:58:14 +00:00
|
|
|
|
2018-08-29 13:49:18 +00:00
|
|
|
%check
|
2019-05-07 10:48:41 +00:00
|
|
|
# test_heartbeat_basic_raise_on_missed_heartbeats randomly fails
|
2020-06-10 11:49:05 +00:00
|
|
|
%pytest amqpstorm/tests/unit/* -k "not test_heartbeat_basic_raise_on_missed_heartbeats"
|
2018-08-29 13:49:18 +00:00
|
|
|
|
2018-08-28 23:58:14 +00:00
|
|
|
%files %{python_files}
|
2018-08-29 13:49:18 +00:00
|
|
|
%license LICENSE
|
2022-05-09 06:02:09 +00:00
|
|
|
%doc README.rst
|
2025-05-13 15:10:47 +00:00
|
|
|
%{python_sitelib}/amqpstorm
|
|
|
|
|
%{python_sitelib}/amqpstorm-%{version}*-info
|
2018-08-28 23:58:14 +00:00
|
|
|
|
|
|
|
|
%changelog
|