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 https://bugs.opensuse.org/
#


%global sname futurist
Name:           python-futurist
Version:        1.3.2
Release:        0
Summary:        Backport of the concurrent.futures package from Python 3.2
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            http://launchpad.net/futurist
Source0:        https://pypi.io/packages/source/f/%{sname}/%{sname}-%{version}.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python-PrettyTable >= 0.7.1
BuildRequires:  python-Sphinx
BuildRequires:  python-contextlib2 >= 0.4.0
BuildRequires:  python-devel
BuildRequires:  python-eventlet >= 0.18.2
BuildRequires:  python-futures >= 3.0
BuildRequires:  python-monotonic >= 0.6
BuildRequires:  python-openstackdocstheme >= 1.16.0
BuildRequires:  python-oslotest >= 1.10.0
BuildRequires:  python-pbr >= 2.0.0
BuildRequires:  python-setuptools >= 16.0
BuildRequires:  python-six >= 1.9.0
BuildRequires:  python-testrepository >= 0.0.18
BuildRequires:  python-testscenarios >= 0.4
BuildRequires:  python-testtools >= 1.4.0
Requires:       python-PrettyTable >= 0.7.1
Requires:       python-contextlib2 >= 0.4.0
Requires:       python-futures >= 3.0
Requires:       python-monotonic >= 0.6
Requires:       python-six >= 1.9.0
BuildArch:      noarch

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

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

%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
openSUSE Build Service is sponsored by