#!/usr/bin/env python
try:
    from setuptools import setup
except:
    from distutils.core import setup

try:
    long_description = open('README.md', 'rt').read()
except IOError:
    long_description = ''

setup(
    name="repos",
    version="0.1",
    packages=["repos"],
    entry_points={
        # http://pythonhosted.org/setuptools/setuptools.html#automatic-script-creation  # noqa
        'console_scripts': [
            'repos = repos.script:main',
        ],
        # command entry points via cliff
        'repos': [
            'add = repos.AddCommand:AddCommand',
            'check = repos.CheckCommand:CheckCommand',
            'find = repos.FindCommand:FindCommand',
            'next = repos.NextCommand:NextCommand',
            'rm = repos.RmCommand:RmCommand',
        ],
    },
    install_requires=[
        "GitPython>0.3.1",  # Tried with 0.3.2 RC1
        "cliff>1.5.0",  # Used 1.5.2
    ],

    author="Von Welch",
    author_email="von@vwelch.com",
    description="Manage my git repositories",
    long_description=long_description,
    url='https://github.com/von/repos',
    license="Apache2",
)
