-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
55 lines (47 loc) · 1.73 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
#!/usr/bin/env python
import os
import re
import sys
from setuptools import setup
DIRNAME = os.path.abspath(os.path.dirname(__file__))
rel = lambda *parts: os.path.abspath(os.path.join(DIRNAME, *parts))
with open(rel('README.rst')) as handler:
README = handler.read()
with open(rel('flask_redis.py')) as handler:
INIT_PY = handler.read()
INSTALL_REQUIRES = {
2: ['Flask>=0.8', 'redis>=2.4.11'],
3: ['Flask>=0.10.1', 'redis>=2.6.2'],
}
VERSION = re.findall("__version__ = '([^']+)'", INIT_PY)[0]
setup(
name='Flask-And-Redis',
version=VERSION,
description='Simple as dead support of Redis database for Flask apps.',
long_description=README,
author='Igor Davydenko',
author_email='[email protected]',
url='https://github.com/playpauseandstop/Flask-And-Redis',
install_requires=INSTALL_REQUIRES[sys.version_info[0]],
py_modules=['flask_redis'],
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Operating System :: OS Independent',
'Topic :: Utilities',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: BSD License',
],
keywords='flask redis',
license='BSD License',
)