forked from CentOS-PaaS-SIG/linchpin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (46 loc) · 1.47 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
#!/usr/bin/env python
import os
import ast
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
# reading requirements from requirements.txt
dir_path = os.path.dirname(os.path.realpath(__file__))
reqs_file = 'requirements.txt'.format(dir_path)
with open(reqs_file) as f:
required = f.read().splitlines()
setup_required = list(required)
setup_required.append('pytest-runner')
ignore_dir = ['.git']
setup(
name='linchpin',
version=ver,
description='Ansible based multi cloud provisioner',
author='samvaran kashyap rallabandi',
author_email='linchpin@redhat.com',
url='http://linchpin.readthedocs.io/',
setup_requires=setup_required,
install_requires=required,
entry_points='''
[console_scripts]
linchpin=linchpin.shell:runcli
''',
tests_require=["pytest", "nose", "mock", "coverage", "flake8"],
extras_require={
'krbV': ["python-krbV"],
'beaker': ['beaker-client>=23.3', 'python-krbV'],
'docs': ["docutils", "sphinx", "sphinx_rtd_theme"],
'tests': ["nose", "mock", "coverage", "flake8"],
'libvirt': ["libvirt-python>=3.0.0", "lxml"],
},
zip_safe=False,
packages=find_packages(),
include_package_data=True,
scripts=[
'scripts/install_libvirt_deps.sh',
'scripts/install_selinux_venv.sh'
]
)