#!/usr/bin/env python

# -----------------------------------------------------------------------------
# Copyright (c) 2013, The Qiita Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------------------------------
from setuptools import setup
from glob import glob

__version__ = "0.0.1-dev"


classes = """
    Development Status :: 2 - Pre-Alpha
    License :: OSI Approved :: BSD License
    Topic :: Scientific/Engineering :: Bio-Informatics
    Topic :: Software Development :: Libraries :: Application Frameworks
    Topic :: Software Development :: Libraries :: Python Modules
    Programming Language :: Python
    Programming Language :: Python :: 2.7
    Programming Language :: Python :: Implementation :: CPython
    Operating System :: POSIX :: Linux
    Operating System :: MacOS :: MacOS X
"""

long_description = """Qiita: Spot Patterns"""

classifiers = [s.strip() for s in classes.split('\n') if s]

setup(name='qiita-spots',
      version=__version__,
      long_description=long_description,
      license="BSD",
      description='Qiita: Spot Patterns',
      author="Qiita development team",
      author_email="mcdonadt@colorado.edu",
      url='https://github.com/biocore/qiita',
      test_suite='nose.collector',
      packages=['qiita_core',
                'qiita_db',
                'qiita_db/metadata_template/',
                'qiita_pet',
                'qiita_pet/handlers',
                'qiita_ware'
                ],
      package_data={'qiita_core': ['support_files/config_test.txt'],
                    'qiita_db': [
                        'support_files/*.sql',
                        'support_files/patches/*.sql',
                        'support_files/patches/python_patches/*.py',
                        'support_files/test_data/preprocessed_data/*',
                        'support_files/test_data/processed_data/*',
                        'support_files/test_data/raw_data/*',
                        'support_files/test_data/analysis/*',
                        'support_files/test_data/reference/*',
                        'support_files/test_data/job/*.txt',
                        'support_files/test_data/job/2_test_folder/*',
                        'support_files/test_data/uploads/1/a_folder/*.txt',
                        'support_files/test_data/uploads/1/.hidden_file.txt',
                        'support_files/test_data/uploads/1/uploaded_file.txt',
                        'support_files/test_data/templates/*',
                        'support_files/work_data/*'],
                    'qiita_pet': [
                        'static/css/*.css', 'static/img/*.png',
                        'static/img/*.gif', 'static/img/*.ico',
                        'static/js/*.js', 'static/vendor/css/*.css',
                        'static/vendor/css/images/*.png',
                        'static/vendor/fonts/glyphicons*.*',
                        'static/vendor/images/*.png',
                        'static/vendor/js/*.js',
                        'results/admin/jobname/*.html',
                        'templates/*.html']},
      scripts=glob('scripts/*'),
      extras_require={'test': ["nose >= 0.10.1", "pep8", 'mock'],
                      'doc': ["Sphinx >= 1.2.2", "sphinx-bootstrap-theme"]},
      install_requires=['psycopg2', 'click >= 3.3', 'future==0.13.0',
                        'bcrypt', 'pandas >= 0.15', 'numpy >= 1.7',
                        'tornado==3.1.1', 'toredis', 'redis',
                        'ipython[all] >= 2.4.1, < 2.5', 'pyparsing',
                        'h5py >= 2.3.1', 'biom-format', 'natsort', 'networkx',
                        'scikit-bio >= 0.2.3, < 0.3.0', 'wtforms == 2.0.1',
                        'qiime >= 1.9.0, < 1.10.0'],
      classifiers=classifiers
      )
