-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
52 lines (40 loc) · 1.18 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
from setuptools import setup
from subprocess import Popen, PIPE
def shell(cmd):
v = Popen(cmd, stdout = PIPE).communicate()[0]
v2 = v.strip()
return v2
def get_info(option):
return shell(["hg","id",option])
def get_tag():
return get_info('-t')
def get_version():
return get_info('-i')
def get_branch():
return shell(["hg","branch"])
def get_license():
data = None
with open('COPYING','r') as f:
data = f.read()
return data
description =\
"""Arakoon is a simple distributed key value store.
This package provides a pure python client for Arakoon.
Mercurial version: %s
""" % (get_version(),)
setup(name='arakoon',
version=get_branch(),
package_dir={'arakoon':'src/client/python'},
packages=['arakoon'],
data_files = [('license',['COPYING'])],
url='http://www.arakoon.org',
description=description,
author='incubaid',
author_email='arakoon@incubaid.com',
classifiers=['Development Status :: 5 - Production/Stable',
'Operating System :: OS Independent',
'Topic :: Database',
],
zip_safe=True,
license= get_license()
)