From 6a4ba4f45425ecbecc6b4b450c2177e19839f359 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Tue, 7 May 2013 14:48:18 -0700 Subject: [PATCH] Continue moving here --- README.md | 1 - setup.py | 39 +++++++++++++++++++++++++++++++++++++++ tools/pip-requires | 1 + 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 tools/pip-requires diff --git a/README.md b/README.md index 4a3b78957..f38ffcb65 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,3 @@ TaskFlow ======== A library to do [jobs, tasks, workflows] in a HA manner using different backends. - diff --git a/setup.py b/setup.py index e69de29bb..80723ffbf 100644 --- a/setup.py +++ b/setup.py @@ -0,0 +1,39 @@ +#!/usr/bin/env python + +import os +import setuptools + + +def read_requires(base): + path = os.path.join('tools', base) + requires = [] + if not os.path.isfile(path): + return requires + with open(path, 'rb') as h: + for line in h.read.splitlines(): + line = line.strip() + if len(line) == 0 or line.startswith("#"): + continue + requires.append(line) + return requires + + +setuptools.setup(name='taskflow', + version='0.0.1', + author='OpenStack', + license='Apache Software License', + description='Taskflow state management library.', + long_description='The taskflow library provides core functionality that ' + 'can be used to build [resumable, reliable, ' + 'easily understandable, ...] highly available ' + 'systems which process workflows in a structured manner.', + author_email='openstack-dev@lists.openstack.org', + url='http://www.openstack.org/', + tests_require=read_requires('test-requires'), + install_requires=read_requires('pip-requires'), + classifiers=[ + 'Development Status :: 4 - Beta', + 'License :: OSI Approved :: Apache Software License', + 'Operating System :: POSIX :: Linux', + 'Programming Language :: Python :: 2.6', ], +) \ No newline at end of file diff --git a/tools/pip-requires b/tools/pip-requires new file mode 100644 index 000000000..c15e57adf --- /dev/null +++ b/tools/pip-requires @@ -0,0 +1 @@ +oslo.cfg>=1.1.0