-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
37 lines (29 loc) · 927 Bytes
/
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
from setuptools import setup, find_packages
import sys
import os
version = __import__('smartcache').version
install_requires = []
for k in ['hash_ring', 'redis', 'docopt']:
try:
__import__(k)
except ImportError:
install_requires.append(k)
if sys.version_info < (2, 7):
install_requires.append('unittest2')
kwargs = {}
readme_path = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(readme_path, 'README.rst')) as f:
kwargs['long_description'] = f.read()
setup(
name="smartcache",
version=version,
author="Wecatch.me",
author_email="[email protected]",
url="http://github.com/wecatch/smartcache",
license="http://www.apache.org/licenses/LICENSE-2.0",
description="smartcache is a friendly redis api",
keywords='cache redis objectcache hash_ring shard',
packages=find_packages(),
install_requires=install_requires,
**kwargs
)