forked from CentOS-PaaS-SIG/linchpin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (42 loc) · 1.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
import os
import ast
from setuptools import setup, find_packages
from pip.req import parse_requirements
import os
with file('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()
ignore_dir = ['.git']
setup(
name='linchpin',
version=ver,
description = 'Ansible based multi cloud orchestrator',
author = 'samvaran kashyap rallabandi',
author_email = '[email protected]',
url = 'http://linch-pin.readthedocs.io/',
setup_requires=required,
install_requires=required,
entry_points='''
[console_scripts]
linchpin=linchpin:runcli
''',
extras_require = {
'krbV': ["python-krbV"],
'beaker': ['beaker-client==23.3'],
'docs': ["docutils","sphinx","sphinx_rtd_theme"],
'tests': ["nose","mock","coverage"],
'libvirt': ["libvirt-python>=3.0.0", "lxml"],
},
dependency_links = ['https://github.com/eevee/camel/archive/v0.1.tar.gz#egg=camel-99.1'],
zip_safe=False,
packages=find_packages(),
include_package_data=True,
scripts=['scripts/linchpin_complete.sh']
)