from re import search

from setuptools import setup

with open('src/asyncmetrics/__init__.py') as f:
    version = str(search(r"__version__ = '(.*)'", f.read()).group(1))

with open('README.md') as fh:
    long_description = fh.read()

setup(
    name='asyncmetrics',
    version=version,
    packages=['asyncmetrics', 'asyncmetrics.protocols'],
    package_dir={'': 'src'},
    url='https://github.com/mon4ter/asyncmetrics',
    license='MIT',
    author='<NAME>',
    author_email='<EMAIL>',
    description='Send metrics to Graphite asynchronously from your asyncio application',
    long_description=long_description,
    long_description_content_type='text/markdown',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
    ],
    install_requires=[],
    setup_requires=[
        'pytest-runner',
    ],
    tests_require=[
        'pytest',
        'pytest-asyncio',
        'pytest-cov',
    ],
)
