-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
62 lines (54 loc) · 1.87 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
54
55
56
57
58
59
60
61
62
from setuptools import setup, find_packages
import codecs
import os
from commands import (docker_build, docker_start, docker_stop, setup_riak,
create_bucket_types, Test)
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
"""
Build an absolute path from *parts* and and return the contents of the
resulting file. Assume UTF-8 encoding.
"""
with codecs.open(os.path.join(HERE, *parts), "rb", "utf-8") as f:
return f.read()
def req_file(filename):
with open(filename) as f:
content = f.readlines()
return [x.strip() for x in content]
setup(
name='aioriak',
version='0.2.0',
description='Async implementation of Riak DB python client',
long_description=read("README.rst"),
author='Makc Belousov',
author_email='m.belousov@rambler-co.ru',
url='https://github.com/rambler-digital-solutions/aioriak',
keywords='riak asyncio client',
packages=find_packages(exclude=('*.tests',)),
include_package_data=True,
zip_safe=False,
license='MIT',
install_requires=req_file('requirements.txt'),
tests_require=req_file('requirements-tests.txt'),
extras_require={
'dev': req_file('requirements-dev.txt'),
},
cmdclass={
'test': Test,
'docker_build': docker_build,
'docker_start': docker_start,
'docker_stop': docker_stop,
'setup_riak': setup_riak,
'create_bucket_types': create_bucket_types,
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Database',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)