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

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


Name:           python-oslo.messaging
Version:        14.9.1
Release:        0
Summary:        OpenStack oslo.messaging library
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            https://docs.openstack.org/oslo.messaging
Source0:        https://files.pythonhosted.org/packages/source/o/oslo.messaging/oslo.messaging-14.9.1.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python311-PyYAML
BuildRequires:  python311-WebOb
BuildRequires:  python311-amqp
BuildRequires:  python311-cachetools
BuildRequires:  python311-confluent-kafka
BuildRequires:  python311-debtcollector
BuildRequires:  python311-eventlet
BuildRequires:  python311-fixtures
BuildRequires:  python311-futurist
BuildRequires:  python311-greenlet
BuildRequires:  python311-kombu
BuildRequires:  python311-oslo.config
BuildRequires:  python311-oslo.i18n
BuildRequires:  python311-oslo.log
BuildRequires:  python311-oslo.metrics
BuildRequires:  python311-oslo.middleware
BuildRequires:  python311-oslo.serialization
BuildRequires:  python311-oslo.service
BuildRequires:  python311-oslo.utils
BuildRequires:  python311-oslotest
BuildRequires:  python311-pbr
BuildRequires:  python311-pyngus
BuildRequires:  python311-stestr
BuildRequires:  python311-stevedore
BuildRequires:  python311-testscenarios
BuildRequires:  python311-testtools
BuildArch:      noarch

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

%package -n python311-oslo.messaging
Summary:        OpenStack oslo.messaging library
Requires:       python311-PyYAML
Requires:       python311-WebOb
Requires:       python311-amqp
Requires:       python311-cachetools
Requires:       python311-debtcollector
Requires:       python311-futurist
Requires:       python311-greenlet
Requires:       python311-kombu
Requires:       python311-oslo.config
Requires:       python311-oslo.i18n
Requires:       python311-oslo.log
Requires:       python311-oslo.metrics
Requires:       python311-oslo.middleware
Requires:       python311-oslo.serialization
Requires:       python311-oslo.service
Requires:       python311-oslo.utils
Requires:       python311-stevedore
%if 0%{?suse_version}
Obsoletes:      python2-oslo.messaging < 12.0.0
%endif

%description -n python311-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 python311-oslo.messaging-doc
Summary:        Documentation for OpenStack messaging library
BuildRequires:  python311-Sphinx
BuildRequires:  python311-openstackdocstheme

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

%prep
%autosetup -p1 -n oslo.messaging-14.9.1
%py_req_cleanup

%build
%py3_build

# 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}

%install
%py3_install

%check
# 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
%{openstack_stestr_run} --exclude-regex '^oslo_messaging.tests.(functional|drivers.test_amqp_driver.TestCyrusAuthentication.test_authentication_(ok|ignore_default_realm|default_realm))'

%files -n python311-oslo.messaging
%license LICENSE
%doc README.rst ChangeLog
%{python3_sitelib}/oslo_messaging
%{python3_sitelib}/*.egg-info
%{_bindir}/oslo-messaging-send-notification

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

%changelog
openSUSE Build Service is sponsored by