forked from Mizzou-CBMI/COSMOS2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
83 lines (75 loc) · 2.4 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
from distutils.core import setup
import os
import re
import sys
from setuptools import find_packages
with open(os.path.join(os.path.dirname(__file__), 'cosmos/VERSION'), 'r') as fh:
__version__ = fh.read().strip()
def find_all(path, reg_expr, inverse=False, remove_prefix=False):
if not path.endswith('/'):
path = path + '/'
for root, dirnames, filenames in os.walk(path):
for filename in filenames:
match = re.search(reg_expr, filename) is not None
if inverse:
match = not match
if match:
out = os.path.join(root, filename)
if remove_prefix:
out = out.replace(path, '')
yield out
install_requires = [
"decorator",
"flask",
'funcsigs',
'blinker',
"sqlalchemy",
"black_magic==0.0.10", # to get a signature preserving partial() in cosmos.api
'flask-sqlalchemy',
'networkx',
"enum34",
"six",
"SQLAlchemy-Utils",
# "pyparsing==1.5.7",
'psutil',
"drmaa",
'more_itertools'
]
if sys.version_info < (3,):
# package_dir = {'': 'cosmos'}
package_data = {'cosmos': list(find_all('cosmos/', '.py|.pyc$', inverse=True, remove_prefix=True))}
install_requires += ['futures', 'configparser']
else:
package_dir = {'': 'cosmos'}
package_data = {'cosmos': list(find_all('cosmos/', '.py|.pyc$', inverse=True, remove_prefix=True))}
setup(
name="cosmos-wfm",
version=__version__,
scripts=['bin/cosmos'],
description="Workflow Management System",
url="https://cosmos.hms.harvard.edu/",
author="Erik Gafni",
author_email="[email protected]",
maintainer="Erik Gafni",
maintainer_email="[email protected]",
license="MIT",
install_requires=install_requires,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
packages=find_packages(),
# package_dir=package_dir,
include_package_data=True,
package_data=package_data,
classifiers=[
'Programming Language :: Python :: 2.7',
# 'Programming Language :: Python :: 3',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Software Development',
'Topic :: Utilities',
]
)