File python-taskflow.spec of Package python-taskflow
#
# spec file for package python-taskflow
#
# Copyright (c) 2016 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 pypi_name taskflow
Name: python-taskflow
Version: 2.6.0
Release: 0
Summary: Taskflow structured state management library
License: Apache-2.0
Group: Documentation
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 >= 0.6.2
BuildRequires: python-SQLAlchemy >= 1.0.10
BuildRequires: python-SQLAlchemy-Utils
BuildRequires: python-alembic >= 0.8.4
BuildRequires: python-automaton >= 0.5.0
BuildRequires: python-cachetools >= 1.1.0
BuildRequires: python-contextlib2 >= 0.4.0
BuildRequires: python-devel
BuildRequires: python-enum34
BuildRequires: python-eventlet >= 0.18.2
BuildRequires: python-fasteners >= 0.7
BuildRequires: python-futurist >= 0.11.0
BuildRequires: python-jsonschema >= 2.0.0
BuildRequires: python-kazoo >= 2.2
BuildRequires: python-kombu >= 3.0.25
BuildRequires: python-mock >= 2.0
BuildRequires: python-networkx >= 1.10
BuildRequires: python-oslo.serialization >= 1.10.0
BuildRequires: python-oslo.utils >= 3.16.0
BuildRequires: python-oslotest >= 1.10.0
BuildRequires: python-pbr >= 1.6
BuildRequires: python-psycopg2 >= 2.5
BuildRequires: python-pydotplus >= 2.0.2
BuildRequires: python-redis >= 2.10.0
BuildRequires: python-retrying >= 1.2.3
BuildRequires: python-stevedore
BuildRequires: python-testscenarios >= 0.4
BuildRequires: python-testtools >= 1.4.0
BuildRequires: python-zake >= 0.1.6
Requires: python-Babel >= 2.3.4
Requires: python-anyjson >= 0.3.3
Requires: python-automaton >= 0.5.0
Requires: python-cachetools >= 1.1.0
Requires: python-contextlib2 >= 0.4.0
Requires: python-debtcollector >= 1.2.0
Requires: python-enum34
Requires: python-fasteners >= 0.7
Requires: python-futures >= 3.0
Requires: python-futurist >= 0.11.0
Requires: python-iso8601 >= 0.1.11
Requires: python-jsonschema >= 2.0.0
Requires: python-kazoo >= 2.2
Requires: python-monotonic >= 0.6
Requires: python-networkx >= 1.10
Requires: python-oslo.serialization >= 1.10.0
Requires: python-oslo.utils >= 3.16.0
Requires: python-retrying >= 1.2.3
Requires: python-six >= 1.9.0
Requires: python-stevedore >= 1.16.0
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 >= 2.5.0
%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