# (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from io import open
from os import path

from setuptools import setup

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

with open(path.join(HERE, 'datadog_checks', 'dev', '__about__.py'), 'r', encoding='utf-8') as f:
    for line in f:
        line = line.strip()
        if line.startswith('__version__'):
            VERSION = line.split('=')[1].strip(' \'"')
            break
    else:
        VERSION = '0.0.1'

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


REQUIRES = [
    "contextlib2; python_version < '3.0'",
    'coverage>=5.0.3',
    'flaky',
    'mock',
    'psutil',
    'PyYAML==5.4.1',
    'pytest',
    'pytest-benchmark[histogram]>=3.2.1',
    'pytest-cov>=2.6.1',
    'pytest-mock',
    'requests>=2.22.0',
    'six',
    "shutilwhich==1.1.0; python_version < '3.0'",
    "subprocess32==3.5.4; python_version < '3.0'",
    'tenacity',
]


setup(
    name='datadog_checks_dev',
    version=VERSION,
    description='The Datadog Checks Developer Tools',
    long_description=README,
    long_description_content_type='text/markdown',
    keywords='datadog agent checks dev tools tests',
    url='https://github.com/DataDog/integrations-core',
    author='Datadog',
    author_email='packages@datadoghq.com',
    license='BSD',
    # See https://pypi.org/classifiers
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: Implementation :: PyPy',
    ],
    packages=['datadog_checks', 'datadog_checks.dev'],
    install_requires=REQUIRES,
    # TODO: Uncomment when we fully drop Python 2
    # python_requires='>=3.7',
    include_package_data=True,
    extras_require={
        'cli': [
            'aiohttp',
            'aiomultiprocess',
            'atomicwrites',
            'beautifulsoup4>=4.9.3',
            'click~=8.0',
            'codespell',
            'colorama',
            'datamodel-code-generator~=0.11.4',
            'docker-compose>=1.25',
            'in-toto>=0.4.2',
            'jsonschema',
            'markdown',
            'orjson',
            'packaging',
            'pip-tools',
            'platformdirs>=2.0.0a3',
            'pyperclip>=1.7.0',
            'pysmi>=0.3.4',
            'semver',
            'setuptools>=38.6.0',
            'tabulate>=0.8.9',
            'toml>=0.9.4, <1.0.0',
            'tox>=3.12.1',
            'twine>=1.11.0',
            'virtualenv>=20.5.0',
            'wheel>=0.31.0',
        ]
    },
    entry_points={
        'pytest11': ['datadog_checks = datadog_checks.dev.plugin.pytest'],
        'tox': ['datadog_checks = datadog_checks.dev.plugin.tox'],
        'console_scripts': ['ddev = datadog_checks.dev.tooling.cli:ddev'],
    },
)

@@ -2280,24 +2280,54 @@
 p4%3E=4.9.3',%0A
+            'black==21.10b0',%0A
             

Fix black package (#11240)