from setuptools import setup, find_packages

requirements = [
    "alembic>=0.6.4, <1.0",
    "beautifulsoup4>=4.3.2, <5.0",
    "blinker>=1.3, <2.0",
    "Flask-Babel>=0.9, <1.0",
    "Flask-Cache>=0.12, <1.0",
    "Flask-Gravatar>=0.4.1, <1.0",
    "flask-heroku>=0.1.8, <1.0",
    "Flask-Login>=0.2.3, <0.2.4",       # was pinned to Flask-Login==0.2.3
    "Flask-Mail>=0.9.0, <1.0",
    "Flask-Misaka>=0.2.0, <1.0",
    "Flask-OAuth>=0.12, <0.13",         # was pinned to Flask-OAuth==0.12
    "Flask-SQLAlchemy>=1.0, <2.0",
    "Flask-WTF>=0.9.5, <0.9.6",             # was pinned to Flask-WTF==0.9.5
    "Flask>=0.10.1, <0.10.2",           # was pinned to Flask==0.10.1
    "html2text>=2014.4.5, <2016.1.1",
    "itsdangerous>=0.24, <1.0",
    "M2Crypto",
    "markdown>=2.4, <3.0",
    "psycopg2>=2.5.2, <3.0",
    "pygeoip>=0.3.1, <1.0",
    "python-dateutil>=2.2, <3.0",
    "raven>=4.1.1, <5.0",
    "requests>=2.2.1, <3.0",
    "SQLAlchemy>=0.7.8, <0.7.9",         # was pinned to SQLAlchemy==0.7.8
    "nose",
    "rednose",
    "redis",
    "sphinx",
    "coverage",
    "mock",
    "tox",
    "pyrax",
    "pillow",
    "flask-debugtoolbar",
    "factory_boy"
]

setup(
    name = 'pybossa',
    version = '0.2.1',
    packages = find_packages(),
    install_requires = requirements,
    dependency_links = ['git+https://github.com/Hypernode/M2Crypto#egg=M2Crypto-0.22.dev',
                        'git+https://github.com/andymccurdy/redis-py.git@976e72be529fdf741b75a71746f34c6530fc8ae9#egg=redis-dev'],
    # metadata for upload to PyPI
    author = 'SF Isle of Man Limited',
    # TODO: change
    author_email = 'info@pybossa.com',
    description = 'Open Source CrowdSourcing framework',
    long_description = '''PyBossa is an open source crowdsourcing solution for volunteer computing, thinking and sensing ''',
    license = 'AGPLv3',
    url = 'https://github.com/PyBossa/pybossa',
    download_url = '',
    include_package_data = True,
    classifiers = [
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU Affero v3',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ],
    entry_points = '''
    '''
)


@@ -1039,16 +1039,28 @@
   %22redis
+%3E=2.9, %3C2.10
 %22,%0A    %22

fix python redis version