File python-futurist.spec of Package python-futurist

#
# spec file for package python-futurist
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


%global sname futurist
Name:           python-futurist
Version:        0.18.0
Release:        0
Summary:        Backport of the concurrent.futures package from Python 3.2
License:        Apache-2.0
Url:            http://launchpad.net/futurist
Source0:        https://pypi.io/packages/source/f/%{sname}/%{sname}-%{version}.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python-PrettyTable
BuildRequires:  python-Sphinx
BuildRequires:  python-contextlib2
BuildRequires:  python-devel
BuildRequires:  python-eventlet
BuildRequires:  python-futures
BuildRequires:  python-monotonic
BuildRequires:  python-oslosphinx
BuildRequires:  python-oslotest
BuildRequires:  python-pbr
BuildRequires:  python-setuptools
BuildRequires:  python-six
BuildRequires:  python-testrepository
BuildRequires:  python-testscenarios
BuildRequires:  python-testtools
Requires:       python-PrettyTable
Requires:       python-contextlib2
Requires:       python-futures
Requires:       python-monotonic
Requires:       python-six
BuildArch:      noarch

%description
Backport of the concurrent.futures package from Python 3.2.
Useful additions to futures from the future.

%prep
%setup -q -n %{sname}-%{version}

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

%install
%py2_install

%check
%{__python2} setup.py test

%files
%doc doc/build/html README.rst
%license LICENSE
%{python2_sitelib}/%{sname}
%{python2_sitelib}/%{sname}-*-py?.?.egg-info

%changelog