# -*- coding: utf-8 -*-
import os

from setuptools import find_packages
from setuptools import setup


base_dir = os.path.dirname(__file__)
setup(
    name='elastalert2',
    version='2.9.0',
    description='Automated rule-based alerting for Elasticsearch',
    long_description=open('README.md').read(),
    long_description_content_type="text/markdown",
    url="https://github.com/jertel/elastalert2",
    setup_requires='setuptools',
    license='Apache 2.0',
    project_urls={
        "Documentation": "https://elastalert2.readthedocs.io",
        "Source Code": "https://github.com/jertel/elastalert2",
        "Discussion Forum": "https://github.com/jertel/elastalert2/discussions",
    },
    classifiers=[
        'Programming Language :: Python :: 3.11',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
    ],
    entry_points={
        'console_scripts': ['elastalert-create-index=elastalert.create_index:main',
                            'elastalert-test-rule=elastalert.test_rule:main',
                            'elastalert=elastalert.elastalert:main']},
    packages=find_packages(exclude=["tests"]),
    package_data={'elastalert': ['schema.yaml', 'es_mappings/**/*.json']},
    install_requires=[
        'apscheduler>=3.8.1,<4.0',
        'aws-requests-auth>=0.4.3',
        'sortedcontainers>=2.4.0',
        'boto3>=1.20.53',
        'croniter>=1.2.0',
        'elasticsearch==7.10.1',
        'envparse>=0.2.0',
        'exotel==0.1.5',
        'jira>=3.1.1',
        'Jinja2==3.1.2',
        'jsonschema>=4.4.0',
        'prison>=0.2.1',
        'prometheus_client>=0.13.1',
        'py-zabbix>=1.1.7',
        'python-dateutil>=2.8.2',
        'PyYAML>=6.0',
        'requests>=2.27.1',
        'stomp.py>=8.0.1',
        'texttable>=1.6.4',
        'twilio==6.57.0',
        'cffi>=1.15.0',
        'statsd-tags==3.2.1.post1',
        'tencentcloud-sdk-python>=3.0.577',
        'jsonpointer>=2.2',
        'tzlocal==2.1'
    ]
)
