# -*- coding: utf-8 -*-
from setuptools import setup
from os import path

# Imports content of requirements.txt into setuptools' install_requires
with open('requirements.txt') as f:
    requirements = f.read().splitlines()


def get_version():
    with open('src/dometawrite/dometawrite.py') as f:
        for line in f:
            if line.startswith('__version__'):
                return eval(line.split('=')[-1])


# Imports content of README.md into setuptools' long_description
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()


setup(name='dometawrite',
      version=get_version(),
      description='Creates configuration files based on DigitalOcean API Data.',
      long_description=long_description,
      keywords='''configuration,api,templates,digitalocean,devops,sysadmin''',
      author='Arturo "Buanzo" Busleiman',
      author_email='buanzo@buanzo.com.ar',
      url='https://github.com/buanzo/digitalocean-metawrite',
      license='GPLv3',
      zip_safe=False,
      python_requires='>=3.6',
      packages=['dometawrite'],
      package_dir={'dometawrite': 'src/dometawrite'},
#      package_data={'dometawrite': ['src/dometawrite/templates/*.jinja']},
      include_package_data=True,
      install_requires=requirements,
      entry_points={
         'console_scripts': [
            'dometawrite = dometawrite.dometawrite:run',
         ],
      },
      classifiers=[
         'Environment :: Console',
         'Intended Audience :: Developers',
         'Intended Audience :: System Administrators',
         'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
         'Natural Language :: English',
         'Operating System :: POSIX :: Linux',
         'Operating System :: POSIX :: Other',
         'Operating System :: POSIX',
         'Programming Language :: Python',
         'Programming Language :: Python :: 3 :: Only',
         'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: 3.8',
         'Programming Language :: Python :: Implementation :: PyPy', ],)
