-
Notifications
You must be signed in to change notification settings - Fork 144
/
setup.py
65 lines (62 loc) · 2.37 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
# coding=utf-8
from setuptools import setup, find_packages
import os
INSTALL = ['argcomplete', 'PyYAML', 'prettytable', 'jinja2', 'libvirt-python>=2.0.0']
AWS = ['boto3']
AZURE = ['azure-mgmt-compute', 'azure-mgmt-network', 'azure-mgmt-core', 'azure-identity', 'azure-mgmt-resource',
'azure-mgmt-marketplaceordering', 'azure-storage-blob', 'azure-mgmt-dns', 'azure-mgmt-containerservice',
'azure-mgmt-storage', 'azure-mgmt-msi', 'azure-mgmt-authorization']
HCLOUD = ['hcloud']
GCP = ['google-api-python-client', 'google-auth-httplib2', 'google-cloud-dns', 'google-cloud-storage',
'google-cloud-container', 'google-cloud-compute']
OPENSTACK = ['python-cinderclient', 'python-neutronclient', 'python-glanceclient', 'python-keystoneclient',
'python-novaclient', 'python-swiftclient']
OVIRT = ['ovirt-engine-sdk-python']
PACKET = ['packet-python']
PROXMOX = ['proxmoxer']
VSPHERE = ['pyvmomi', 'cryptography']
IBMCLOUD = ['google-crc32c==1.1.2', 'ibm_vpc', 'ibm-cos-sdk', 'ibm-platform-services', 'ibm-cloud-networking-services']
EXTRAS = ['pyghmi', 'podman', 'websockify']
ALL = EXTRAS + AWS + GCP + OPENSTACK + OVIRT + PACKET + VSPHERE + IBMCLOUD + AZURE + HCLOUD
description = 'Provisioner/Manager for Libvirt/Vsphere/Aws/Gcp/Hcloud/Kubevirt/Ovirt/Openstack/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='karimboumedhel@gmail.com',
license='ASL',
install_requires=INSTALL,
extras_require={
'all': ALL,
'libvirt': [],
'aws': AWS,
'azure': AZURE,
'gcp': GCP,
'hcloud': HCLOUD,
'ibm': IBMCLOUD,
'openstack': OPENSTACK,
'ovirt': OVIRT,
'packet': PACKET,
'proxmox': PROXMOX,
'vsphere': VSPHERE
},
entry_points='''
[console_scripts]
kcli=kvirt.cli:cli
kweb=kvirt.web.main:run
klist.py=kvirt.klist:main
ksushy=kvirt.ksushy.main:run
ignitionmerger=kvirt.ignitionmerger:cli
ekstoken=kvirt.ekstoken:cli
gketoken=kvirt.gketoken:cli
''',
)