forked from Incubaid/arakoon
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
41 lines (33 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
34
35
36
37
38
39
40
41
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_version():
return shell(["git", "describe", "--tags", "--exact-match", "--dirty"])
def get_license():
data = None
with open('LICENSE','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.
Git version: %s
""" % (get_version(),)
setup(name='arakoon',
version=get_version(),
package_dir={'arakoon':'src/client/python'},
packages=['arakoon'],
data_files = [('license',['LICENSE'])],
url='https://github.com/openvstorage/arakoon',
description=description,
author='openvstorage.com & incubaid',
classifiers=['Development Status :: 5 - Production/Stable',
'Operating System :: OS Independent',
'Topic :: Database',
],
zip_safe=True,
license= get_license()
)