forked from CentOS-PaaS-SIG/linchpin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (62 loc) · 2.14 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
#!/usr/bin/env python
from __future__ import absolute_import
import ast
import io
import os
from setuptools import setup, find_packages
with open('linchpin/version.py') as f:
for line in f:
if line.startswith('__version__'):
ver = ast.parse(line).body[0].value.s
break
dir_path = os.path.dirname(os.path.realpath(__file__))
# reading description from README.rst
with io.open(os.path.join(dir_path, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
# reading requirements from requirements.txt
with io.open(os.path.join(dir_path, 'requirements.txt')) as f:
required = f.read().splitlines()
install_required = list(required)
ignore_dir = ['.git']
azure_deps = open("requirements-azure.txt", "r").readlines()
setup(
name='linchpin',
version=ver,
description='Ansible-based multi-cloud provisioner',
long_description=long_description,
author='samvaran kashyap rallabandi',
author_email='[email protected]',
url='http://linchpin.readthedocs.io/',
install_requires=install_required,
entry_points='''
[console_scripts]
linchpin=linchpin.shell:runcli
''',
tests_require=["pytest<=4.4.0",
"nose",
"mock",
"coverage",
"flake8",
"molecule<=2.22",
"radon"],
extras_require={
'krbV': ["python-krbV"],
'beaker': ['beaker-client>=27.0', 'bottle', 'gssapi'],
'docs': ["docutils", "sphinx", "sphinx_rtd_theme", "sphinx-automodapi"],
'tests': ["nose", "mock", "coverage", "flake8",
"pytest<=4.4.0", "pytest-runner", "molecule<=2.22",
"molecule[docker]", "radon"],
'libvirt': ["libvirt-python>=3.0.0", "lxml"],
'vmware': ["PyVmomi>=6.7.1"],
'docker': ["docker-py>=1.7.0"],
'azure': azure_deps,
'openshift': ['openshift>=0.8.6,<0.8.8', 'kubernetes-validate']
},
zip_safe=False,
packages=find_packages(),
include_package_data=True,
scripts=[
'scripts/install_libvirt_deps.sh',
'scripts/install_selinux_venv.sh'
]
)