import os

from setuptools import find_packages, setup

with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
    README = readme.read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

install_requires = [
    'dj-database-url==0.4.1',
    'django-haystack==2.6.0',
    'django>=1.9,<1.10',
    # TODO O django-admin-bootstrapped 2.5.7 não inseriu a mudança que permite
    # a compatibilidade com Django 1.9+. A linha abaixo será mudada quando uma
    # nova versão do django-admin-bootstrapped for lançada
    # 'git+git://github.com/django-admin-bootstrapped/
    #      django-admin-bootstrapped.git',
    'django-bootstrap3==7.0.1',
    'django-bower==5.1.0',
    'django-braces==1.9.0',
    'django-compressor==2.0',
    'django-crispy-forms==1.6.0',
    'django-extensions==1.6.7',
    'django-extra-views==0.8.0',
    'django-filter==0.15.3',
    'django-floppyforms==1.6.2',
    'django-model-utils==2.5',
    'django-sass-processor==0.5.4',
    'djangorestframework',
    'drfdocs',
    'easy-thumbnails==2.3',
    # 'git+git://github.com/interlegis/trml2pdf.git',
    'libsass==0.11.1',
    'psycopg2==2.7.3',
    'python-decouple==3.0',
    'pytz==2016.4',
    'pyyaml==3.11',
    'rtyaml==0.0.3',
    'textract==1.5.0',
    'unipath==1.1',
    'pysolr==3.6.0',
    'python-magic==0.4.12',
    'gunicorn==19.6.0',
    'django-reversion==2.0.8',
    'WeasyPrint==0.42',
    'whoosh==2.7.4'
]
setup(
    name='interlegis-sapl',
    version='3.1.48',
    packages=find_packages(),
    include_package_data=True,
    license='GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007',
    description='SAPL - Legislative Process Support System',
    long_description=README,
    url='https://github.com/interlegis/sapl',
    author='interlegis',
    author_email='',
    classifiers=[
        'Environment :: Web Environment',
        'Framework :: Django',
        'Framework :: Django :: 1.9',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',  # example license
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
    ],
    install_requires=install_requires,
)