from setuptools import setup
import io
import re

with io.open('README.rst', 'rt', encoding='utf8') as f:
    readme = f.read()

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

setup(
    name='jrc',
    version=version,
    install_requires=['Jinja2',
                      'textX',
                      'click',
                      'PyYAML',
                      'fishbase',
                      'termcolor'],
    long_description=readme,
    packages=['jrc', 'jrc.parser'],
    package_data={
        'parser': ['jrc/parser/tx/*'],
    },
    include_package_data=True,
    entry_points={"console_scripts": ["jrc=jrc:main"]},
    classifiers=[

        'Development Status :: 4 - Beta',

        # Indicate who your project is intended for
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Build Tools',

        # Pick your license as you wish (should match "license" above)
        'License :: OSI Approved :: MIT License',

        # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
        'Programming Language :: Python',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
    ]

)
