from setuptools import setup

def read_md(f):
    try:
        try:
            from pypandoc import convert
            return convert(f, 'rst')

        except ImportError:
            print("pypandoc not found, could not convert Markdown to RST")
            return open(f, 'r').read()

    except (IOError, RuntimeError):
        print("Could not read readme.md")
        return ''

setup(
    name='dxurl',

    description='Dropbox command line client',

    version='0.0.1',

    author='Neil Freeman',

    url='http://github.com/fitnr/dxurl',

    author_email='contact@fakeisthenewreal.org',

    packages=['dxurl'],

    install_requires=[
        'dropbox'
    ],

    license='GPLv3',

    entry_points={
        'console_scripts': [
            'dxurl=dxurl.cli:main',
        ]
    },

    classifiers=[
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Utilities',
    ],

)
