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

# spec file for package python-oslo.db
# 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.db
Version:        8.4.0
Release:        0
Summary:        OpenStack oslo.db library
License:        Apache-2.0
Group:          Development/Languages/Python
BuildRequires:  openstack-macros
BuildRequires:  python3-PyMySQL
BuildRequires:  python3-alembic
BuildRequires:  python3-debtcollector
BuildRequires:  python3-eventlet
BuildRequires:  python3-fixtures
BuildRequires:  python3-mock
BuildRequires:  python3-oslo.config
BuildRequires:  python3-oslo.context
BuildRequires:  python3-oslo.i18n
BuildRequires:  python3-oslo.utils
BuildRequires:  python3-oslotest
BuildRequires:  python3-pbr
BuildRequires:  python3-psycopg2
BuildRequires:  python3-python-subunit
BuildRequires:  python3-reno
BuildRequires:  python3-six
BuildRequires:  python3-sqlalchemy-migrate
BuildRequires:  python3-stestr
BuildRequires:  python3-testresources
BuildRequires:  python3-testscenarios
BuildRequires:  python3-testtools
BuildArch:      noarch

The OpenStack Oslo database handling library. Provides database connectivity
to the different backends and helper utils.
* Documentation:
* Source:
* Bugs:

%package -n python3-oslo.db
Summary:        OpenStack oslo.db library
Group:          Development/Languages/Python
Requires:       python3-PyMySQL
Requires:       python3-SQLAlchemy
Requires:       python3-alembic
Requires:       python3-debtcollector
Requires:       python3-oslo.config
Requires:       python3-oslo.context
Requires:       python3-oslo.i18n
Requires:       python3-oslo.utils
Requires:       python3-psycopg2
Requires:       python3-six
Requires:       python3-sqlalchemy-migrate
Requires:       python3-stevedore
Requires:       python3-testresources
Requires:       python3-testscenarios

%description -n python3-oslo.db
The OpenStack Oslo database handling library. Provides database connectivity
to the different backends and helper utils.
* Documentation:
* Source:
* Bugs:

This package contains the Python 3.x module.

%package -n python-oslo.db-doc
Summary:        Documentation for the Oslo database handling library
Group:          Documentation/HTML
BuildRequires:  python3-Sphinx
BuildRequires:  python3-openstackdocstheme
BuildRequires:  python3-sphinxcontrib-apidoc

%description -n python-oslo.db-doc
Documentation for the Oslo database handling library.

%autosetup -p1 -n oslo.db-8.4.0


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


python3 -m stestr.cli run

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

%files -n python-oslo.db-doc
%license LICENSE
%doc doc/build/html