<commit_before>#!/usr/bin/env python

import os
import re

from distutils.core import setup


DIRNAME = os.path.abspath(os.path.dirname(__file__))
rel = lambda *parts: os.path.abspath(os.path.join(DIRNAME, *parts))

README = open(rel('README.rst')).read()
INIT_PY = open(rel('flask_redis.py')).read()
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='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/playpauseandstop/Flask-And-Redis',
    install_requires=[
        'Flask',
        'redis',
    ],
    py_modules=[
        'flask_redis',
    ],
    platforms='any',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Operating System :: OS Independent',
        'Topic :: Utilities',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'License :: OSI Approved :: BSD License',
    ],
    keywords='flask redis',
    license='BSD License',
)<commit_msg>Fix install requirements due to Python versions.<commit_after>#!/usr/bin/env python

import os
import re
import sys

from distutils.core 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='<NAME>',
    author_email='<EMAIL>',
    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 :: 4 - Beta',
        'Environment :: Web Environment',
        'Operating System :: OS Independent',
        'Topic :: Utilities',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'License :: OSI Approved :: BSD License',
    ],
    keywords='flask redis',
    license='BSD License',
)
{'fraction_non_alphanumeric': 0.1607609101081686, 'fraction_numerical': 0.007459903021260724, 'mean_word_length': 3.411184210526316, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2779211', 'n_tokens_mistral': 882, 'n_tokens_neox': 862, 'n_words': 188}