from setuptools import setup
import glim
import os
from os.path import exists

def read(*paths):
    """Build a file path from *paths* and return the contents."""
    with open(os.path.join(*paths), 'r') as f:
        return f.read()

try:
    from setuptools import setup, find_packages
except ImportError:
    from distutils.core import setup, find_packages

setup(
    author='Aras Can Akin',
    author_email='aacanakin@gmail.com',
    name='glim',
    packages=find_packages(exclude=['app', 'ext']),
    version=glim.version,
    description='A modern framework for the web',
    long_description=read('README.rst'),
    entry_points={
        'console_scripts': ['glim=glim.cli:main']
    },
    url='https://github.com/aacanakin/glim',
    download_url='https://github.com/aacanakin/glim/archive/v%s.zip' % glim.version,
    keywords=[
        'framework',
        'web framework',
        'api development',
        'model view controller',
        'Werkzeug',
        'SQLAlchemy',
        'Jinja2',
        'termcolor',
    ],
    install_requires=[
        "Werkzeug >= 0.9",
        "Jinja2 >= 2.7.3",
        "SQLAlchemy >= 0.9.7",
        "termcolor >= 1.1.0"
    ],
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ]
)

from setuptools import setup
import glim
import os
from os.path import exists

def read(*paths):
    """Build a file path from *paths* and return the contents."""
    with open(os.path.join(*paths), 'r') as f:
        return f.read()

try:
    from setuptools import setup, find_packages
except ImportError:
    from distutils.core import setup, find_packages

setup(
    author='Aras Can Akin',
    author_email='aacanakin@gmail.com',
    name='glim',
    packages=find_packages(),
    version=glim.version,
    description='A modern framework for the web',
    long_description=read('README.rst'),
    entry_points={
        'console_scripts': ['glim=glim.cli:main']
    },
    url='https://github.com/aacanakin/glim',
    download_url='https://github.com/aacanakin/glim/archive/v%s.zip' % glim.version,
    keywords=[
        'framework',
        'web framework',
        'api development',
        'model view controller',
        'Werkzeug',
        'SQLAlchemy',
        'Jinja2',
        'termcolor',
    ],
    install_requires=[
        "Werkzeug >= 0.9",
        "Jinja2 >= 2.7.3",
        "SQLAlchemy >= 0.9.7",
        "termcolor >= 1.1.0"
    ],
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ]
)

remove ext, app exclusion from pypi setup