forked from testvidya11/softlayer-api-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
85 lines (78 loc) · 2.24 KB
/
setup.py
File metadata and controls
85 lines (78 loc) · 2.24 KB
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
84
85
try:
from setuptools import setup
except ImportError:
from distutils.core import setup # NOQA
import sys
import os
# Not supported for Python versions < 2.6
if sys.version_info <= (2, 6):
print("Python 2.6 or greater is required.")
sys.exit(1)
# Python 3 conversion
extra = {}
if sys.version_info >= (3,):
extra['use_2to3'] = True
requires = [
'distribute',
'prettytable >= 0.7.0',
'docopt == 0.6.1',
'requests'
]
if sys.version_info < (2, 7):
requires.append('importlib')
description = "A library to use SoftLayer's API"
if os.path.exists('README.md'):
f = open('README.md')
try:
long_description = f.read()
finally:
f.close()
else:
long_description = description
setup(
name='SoftLayer',
version='2.3.1',
description=description,
long_description=long_description,
author='SoftLayer Technologies, Inc.',
packages=[
'SoftLayer',
'SoftLayer.CLI',
'SoftLayer.CLI.modules',
'SoftLayer.managers',
'SoftLayer.tests',
'SoftLayer.tests.CLI',
'SoftLayer.tests.managers',
],
license='The BSD License',
zip_safe=False,
url='http://github.com/softlayer/softlayer-api-python-client',
entry_points={
'console_scripts': [
'sl = SoftLayer.CLI.core:main',
],
},
package_data={
'SoftLayer': ['tests/fixtures/*'],
},
test_suite = 'nose.collector',
install_requires=requires,
classifiers=[
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
**extra
)