import os
#from distutils.core import setup
from setuptools import setup

here = os.path.abspath(os.path.dirname(__file__))
about = dict()
with open(os.path.join(here, 'futurepy', '__version__.py'), 'r') as f:
    exec(f.read(), about)

with open(os.path.join(here, 'README.md'), 'r') as f:
    long_description = f.read()

try:
    download_path = sorted(os.listdir(os.path.join(here, 'dist')))[-1]
except FileNotFoundError:
    download_path = 'futurepy-0.0.2.tar.gz'
except IndexError:
    download_path = 'futurepy-0.0.2.tar.gz'

setup(
  name='futurepy',
  packages=['futurepy'],
  version=about['__version__'],
  license='BSD',
  description='An unofficial cli version for FutureMe',
  long_description=long_description,
  long_description_content_type='text/markdown',
  author='guiszk',
  author_email='guiszk@protonmail.com',
  url='https://github.com/guiszk/futurepy',
  download_url='https://github.com/guiszk/futurepy/dist/' + download_path,
  keywords=['api', 'futureme', 'python'],
  install_requires=['requests', 'docopt'],
  classifiers=[
    'Development Status :: 3 - Alpha',
    'Intended Audience :: Developers',
    'Programming Language :: Python',
    'Topic :: Software Development :: Libraries :: Python Modules',
    'License :: OSI Approved :: BSD License',
    'Programming Language :: Python :: 3',
  ],
  entry_points={
    'console_scripts': [
      'futurepy=futurepy.futurepy:main',
    ],
  },
)
