from setuptools import setup, find_packages
from codecs import open
from os import path
import io
import re


here = path.abspath(path.dirname(__file__))


with open(path.join(here, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()


with io.open("takler/__init__.py", "rt", encoding="utf8") as f:
    version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)


setup(
    name='takler',

    version=version,

    description='A workflow tool',
    long_description=long_description,
    long_description_content_type='text/markdown',

    url='https://github.com/perillaroc/takler',

    author='perillaroc',
    author_email='perillaroc@gmail.com',

    license='Apache License, Version 2.0',

    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10',
    ],

    keywords='workflow',

    packages=find_packages(exclude=['contrib', 'docs', 'tests']),

    install_requires=[
        'anyio',
        'lark',
        'grpcio',
        'jinja2',
        'pydantic',
        'typer',
    ],

    extras_require={
        'log': ['loguru'],
        'tests': ['pytest'],
    },

    entry_points={}
)