-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
58 lines (55 loc) · 2.2 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
"""Library installation requirements and info."""
import ast
import os
import re
import sys
from setuptools import find_packages
from setuptools import setup
if sys.version_info < (2, 7):
sys.stderr.write("ERROR: SlurmScale requires at least Python ver 2.7\n")
sys.exit(1)
# Cannot use "from slurmscale import get_version" because that would try to
# import the six package which may not be installed yet.
reg = re.compile(r'__version__\s*=\s*(.+)')
with open(os.path.join('slurmscale', '__init__.py')) as f:
for line in f:
m = reg.match(line)
if m:
version = ast.literal_eval(m.group(1))
break
# - pyslurm also needs to be installed but it can only be installed on a system
# with Slurm; it should be installed manually into the current venv
base_reqs = ['Cython>=0.24.1', 'cloudbridge>=0.2.0', 'ansible==2.1.5.0']
# Workaround for Keystone reqs: requests!=2.12.2,!=2.13.0,>=2.10.0
base_reqs += ['requests==2.12.5']
dev_reqs = (['tox>=2.3.1', 'sphinx>=1.4.8'] + base_reqs)
setup(name='slurmscale',
version=version,
description='An external library for delivering Slurm Elastic Computing',
author='Galaxy Project',
author_email='[email protected]',
url='https://github.com/afgane/slurmscale',
install_requires=base_reqs,
extras_require={
'full': base_reqs,
'dev': dev_reqs
},
packages=find_packages(),
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'],
test_suite="test"
)