forked from karmab/kcli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (58 loc) · 2.05 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
# coding=utf-8
from setuptools import setup, find_packages
from setuptools.extern.packaging import version
version.Version = version.LegacyVersion
import os
INSTALL = ['argcomplete', 'PyYAML', 'prettytable', 'jinja2', 'flask', 'libvirt-python>=2.0.0', 'requests']
AWS = ['boto3']
GCP = ['google-api-python-client', 'google-auth-httplib2', 'google-cloud-dns', 'google-cloud-storage']
KUBEVIRT = ['kubernetes']
OPENSTACK = ['python-cinderclient', 'python-neutronclient', 'python-glanceclient', 'python-keystoneclient',
'python-novaclient', 'python-swiftclient']
OVIRT = ['ovirt-engine-sdk-python']
PACKET = ['packet-python']
VSPHERE = ['requests', 'pyvmomi']
IBMCLOUD = ['google-crc32c==1.1.2', 'ibm_vpc', 'ibm-cos-sdk', 'ibm-platform-services', 'ibm-cloud-networking-services']
# 'cos-aspera']
GRPC = ['grpcio', 'grpcio-reflection']
EXTRAS = ['pyghmi']
ALL = ['docker>=2.0'] + ['podman'] + ['websockify'] + GRPC + EXTRAS + AWS + GCP + KUBEVIRT + OPENSTACK + OVIRT\
+ PACKET + VSPHERE + IBMCLOUD
description = 'Provisioner/Manager for Libvirt/Ovirt/Gcp/Aws/Openstack/Kubevirt/IBM Cloud and containers'
long_description = description
if os.path.exists('README.rst'):
long_description = open('README.rst').read()
setup(
name='kcli',
version='99.0',
include_package_data=True,
packages=find_packages(),
zip_safe=False,
description=description,
long_description=long_description,
url='http://github.com/karmab/kcli',
author='Karim Boumedhel',
author_email='[email protected]',
license='ASL',
install_requires=INSTALL,
extras_require={
'all': ALL,
'aws': AWS,
'gcp': GCP,
'kubevirt': KUBEVIRT,
'openstack': OPENSTACK,
'ovirt': OVIRT,
'vsphere': VSPHERE,
'ibm': IBMCLOUD,
'grpc': GRPC,
},
entry_points='''
[console_scripts]
kcli=kvirt.cli:cli
kweb=kvirt.web.main:run
klist.py=kvirt.klist:main
kbmc=kvirt.kbmc:main
krpc=kvirt.krpc.server:main
kclirpc=kvirt.krpc.cli:cli
''',
)