import os

from setuptools import find_packages
from setuptools import setup


def get_install_requires():
    if os.environ.get('READTHEDOCS', None) == 'True':
        return [
            'mock>=1.3.0',
        ]
    return [
        'alembic==0.8.6',
        'bibtexparser>=0.6.2',
        'click>=6.2',
        'marshmallow>=2.4.2',
        'nltk>=3.1',
        'numpy>=1.9.2',
        'psycopg2==2.6.1',
        'pyenchant>=1.6',
        'SQLAlchemy==1.0.12',
    ]


setup(
    name='condor-ir',
    version='1.0.0',
    author='Oscar David Arbeláez <@odarbelaeze>, German Augusto Osorio',
    author_email='odarbelaeze@gmail.com',
    packages=find_packages(),
    install_requires=get_install_requires(),
    tests_require=[
        'cov-core>=1.15.0',
        'coverage>=3.7.1',
        'py>=1.4.29',
        'pytest>=2.8.0',
        'pytest-cov>=1.8.1',
    ],
    setup_requires=[
        'pytest-runner>=2.7,<3dev',
    ],
    entry_points='''
    [console_scripts]
    condorpopulate=lsa.scripts.populate:lsapopulate
    condormodel=lsa.scripts.model:lsamodel
    condorquery=lsa.scripts.query:lsaquery
    ''',
    url='https://github.com/odarbelaeze/lsa-program',
    download_url='https://github.com/odarbelaeze/condor-ir/tarball/1.0.0',
    keywords=['lsa', 'search', 'search engine', 'semantics', ],
    description='A latent semantic search engine implementation',
)

@@ -990,19 +990,22 @@
 opulate=
-lsa
+condor
 .scripts
@@ -1042,19 +1042,22 @@
 ormodel=
-lsa
+condor
 .scripts
@@ -1088,19 +1088,22 @@
 orquery=
-lsa
+condor
 .scripts

Fix entry points