forked from xenserver/planex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (28 loc) · 1.06 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
"""
python-setuptools definition for planex
"""
import os
from setuptools import setup
def read_version():
"""Extract the version number from the version file."""
setup_py_path = os.path.dirname(os.path.realpath(__file__))
version_file = os.path.join(setup_py_path, 'config', 'version')
with open(version_file, 'r') as handle:
ver = handle.read().replace('\n', '')
return ver
setup(name='planex',
version=read_version(),
packages=['planex', 'planex.cmd'],
package_data={'planex': ['Makefile.rules']},
entry_points={
'console_scripts': [
'planex-build-mock = planex.cmd.mock:main',
'planex-clone = planex.cmd.clone:main',
'planex-create-mock-config = planex.cmd.createmockconfig:main',
'planex-depend = planex.cmd.depend:main',
'planex-fetch = planex.cmd.fetch:main',
'planex-init = planex.cmd.init:main',
'planex-make-srpm = planex.cmd.makesrpm:main',
'planex-pin = planex.cmd.pin:main'
]
})