49 lines
1.4 KiB
Python
Raw Normal View History

2013-05-07 14:48:18 -07:00
#!/usr/bin/env python
import os
import setuptools
def _clean_line(line):
line = line.strip()
line = line.split("#")[0]
line = line.strip()
return line
2013-05-07 14:48:18 -07:00
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:
2013-05-19 19:01:51 -05:00
for line in h.read().splitlines():
line = _clean_line(line)
if not line:
2013-05-07 14:48:18 -07:00
continue
requires.append(line)
return requires
setuptools.setup(
name='taskflow',
2013-05-07 14:48:18 -07:00
version='0.0.1',
author='OpenStack',
license='Apache Software License',
2013-05-17 01:22:31 -06:00
description='Taskflow structured state management library.',
2013-05-07 14:48:18 -07:00
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/',
2013-05-29 15:16:40 -07:00
packages=setuptools.find_packages(),
2013-05-07 14:48:18 -07:00
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', ],
)