File python-taskflow.spec of Package python-taskflow

#
# spec file for package python-taskflow
#
# Copyright (c) 2020 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 pypi_name taskflow
Name:           python-taskflow
Version:        2.6.1
Release:        0
Summary:        Taskflow structured state management library
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            https://launchpad.net/taskflow
Source0:        https://pypi.io/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python-PyMySQL
BuildRequires:  python-SQLAlchemy
BuildRequires:  python-SQLAlchemy-Utils
BuildRequires:  python-alembic
BuildRequires:  python-automaton
BuildRequires:  python-cachetools
BuildRequires:  python-contextlib2
BuildRequires:  python-devel
BuildRequires:  python-enum34
BuildRequires:  python-eventlet
BuildRequires:  python-fasteners
BuildRequires:  python-futurist
BuildRequires:  python-jsonschema
BuildRequires:  python-kazoo
BuildRequires:  python-kombu
BuildRequires:  python-mock
BuildRequires:  python-networkx
BuildRequires:  python-oslo.serialization
BuildRequires:  python-oslo.utils
BuildRequires:  python-oslotest
BuildRequires:  python-pbr
BuildRequires:  python-psycopg2
BuildRequires:  python-pydotplus
BuildRequires:  python-redis
BuildRequires:  python-retrying
BuildRequires:  python-stevedore
BuildRequires:  python-testscenarios
BuildRequires:  python-testtools
BuildRequires:  python-zake
Requires:       python-Babel
Requires:       python-anyjson
Requires:       python-automaton
Requires:       python-cachetools
Requires:       python-contextlib2
Requires:       python-debtcollector
Requires:       python-enum34
Requires:       python-fasteners
Requires:       python-futures
Requires:       python-futurist
Requires:       python-iso8601
Requires:       python-jsonschema
Requires:       python-kazoo
Requires:       python-monotonic
Requires:       python-networkx
Requires:       python-oslo.serialization
Requires:       python-oslo.utils
Requires:       python-retrying
Requires:       python-six
Requires:       python-stevedore
BuildArch:      noarch

%description
A library to do [jobs, tasks, flows] in a HA manner using
different backends to be used with OpenStack projects.

%package doc
Summary:        Documentation for Taskflow
Group:          Documentation
BuildRequires:  python-Sphinx
BuildRequires:  python-oslosphinx

%description doc
A library to do [jobs, tasks, flows] in a HA manner using
different backends to be used with OpenStack projects.
This package contains the associated documentation.

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

%build
%py2_build

%install
%py2_install

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

%check
PYTHONPATH=. %{__python2} setup.py testr

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

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

%changelog