forked from StreetHawkInc/riak-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·53 lines (46 loc) · 1.6 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
52
53
#!/usr/bin/env python
import codecs
import sys
from setuptools import setup, find_packages
from version import get_version
from commands import setup_timeseries, build_messages
install_requires = ['six >= 1.8.0', 'basho_erlastic >= 2.1.1']
requires = ['six(>=1.8.0)', 'basho_erlastic(>= 2.1.1)']
install_requires.append('protobuf >=4.21.5, <5.0')
requires.append('protobuf(>=4.21.5, <5.0)')
with codecs.open('README.md', 'r', 'utf-8') as f:
readme_md = f.read()
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
with codecs.open('README.rst', 'w', 'utf-8') as f:
f.write(long_description)
except(IOError, ImportError):
long_description = readme_md
setup(
name='riak',
version=get_version(),
packages=find_packages(),
requires=requires,
install_requires=install_requires,
package_data={'riak': ['erl_src/*']},
description='Python client for Riak',
long_description=long_description,
zip_safe=True,
include_package_data=True,
license='Apache 2',
platforms='Platform Independent',
author='Basho Technologies',
author_email='[email protected]',
test_suite='riak.tests.suite',
url='https://github.com/basho/riak-python-client',
cmdclass={
'build_messages': build_messages,
'setup_timeseries': setup_timeseries
},
classifiers=['License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.9',
'Topic :: Database']
)