forked from youknowone/ring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
84 lines (74 loc) · 1.98 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
from __future__ import with_statement
from setuptools import setup
import sys
tests_require = [
'pytest>=3.0.2', 'pytest-cov', 'mock', 'patch',
'pymemcache',
'redis', 'requests',
]
try:
import __pypy__ # noqa
except ImportError:
tests_require.extend([
'pylibmc',
])
if sys.version_info[0] == 2:
tests_require.extend([
'python-memcached',
])
else:
tests_require.extend([
'python3-memcached',
])
if (3, 3) <= sys.version_info[:2] <= (3, 4):
tests_require.extend([
'asyncio',
])
if sys.version_info >= (3, 3):
if sys.version_info < (3, 5):
tests_require.append('pytest-asyncio==0.5.0')
else:
tests_require.append('pytest-asyncio')
tests_require.extend([
'aiomcache',
'aioredis',
])
def get_readme():
try:
with open('README.rst') as f:
return f.read().strip()
except IOError:
return ''
setup(
name='ring',
version='0.4.0',
description='The ultimate cache with built-in memcache & redis + asyncio support.',
long_description=get_readme(),
author='Jeong YunWon',
author_email='[email protected]',
url='https://github.com/youknowone/ring',
packages=(
'ring',
),
install_requires=[
'prettyexc>=0.6.0',
'callable>=0.1.1',
],
tests_require=tests_require + ['tox', 'tox-pyenv'],
extras_require={
'tests': tests_require,
},
classifiers=[
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
) # noqa