File python-keystoneauth1.spec of Package python-keystoneauth1

#
# spec file for package python-keystoneauth1
#
# 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/
#


%define version_unconverted 3.1.2.dev2

%global sname keystoneauth1
Name:           python-keystoneauth1
Version:        3.1.2~dev2
Release:        0
Summary:        OpenStack authenticating tools
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            https://launchpad.net/keystoneauth
Source0:        https://tarballs.opendev.org/openstack/keystoneauth/keystoneauth-stable-pike.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python-PyYAML >= 3.10.0
BuildRequires:  python-betamax >= 0.7.0
BuildRequires:  python-fixtures >= 3.0.0
BuildRequires:  python-iso8601 >= 0.1.11
BuildRequires:  python-lxml >= 2.3
BuildRequires:  python-mock >= 2.0
BuildRequires:  python-oauthlib >= 0.6
BuildRequires:  python-oslo.config >= 4.0.0
BuildRequires:  python-oslo.utils >= 3.20.0
BuildRequires:  python-oslotest >= 1.10.0
BuildRequires:  python-pbr >= 2.0.0
BuildRequires:  python-pep8
BuildRequires:  python-positional >= 1.1.1
BuildRequires:  python-pycrypto >= 2.6
BuildRequires:  python-reno >= 1.8.0
BuildRequires:  python-requests-kerberos >= 0.6
BuildRequires:  python-requests-mock >= 1.1
BuildRequires:  python-testrepository >= 0.0.18
BuildRequires:  python-testresources >= 0.2.4
BuildRequires:  python-testtools >= 1.4.0
Requires:       python-PyYAML >= 3.10.0
Requires:       python-iso8601 >= 0.1.11
Requires:       python-lxml >= 2.3
Requires:       python-oauthlib >= 0.6
Requires:       python-positional >= 1.1.1
Requires:       python-requests >= 2.14.2
Requires:       python-requests-kerberos >= 0.6
Requires:       python-six >= 1.9.0
Requires:       python-stevedore >= 1.20.0
BuildArch:      noarch

%description
Tools for authenticating to an OpenStack-based cloud. These tools include:
* Authentication plugins (password, token, and federation based)
* Discovery mechanisms to determine API version support
* A session that is used to maintain client settings across requests
  (based on the requests Python library)

%package doc
Summary:        Documentation for OpenStack authenticating tools
Group:          Development/Languages/Python
BuildRequires:  python-Sphinx
BuildRequires:  python-openstackdocstheme >= 1.11.0

%description doc
Documentation for OpenStack authenticating tools.

%prep
%autosetup -n %{sname}-%{version_unconverted}
%py_req_cleanup
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg

# cleanup intersphinx (we have no network during build)
echo "intersphinx_mapping = {}" >> doc/source/conf.py

%build
%{py2_build}

%install
%{py2_install}

# generate html docs
%{__python2} setup.py build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}

%check
%{__python2} setup.py testr

%files
%license LICENSE
%doc ChangeLog README.rst
%{python2_sitelib}/%{sname}
%{python2_sitelib}/*.egg-info

%files doc
%doc doc/build/html
%license LICENSE

%changelog
openSUSE Build Service is sponsored by