-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
100 lines (93 loc) · 3.71 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
try:
from setuptools import setup
import setuptools
except ImportError:
raise ImportError(
"setuptools module required, please go to "
"https://pypi.python.org/pypi/setuptools and follow the instructions "
"for installing setuptools"
)
from codecs import open
from os import path
import sys
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
INSTALL_REQUIRES = ['apache-libcloud >= 2.0.0',
'blessed >= 1.14.2',
'gevent >= 1.3.6; python_version>="3.7"',
'gevent >= 1.2.2; python_version<"3.7"',
'colorama >= 0.3.9',
'configparser >= 3.5.0',
'future >= 0.14',
'pycrypto >= 2.6.1',
'PrettyTable >= 0.7.2']
EXTRAS_REQUIRE = {
":python_full_version<'2.7.9'": [
"requests >=2.5.1,<2.23.0",
"certifi <= 2015.9.6.2",
"pyOpenSSL>=17.0.0",
"lxml>=3.8",
"cssselect>=1.0.1",
"ndg-httpsclient>=0.4.0",
"pyasn1>=0.2.3",
"backports.ssl_match_hostname>=3.5.0"
],
":python_full_version>='2.7.9'": [
"requests >= 2.5.1"
]
}
if int(setuptools.__version__.split(".", 1)[0]) < 18:
assert "bdist_wheel" not in sys.argv, "setuptools 18 required for wheels."
# For legacy setuptools + sdist.
if sys.version_info[0:3] <= (2, 7, 8):
INSTALL_REQUIRES.append("requests >=2.5.1,<2.23.0")
INSTALL_REQUIRES.append("certifi <= 2015.9.6.2")
INSTALL_REQUIRES.append("pyOpenSSL>=17.0.0")
INSTALL_REQUIRES.append("lxml>=3.8")
INSTALL_REQUIRES.append("cssselect>=1.0.1")
INSTALL_REQUIRES.append("ndg-httpsclient>=0.4.0")
INSTALL_REQUIRES.append("pyasn1>=0.2.3")
INSTALL_REQUIRES.append("backports.ssl_match_hostname>=3.5.0")
EXTRAS_REQUIRE = {}
else:
INSTALL_REQUIRES.append("requests >= 2.5.1")
setup(
name='mcc',
packages=['mcc'],
package_data={'mcc': ['config.ini']},
entry_points={'console_scripts': ['mcc=mcc.core:main',
'mccl=mcc.core:list_only']},
version='0.9.8',
author="Robert Peteuil",
author_email="robert.s.peteuil@gmail.com",
url='https://github.com/robertpeteuil/multi-cloud-control',
download_url='https://pypi.python.org/pypi/mcc',
license='GNU General Public License v3 (GPLv3)',
description='Command-Line Instance Control for AWS, Azure, GCP and AliCloud',
keywords='aws-ec2 gcp-compute azure-vm alibaba alicloud utility ssh start stop connect',
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: System Administrators',
'Intended Audience :: Information Technology',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: System :: Distributed Computing',
'Topic :: System :: Systems Administration'],
long_description=long_description
)