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 https://bugs.opensuse.org/
#
Name: python-oslo.db
Version: 4.40.2
Release: 0
Summary: OpenStack oslo.db library
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/oslo.db
Source0: https://files.pythonhosted.org/packages/source/o/oslo.db/oslo.db-4.40.2.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-devel
BuildRequires: python2-PyMySQL
BuildRequires: python2-alembic
BuildRequires: python2-debtcollector
BuildRequires: python2-eventlet
BuildRequires: python2-fixtures
BuildRequires: python2-mock
BuildRequires: python2-oslo.config
BuildRequires: python2-oslo.context
BuildRequires: python2-oslo.i18n
BuildRequires: python2-oslo.utils
BuildRequires: python2-oslotest
BuildRequires: python2-pbr
BuildRequires: python2-psycopg2
BuildRequires: python2-python-subunit
BuildRequires: python2-reno
BuildRequires: python2-six
BuildRequires: python2-sqlalchemy-migrate
BuildRequires: python2-testrepository
BuildRequires: python2-testresources
BuildRequires: python2-testscenarios
BuildRequires: python2-testtools
BuildRequires: python3-PyMySQL
BuildRequires: python3-alembic
BuildRequires: python3-debtcollector
BuildRequires: python3-devel
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-testrepository
BuildRequires: python3-testresources
BuildRequires: python3-testscenarios
BuildRequires: python3-testtools
Requires: python-PyMySQL
Requires: python-SQLAlchemy
Requires: python-alembic
Requires: python-debtcollector
Requires: python-oslo.config
Requires: python-oslo.context
Requires: python-oslo.i18n
Requires: python-oslo.utils
Requires: python-psycopg2
Requires: python-six
Requires: python-sqlalchemy-migrate
Requires: python-stevedore
Requires: python-testresources
Requires: python-testscenarios
BuildArch: noarch
%python_subpackages
%description
The OpenStack Oslo database handling library. Provides database connectivity
to the different backends and helper utils.
* Documentation: https://docs.openstack.org/developer/oslo.db
* Source: http://git.openstack.org/cgit/openstack/oslo.db
* Bugs: https://bugs.launchpad.net/oslo
%package -n python-oslo.db-doc
Summary: Documentation for the Oslo database handling library
Group: Documentation/HTML
BuildRequires: python-Sphinx
BuildRequires: python-openstackdocstheme
%description -n python-oslo.db-doc
Documentation for the Oslo database handling library.
%prep
%autosetup -p1 -n oslo.db-4.40.2
%py_req_cleanup
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
%build
%{python_build}
# generate html docs
%{__python2} setup.py build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%{python_install}
%check
%{python_expand rm -rf .testrepository
$python setup.py testr
}
%files %{python_files}
%license LICENSE
%doc README.rst ChangeLog
%{python_sitelib}/oslo_db
%{python_sitelib}/*.egg-info
%files -n python-oslo.db-doc
%license LICENSE
%doc doc/build/html
%changelog