forked from nimbusproject/epuharness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (65 loc) · 2.67 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
#!/usr/bin/env python
"""
@file setup.py
@see http://peak.telecommunity.com/DevCenter/setuptools
"""
import sys
import os
# Add /usr/local/include to the path for macs, fixes easy_install for several packages (like gevent and pyyaml)
if sys.platform == 'darwin':
os.environ['C_INCLUDE_PATH'] = '/usr/local/include'
version = '0.1.2-dev'
setupdict = {
'name' : 'epuharness',
'version' : version,
'description' : 'OOICI CEI Elastic Processing Unit Test Harness',
'url': 'https://confluence.oceanobservatories.org/display/CIDev/Common+Execution+Infrastructure+Development',
'download_url' : 'http://sddevrepo.oceanobservatories.org/releases',
'license' : 'Apache 2.0',
'author' : 'CEI',
'author_email' : '[email protected]',
'keywords': ['ooici','cei','epu'],
'classifiers' : [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering'],
}
from setuptools import setup, find_packages
setupdict['packages'] = find_packages()
setupdict['dependency_links'] = [
'https://github.com/ooici/epu/tarball/master#egg=epu-1.3.0',
'https://github.com/nimbusproject/pidantic/tarball/master#egg=pidantic-0.2',
'https://github.com/ooici/eeagent/tarball/master#egg=eeagent-0.2',
'https://github.com/nimbusproject/ceiclient/tarball/master#egg=ceiclient-0.2',
'https://github.com/apache/libcloud/tarball/trunk#egg=apache-libcloud-0.14.0-dev',
'http://sddevrepo.oceanobservatories.org/releases',
]
setupdict['test_suite'] = 'epuharness'
# ssl package won't install on 2.6+, but is required otherwise.
# also, somehow the order matters and ssl needs to be before ioncore
# in this list (at least with setuptools 0.6c11).
setupdict['install_requires'] = []
if sys.version_info < (2, 6, 0):
setupdict['install_requires'].append('ssl==1.15-p1')
setupdict['install_requires'] += ['pyyaml',
'dashi',
'gevent>=0.13.7',
'pidantic',
'epu',
'apache-libcloud>=0.11.1',
'eeagent',
'ceiclient',
]
setupdict['tests_require'] = ['nose']
setupdict['test_suite'] = 'nose.collector'
setupdict['entry_points'] = {
'console_scripts': [
'epu-harness=epuharness.cli:main',
]
}
setupdict['package_data'] = {'epuharness': ['config/*.yml']}
setup(**setupdict)