14
0
forked from pool/python-amqp
Files
python-amqp/python-amqp.spec
Dirk Mueller e511111532 - update to 5.0.5:
- Removed mistakenly introduced code which was causing import errors
  - Add missing load_default_certs() call to fix a regression in v5.0.3 release. (#350)
  - Change the default value of ssl_version to None. When not set, the
    proper value between ssl.PROTOCOL_TLS_CLIENT and ssl.PROTOCOL_TLS_SERVER
    will be selected based on the param server_side in order to create
    a TLS Context object with better defaults that fit the desired
    connection side.
  - Change the default value of cert_reqs to None. The default value
    of ctx.verify_mode is ssl.CERT_NONE, but when ssl.PROTOCOL_TLS_CLIENT
    is used, ctx.verify_mode defaults to ssl.CERT_REQUIRED.
  - Fix context.check_hostname logic. Checking the hostname depends on
    having support of the SNI TLS extension and being provided with a
    server_hostname value. Another important thing to mention is that
    enabling hostname checking automatically sets verify_mode from
    ssl.CERT_NONE to ssl.CERT_REQUIRED in the stdlib ssl and it cannot
    be set back to ssl.CERT_NONE as long as hostname checking is enabled.
  - Refactor the SNI tests to test one thing at a time and removing some
    tests that were being repeated over an

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-amqp?expand=0&rev=74
2021-02-01 17:42:39 +00:00

66 lines
2.0 KiB
RPMSpec

#
# spec file for package python-amqp
#
# Copyright (c) 2021 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-%{**}}
%define skip_python2 1
Name: python-amqp
Version: 5.0.5
Release: 0
Summary: Low-level AMQP client for Python (fork of amqplib)
License: LGPL-2.1-or-later
URL: http://github.com/celery/py-amqp
Source: https://files.pythonhosted.org/packages/source/a/amqp/amqp-%{version}.tar.gz
Patch0: vine-no-double-equals-deps.patch
BuildRequires: %{python_module case >= 1.3.1}
BuildRequires: %{python_module pytest >= 3.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module vine >= 5.0.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-vine >= 5.0.0
BuildArch: noarch
%python_subpackages
%description
This is a fork of amqplib_ which was originally written by Barry Pederson.
It is maintained by the Celery_ project, and used by kombu as a pure python
alternative when librabbitmq is not available.
This library should be API compatible with librabbitmq.
%prep
%setup -q -n amqp-%{version}
%autopatch -p1
# requires internet connection:
rm t/integration/test_rmq.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%{python_sitelib}/*
%changelog