File python-castellan.spec of Package python-castellan

# spec file for package python-castellan
# 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-castellan
Version:        0.19.0
Release:        0
Summary:        Generic Key Manager interface for OpenStack
License:        Apache-2.0
Group:          Development/Languages/Python
BuildRequires:  openstack-macros
BuildRequires:  python2-barbicanclient
BuildRequires:  python2-cryptography
BuildRequires:  python2-keystoneauth1
BuildRequires:  python2-oslo.config
BuildRequires:  python2-oslo.log
BuildRequires:  python2-oslotest
BuildRequires:  python2-python-subunit
BuildRequires:  python2-setuptools
BuildRequires:  python2-testrepository
BuildRequires:  python2-testscenarios
BuildRequires:  python2-testtools
BuildRequires:  python3-barbicanclient
BuildRequires:  python3-cryptography
BuildRequires:  python3-keystoneauth1
BuildRequires:  python3-oslo.config
BuildRequires:  python3-oslo.log
BuildRequires:  python3-oslotest
BuildRequires:  python3-python-subunit
BuildRequires:  python3-setuptools
BuildRequires:  python3-testrepository
BuildRequires:  python3-testscenarios
BuildRequires:  python3-testtools
Requires:       python-Babel
Requires:       python-cryptography
Requires:       python-keystoneauth1
Requires:       python-oslo.config
Requires:       python-oslo.context
Requires:       python-oslo.log
Requires:       python-oslo.policy
Requires:       python-oslo.serialization
Requires:       python-oslo.utils
BuildArch:      noarch

Generic Key Manager interface for OpenStack.

%package -n python-castellan-doc
Summary:        Documentation for castellan
Group:          Documentation/HTML
BuildRequires:  python-Sphinx
BuildRequires:  python-openstackdocstheme

%description -n python-castellan-doc
Castellan is a generic Key Manager interface for OpenStack.
This package contains the documentation

%autosetup -p1 -n castellan-0.19.0
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg

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


%{python_expand rm -rf .testrepository
# Functional tests require a working Keystone infrastructure
export OS_TEST_PATH=./castellan/tests/unit
$python test

%files %{python_files}
%license LICENSE

%files -n python-castellan-doc
%license LICENSE
%doc README.rst doc/build/html

openSUSE Build Service is sponsored by