File python-oslo.messaging.spec of Package python-oslo.messaging

# spec file for package python-oslo.messaging
# Copyright (c) 2020 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

Name:           python-oslo.messaging
Version:        12.5.0
Release:        0
Summary:        OpenStack oslo.messaging library
License:        Apache-2.0
Group:          Development/Languages/Python
BuildRequires:  openstack-macros
BuildRequires:  python3-PyYAML
BuildRequires:  python3-WebOb
BuildRequires:  python3-amqp
BuildRequires:  python3-cachetools
BuildRequires:  python3-confluent-kafka
BuildRequires:  python3-debtcollector
BuildRequires:  python3-eventlet
BuildRequires:  python3-fixtures
BuildRequires:  python3-futurist
BuildRequires:  python3-greenlet
BuildRequires:  python3-kombu
BuildRequires:  python3-mock
BuildRequires:  python3-monotonic
BuildRequires:  python3-oslo.config
BuildRequires:  python3-oslo.i18n
BuildRequires:  python3-oslo.log
BuildRequires:  python3-oslo.middleware
BuildRequires:  python3-oslo.serialization
BuildRequires:  python3-oslo.service
BuildRequires:  python3-oslo.utils
BuildRequires:  python3-oslotest
BuildRequires:  python3-pbr
BuildRequires:  python3-pyngus
BuildRequires:  python3-six
BuildRequires:  python3-stestr
BuildRequires:  python3-stevedore
BuildRequires:  python3-testscenarios
BuildRequires:  python3-testtools
BuildArch:      noarch

The Oslo messaging API supports RPC and notifications over a number
of different messaging transports.

%package -n python3-oslo.messaging
Summary:        OpenStack oslo.messaging library
Group:          Development/Languages/Python
Requires:       python3-PyYAML
Requires:       python3-WebOb
Requires:       python3-amqp
Requires:       python3-cachetools
Requires:       python3-debtcollector
Requires:       python3-futurist
Requires:       python3-greenlet
Requires:       python3-kombu
Requires:       python3-oslo.config
Requires:       python3-oslo.i18n
Requires:       python3-oslo.log
Requires:       python3-oslo.middleware
Requires:       python3-oslo.serialization
Requires:       python3-oslo.service
Requires:       python3-oslo.utils
Requires:       python3-six
Requires:       python3-stevedore
%if 0%{?suse_version}
Obsoletes:      python2-oslo.messaging < 12.0.0

%description -n python3-oslo.messaging
The Oslo messaging API supports RPC and notifications over a number
of different messaging transports.

This package contains the Python 3.x module.

%package -n python3-oslo.messaging-doc
Summary:        Documentation for OpenStack messaging library
Group:          Development/Languages/Python
BuildRequires:  python3-Sphinx
BuildRequires:  python3-openstackdocstheme

%description -n python3-oslo.messaging-doc
The Oslo messaging API supports RPC and notifications over a number
of different messaging transports.
This package contains the documentation.

%autosetup -p1 -n oslo.messaging-12.5.0


# generate html docs
PYTHONPATH=. PBR_VERSION=%{version} %sphinx_build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}


# NOTE(jpena): we do not want to run functional tests, just unit tests
# python3-pifpaf is not available in RDO, but loading functional tests would
# fail without it
rm -rf oslo_messaging/tests/functional
# 3 cyrus tests fail on rdo with time out
python3 -m stestr.cli run --black-regex '^oslo_messaging.tests.(functional|drivers.test_amqp_driver.TestCyrusAuthentication.test_authentication_(ok|ignore_default_realm|default_realm))'

%files -n python3-oslo.messaging
%license LICENSE
%doc README.rst ChangeLog

%files -n python3-oslo.messaging-doc
%license LICENSE
%doc doc/build/html