forked from basho/riak-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·36 lines (32 loc) · 1.02 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
#!/usr/bin/env python
import glob
import os
import subprocess
from setuptools import setup, find_packages
def make_docs():
if not os.path.exists('docs'):
os.mkdir('docs')
subprocess.call(['pydoc', '-w', 'riak'])
for name in glob.glob('*.html'):
os.rename(name, 'docs/%s' % name)
def make_pb():
subprocess.call(['protoc', '--python_out=.', './riak/transports/riakclient.proto'])
if __name__ == "__main__":
setup(
name='riak',
version='1.1.1',
packages = find_packages(),
install_requires = ['protobuf>=2.3.0'],
dependency_links = ["http://downloads.basho.com/support"],
package_data = {
'' : ['*.proto']
},
description='Python client for Riak',
zip_safe=True,
license='Apache 2',
platforms='Platform Independent',
author='Basho Technologies',
author_email='[email protected]',
test_suite='riak.tests.test_all',
url='https://bitbucket.org/basho/riak-python-client',
)