diff --git a/active_directory/setup.py b/active_directory/setup.py deleted file mode 100644 index 5c891ed3c065c..0000000000000 --- a/active_directory/setup.py +++ /dev/null @@ -1,85 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# Always prefer setuptools over distutils -# To use a consistent encoding -from codecs import open -from os import path - -from setuptools import setup - -here = path.abspath(path.dirname(__file__)) - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'active_directory', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-active_directory', - version=ABOUT["__version__"], - description='The Active Directory check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent active directory check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.active_directory'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/activemq/setup.py b/activemq/setup.py deleted file mode 100644 index 6c8d8454655aa..0000000000000 --- a/activemq/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'activemq', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-activemq', - version=ABOUT['__version__'], - description='The ActiveMQ check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent activemq check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.activemq'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/activemq_xml/setup.py b/activemq_xml/setup.py deleted file mode 100644 index e5acfd420161d..0000000000000 --- a/activemq_xml/setup.py +++ /dev/null @@ -1,82 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open # To use a consistent encoding -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "activemq_xml", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-activemq_xml', - version=ABOUT["__version__"], - description='The ActiveMQ XML check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent activemq_xml check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.activemq_xml'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/aerospike/setup.py b/aerospike/setup.py deleted file mode 100644 index a7eb915579472..0000000000000 --- a/aerospike/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'aerospike', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-aerospike', - version=ABOUT['__version__'], - description='The Aerospike check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent aerospike check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.aerospike'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/amazon_msk/setup.py b/amazon_msk/setup.py deleted file mode 100644 index c27166084facf..0000000000000 --- a/amazon_msk/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'amazon_msk', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-amazon-msk', - version=ABOUT['__version__'], - description='The Amazon MSK check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent amazon_msk check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.amazon_msk'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/ambari/setup.py b/ambari/setup.py deleted file mode 100644 index ff417cc741ceb..0000000000000 --- a/ambari/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'ambari', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-ambari', - version=ABOUT['__version__'], - description='The Ambari check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent ambari check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.ambari'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/apache/setup.py b/apache/setup.py deleted file mode 100644 index 48157f5aae894..0000000000000 --- a/apache/setup.py +++ /dev/null @@ -1,90 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def read(*parts): - with open(path.join(HERE, *parts), 'r') as fp: - return fp.read() - - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "apache", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-apache', - version=ABOUT["__version__"], - description='The Apache Check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent apache check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.apache'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/aspdotnet/setup.py b/aspdotnet/setup.py deleted file mode 100644 index 89411cc1a3733..0000000000000 --- a/aspdotnet/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'aspdotnet', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-aspdotnet', - version=ABOUT["__version__"], - description='The ASP .NET check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent aspdotnet check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.aspdotnet'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/azure_iot_edge/setup.py b/azure_iot_edge/setup.py deleted file mode 100644 index 58dbe70693f76..0000000000000 --- a/azure_iot_edge/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'azure_iot_edge', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-azure_iot_edge', - version=ABOUT['__version__'], - description='The Azure IoT Edge check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent azure_iot_edge check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.azure_iot_edge'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/btrfs/setup.py b/btrfs/setup.py deleted file mode 100644 index b2e945b1b4ece..0000000000000 --- a/btrfs/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "btrfs", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-btrfs', - version=ABOUT["__version__"], - description='The Btrfs check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent btrfs check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.btrfs'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/cacti/setup.py b/cacti/setup.py deleted file mode 100644 index cdf3e1a304580..0000000000000 --- a/cacti/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'cacti', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-cacti', - version=ABOUT['__version__'], - description='The Cacti check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent cacti check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.cacti'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/calico/setup.py b/calico/setup.py deleted file mode 100644 index 13b7131de9773..0000000000000 --- a/calico/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2022-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'calico', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-calico', - version=ABOUT['__version__'], - description='The calico check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent calico check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Max', - author_email='max@galadrim.fr', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.calico'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/cassandra/setup.py b/cassandra/setup.py deleted file mode 100644 index 7b7d8748f332b..0000000000000 --- a/cassandra/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'cassandra', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-cassandra', - version=ABOUT['__version__'], - description='The Cassandra check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent cassandra check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.cassandra'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/cassandra_nodetool/setup.py b/cassandra_nodetool/setup.py deleted file mode 100644 index 47281421d8f50..0000000000000 --- a/cassandra_nodetool/setup.py +++ /dev/null @@ -1,82 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'cassandra_nodetool', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-cassandra_nodetool', - version=ABOUT['__version__'], - description='The Cassandra Nodetool check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent cassandra_nodetool check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.cassandra_nodetool'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/ceph/setup.py b/ceph/setup.py deleted file mode 100644 index d182f509661a8..0000000000000 --- a/ceph/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "ceph", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-ceph', - version=ABOUT["__version__"], - description='The Ceph check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent ceph check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.ceph'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/cilium/setup.py b/cilium/setup.py deleted file mode 100644 index 6eacd415e8e01..0000000000000 --- a/cilium/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'cilium', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-cilium', - version=ABOUT['__version__'], - description='The Cilium check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent cilium check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.cilium'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/cisco_aci/setup.py b/cisco_aci/setup.py deleted file mode 100644 index 4e67a215aa520..0000000000000 --- a/cisco_aci/setup.py +++ /dev/null @@ -1,76 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "cisco_aci", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-cisco_aci', - version=ABOUT["__version__"], - description='The Cisco ACI check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent Cisco ACI check', - url='https://github.com/DataDog/integrations-core', - author='Datadog', - author_email='packages@datadoghq.com', - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - packages=['datadog_checks.cisco_aci'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/citrix_hypervisor/setup.py b/citrix_hypervisor/setup.py deleted file mode 100644 index 74b2b1be3fb35..0000000000000 --- a/citrix_hypervisor/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2021-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'citrix_hypervisor', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-citrix_hypervisor', - version=ABOUT['__version__'], - description='The citrix_hypervisor check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent citrix_hypervisor check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.citrix_hypervisor'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/clickhouse/setup.py b/clickhouse/setup.py deleted file mode 100644 index 0597c59b43168..0000000000000 --- a/clickhouse/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'clickhouse', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-clickhouse', - version=ABOUT['__version__'], - description='The ClickHouse check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent clickhouse check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.clickhouse'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/cloud_foundry_api/setup.py b/cloud_foundry_api/setup.py deleted file mode 100644 index a700d01b194f1..0000000000000 --- a/cloud_foundry_api/setup.py +++ /dev/null @@ -1,69 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'cloud_foundry_api', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-cloud_foundry_api', - version=ABOUT['__version__'], - description='The Cloud Foundry API check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent cloud_foundry_api check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.cloud_foundry_api'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/cockroachdb/setup.py b/cockroachdb/setup.py deleted file mode 100644 index 7d06fc90829ef..0000000000000 --- a/cockroachdb/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'cockroachdb', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-cockroachdb', - version=ABOUT['__version__'], - description='The CockroachDB check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent cockroachdb check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.cockroachdb'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/confluent_platform/setup.py b/confluent_platform/setup.py deleted file mode 100644 index 2844b9562edf7..0000000000000 --- a/confluent_platform/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'confluent_platform', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-confluent_platform', - version=ABOUT['__version__'], - description='The Confluent Platform check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent confluent_platform check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.confluent_platform'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/consul/setup.py b/consul/setup.py deleted file mode 100644 index ce47342e70a4a..0000000000000 --- a/consul/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "consul", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-consul', - version=ABOUT['__version__'], - description='The Consul Check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent consul check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - packages=['datadog_checks.consul'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/coredns/setup.py b/coredns/setup.py deleted file mode 100644 index 0a81abaef867f..0000000000000 --- a/coredns/setup.py +++ /dev/null @@ -1,78 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "coredns", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-coredns', - version=ABOUT["__version__"], - description='CoreDNS collects DNS metrics in Kubernetes.', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent check', - url='https://github.com/DataDog/integrations-core', - author='Datadog', - author_email='packages@datadoghq.com', - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # The package we're going to ship - packages=['datadog_checks.coredns'], - include_package_data=True, -) diff --git a/couch/setup.py b/couch/setup.py deleted file mode 100644 index c4645bb4decc7..0000000000000 --- a/couch/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "couch", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-couch', - version=ABOUT["__version__"], - description='The CouchDB check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent couch check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.couch'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/couchbase/setup.py b/couchbase/setup.py deleted file mode 100644 index 1e0487519bd98..0000000000000 --- a/couchbase/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "couchbase", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-couchbase', - version=ABOUT['__version__'], - description='The Couchbase check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent couchbase check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.couchbase'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/crio/setup.py b/crio/setup.py deleted file mode 100644 index 14541f147e932..0000000000000 --- a/crio/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'crio', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-crio', - version=ABOUT['__version__'], - description='The Crio check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent crio check container runtime kubernetes', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.crio'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/datadog_checks_base/setup.py b/datadog_checks_base/setup.py deleted file mode 100644 index 6cc4da86a3574..0000000000000 --- a/datadog_checks_base/setup.py +++ /dev/null @@ -1,85 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "base", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -LONG_DESC = "" -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - LONG_DESC = f.read() - - -def get_requirements(fpath, exclude=None, only=None): - if exclude is None: - exclude = [] - if only is None: - only = [] - - with open(path.join(HERE, fpath), encoding='utf-8') as f: - requirements = [] - for line in f: - name = line.split("==")[0] - if only: - if name in only: - requirements.append(line.rstrip()) - else: - if name not in exclude: - requirements.append(line.rstrip()) - return requirements - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.+?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -setup( - # Version should always match one from an agent release - version=ABOUT["__version__"], - name='datadog-checks-base', - description='The Datadog Check Toolkit', - long_description=LONG_DESC, - long_description_content_type='text/markdown', - keywords='datadog agent checks', - 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', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - packages=['datadog_checks'], - include_package_data=True, - extras_require={ - 'deps': parse_pyproject_array('deps'), - 'db': parse_pyproject_array('db'), - 'http': parse_pyproject_array('http'), - 'json': parse_pyproject_array('json'), - 'kube': parse_pyproject_array('kube'), - }, -) diff --git a/datadog_checks_dependency_provider/setup.py b/datadog_checks_dependency_provider/setup.py deleted file mode 100644 index 2fa5a9a772204..0000000000000 --- a/datadog_checks_dependency_provider/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2021-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'datadog_checks_dependency_provider', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-datadog_checks_dependency_provider', - version=ABOUT['__version__'], - description='The datadog_checks_dependency_provider check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent datadog_checks_dependency_provider check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.datadog_checks_dependency_provider'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/datadog_checks_dev/setup.py b/datadog_checks_dev/setup.py deleted file mode 100644 index 7d0e0f00e1858..0000000000000 --- a/datadog_checks_dev/setup.py +++ /dev/null @@ -1,72 +0,0 @@ -# (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() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.+?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -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.12', - 'Programming Language :: Python :: Implementation :: CPython', - 'Programming Language :: Python :: Implementation :: PyPy', - ], - packages=['datadog_checks', 'datadog_checks.dev'], - install_requires=parse_pyproject_array('dependencies'), - # TODO: Uncomment when we fully drop Python 2 - # python_requires='>=3.7', - include_package_data=True, - extras_require={'cli': parse_pyproject_array('cli')}, - entry_points={ - 'pytest11': ['datadog_checks = datadog_checks.dev.plugin.pytest'], - 'console_scripts': ['ddev = datadog_checks.dev.tooling.cli:ddev'], - }, -) diff --git a/datadog_checks_tests_helper/setup.py b/datadog_checks_tests_helper/setup.py deleted file mode 100644 index 948ee852c79f0..0000000000000 --- a/datadog_checks_tests_helper/setup.py +++ /dev/null @@ -1,51 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import find_packages, setup - -HERE = path.abspath(path.dirname(__file__)) - -ABOUT = {} -with open(path.join(HERE, "datadog_test_libs", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -LONG_DESC = "" -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - LONG_DESC = f.read() - - -# Parse requirements -def get_requirements(fpath): - with open(path.join(HERE, fpath), encoding='utf-8') as f: - return f.readlines() - - -setup( - # Version should always match one from an agent release - version=ABOUT["__version__"], - name='datadog_checks_tests_helper', - description='The Datadog Check Tests Helpers', - long_description=LONG_DESC, - long_description_content_type='text/markdown', - keywords='datadog agent checks tests', - url='https://github.com/DataDog/datadog-agent-tk', - author='Datadog', - author_email='packages@datadoghq.com', - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - ], - packages=find_packages(), - include_package_data=True, - install_requires=get_requirements('requirements.in'), -) diff --git a/datadog_cluster_agent/setup.py b/datadog_cluster_agent/setup.py deleted file mode 100644 index 0242b7bc2829e..0000000000000 --- a/datadog_cluster_agent/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2021-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'datadog_cluster_agent', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-datadog_cluster_agent', - version=ABOUT['__version__'], - description='The Datadog-Cluster-Agent check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent datadog_cluster_agent check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.datadog_cluster_agent'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/directory/setup.py b/directory/setup.py deleted file mode 100644 index eddc129f84a56..0000000000000 --- a/directory/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "directory", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-directory', - version=ABOUT["__version__"], - description='The Directory check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent directory check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='MIT', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.directory'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/disk/setup.py b/disk/setup.py deleted file mode 100644 index 39df7447a4830..0000000000000 --- a/disk/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "disk", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-disk', - version=ABOUT["__version__"], - description='The Disk check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent disk check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='MIT', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.disk'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/dns_check/setup.py b/dns_check/setup.py deleted file mode 100644 index 2cdf3e02b9f0d..0000000000000 --- a/dns_check/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "dns_check", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-dns_check', - version=ABOUT['__version__'], - description='The DNS check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent dns_check check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.dns_check'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/dotnetclr/setup.py b/dotnetclr/setup.py deleted file mode 100644 index 74472140b0b46..0000000000000 --- a/dotnetclr/setup.py +++ /dev/null @@ -1,82 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'dotnetclr', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-dotnetclr', - version=ABOUT["__version__"], - description='The .NET CLR check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent .NET CLR check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.dotnetclr'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/druid/setup.py b/druid/setup.py deleted file mode 100644 index a9bfd76081887..0000000000000 --- a/druid/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'druid', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-druid', - version=ABOUT['__version__'], - description='The druid check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent druid check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.druid'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/ecs_fargate/setup.py b/ecs_fargate/setup.py deleted file mode 100644 index f2d2011bb5b78..0000000000000 --- a/ecs_fargate/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'ecs_fargate', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-ecs_fargate', - version=ABOUT['__version__'], - description='The ECS Fargate check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent ecs_fargate check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.ecs_fargate'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/eks_fargate/setup.py b/eks_fargate/setup.py deleted file mode 100644 index 4c5dda7523d73..0000000000000 --- a/eks_fargate/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2020 -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'eks_fargate', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-eks_fargate', - version=ABOUT['__version__'], - description='The eks_fargate check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent eks_fargate check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.eks_fargate'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/elastic/setup.py b/elastic/setup.py deleted file mode 100644 index 486852a4d893a..0000000000000 --- a/elastic/setup.py +++ /dev/null @@ -1,82 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "elastic", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-elastic', - version=ABOUT["__version__"], - description='The Elastic Check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent elastic check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.elastic'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/envoy/setup.py b/envoy/setup.py deleted file mode 100644 index 2bf1870c0f521..0000000000000 --- a/envoy/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'envoy', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-envoy', - version=ABOUT['__version__'], - description='The Envoy check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent envoy check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.envoy'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/etcd/setup.py b/etcd/setup.py deleted file mode 100644 index 3912e6655dd6e..0000000000000 --- a/etcd/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'etcd', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-etcd', - version=ABOUT['__version__'], - description='The Etcd check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent etcd check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.etcd'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/exchange_server/setup.py b/exchange_server/setup.py deleted file mode 100644 index b52f7f129b276..0000000000000 --- a/exchange_server/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'exchange_server', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-exchange_server', - version=ABOUT["__version__"], - description='The MS Exchange check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent exchange check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.exchange_server'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/external_dns/setup.py b/external_dns/setup.py deleted file mode 100644 index 58d79dce3efcf..0000000000000 --- a/external_dns/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'external_dns', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-external_dns', - version=ABOUT['__version__'], - description='The ExternalDNS check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent external_dns check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.external_dns'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/flink/setup.py b/flink/setup.py deleted file mode 100644 index 5d33025272166..0000000000000 --- a/flink/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'flink', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-flink', - version=ABOUT['__version__'], - description='The Flink check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent flink check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.flink'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/fluentd/setup.py b/fluentd/setup.py deleted file mode 100644 index e253a8cce0f7c..0000000000000 --- a/fluentd/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'fluentd', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-fluentd', - version=ABOUT['__version__'], - description='The Fluentd check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent fluentd check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.fluentd'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/foundationdb/setup.py b/foundationdb/setup.py deleted file mode 100644 index 18c81f1a69648..0000000000000 --- a/foundationdb/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2022-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'foundationdb', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-foundationdb', - version=ABOUT['__version__'], - description='The FoundationDB check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent foundationdb check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-extras', - # Author details - author='Edument Central Europe sro.', - author_email='datadog-integrations@edument.cz', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.foundationdb'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/gearmand/setup.py b/gearmand/setup.py deleted file mode 100644 index 6ae6eee306bfd..0000000000000 --- a/gearmand/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'gearmand', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-gearmand', - version=ABOUT['__version__'], - description='The Gearmand check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent gearmand check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.gearmand'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/gitlab/setup.py b/gitlab/setup.py deleted file mode 100644 index 9277000423831..0000000000000 --- a/gitlab/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'gitlab', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-gitlab', - version=ABOUT['__version__'], - description='The Gitlab check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent gitlab check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.gitlab'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/gitlab_runner/setup.py b/gitlab_runner/setup.py deleted file mode 100644 index a3df7127d75fa..0000000000000 --- a/gitlab_runner/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'gitlab_runner', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-gitlab_runner', - version=ABOUT['__version__'], - description='The Gitlab Runner check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent gitlab_runner check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.gitlab_runner'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/glusterfs/setup.py b/glusterfs/setup.py deleted file mode 100644 index e463c01a68432..0000000000000 --- a/glusterfs/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'glusterfs', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-glusterfs', - version=ABOUT['__version__'], - description='The GlusterFS check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent glusterfs check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.glusterfs'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/go_expvar/setup.py b/go_expvar/setup.py deleted file mode 100644 index 27e76ee070221..0000000000000 --- a/go_expvar/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'go_expvar', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-go_expvar', - version=ABOUT['__version__'], - description='The Go Expvar check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent go_expvar check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.go_expvar'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/gunicorn/setup.py b/gunicorn/setup.py deleted file mode 100644 index 17118ae355896..0000000000000 --- a/gunicorn/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'gunicorn', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-gunicorn', - version=ABOUT['__version__'], - description='The Gunicorn check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent gunicorn check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.gunicorn'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/haproxy/setup.py b/haproxy/setup.py deleted file mode 100644 index bba978292a3be..0000000000000 --- a/haproxy/setup.py +++ /dev/null @@ -1,82 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "haproxy", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-haproxy', - version=ABOUT["__version__"], - description='The HAProxy check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent haproxy check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.haproxy'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/harbor/setup.py b/harbor/setup.py deleted file mode 100644 index b172a09049020..0000000000000 --- a/harbor/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'harbor', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-harbor', - version=ABOUT['__version__'], - description='The harbor check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent harbor check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.harbor'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/hazelcast/setup.py b/hazelcast/setup.py deleted file mode 100644 index 4e6d8473a0101..0000000000000 --- a/hazelcast/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'hazelcast', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-hazelcast', - version=ABOUT['__version__'], - description='The Hazelcast check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent hazelcast check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.hazelcast'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/hdfs_datanode/setup.py b/hdfs_datanode/setup.py deleted file mode 100644 index fd54e0aaffaeb..0000000000000 --- a/hdfs_datanode/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "hdfs_datanode", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-hdfs_datanode', - version=ABOUT['__version__'], - description='The HDFS Datanode Check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent hdfs_datanode check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.hdfs_datanode'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/hdfs_namenode/setup.py b/hdfs_namenode/setup.py deleted file mode 100644 index 84baeac336f0e..0000000000000 --- a/hdfs_namenode/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "hdfs_namenode", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-hdfs_namenode', - version=ABOUT['__version__'], - description='The HDFS Namenode check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent hdfs_namenode check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.hdfs_namenode'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/http_check/setup.py b/http_check/setup.py deleted file mode 100644 index b4bc1cd005340..0000000000000 --- a/http_check/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "http_check", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-http_check', - version=ABOUT['__version__'], - description='The HTTP check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent http_check check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.http_check'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/hudi/setup.py b/hudi/setup.py deleted file mode 100644 index 3222d21ec37a5..0000000000000 --- a/hudi/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2021-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'hudi', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-hudi', - version=ABOUT['__version__'], - description='The Hudi check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent hudi check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.hudi'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/hyperv/setup.py b/hyperv/setup.py deleted file mode 100644 index b5a799db0c098..0000000000000 --- a/hyperv/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'hyperv', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-hyperv', - version=ABOUT['__version__'], - description='The Hyper-V check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent hyperv check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.hyperv'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/ibm_db2/setup.py b/ibm_db2/setup.py deleted file mode 100644 index fbfc21e32868b..0000000000000 --- a/ibm_db2/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'ibm_db2', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-ibm_db2', - version=ABOUT['__version__'], - description='The IBM Db2 check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent ibm_db2 check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.ibm_db2'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/ibm_was/setup.py b/ibm_was/setup.py deleted file mode 100644 index 3a0c4128bd2a8..0000000000000 --- a/ibm_was/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'ibm_was', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-ibm_was', - version=ABOUT['__version__'], - description='The IBM WAS check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent ibm_was check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.ibm_was'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/iis/setup.py b/iis/setup.py deleted file mode 100644 index b0572c8af1b28..0000000000000 --- a/iis/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'iis', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-iis', - version=ABOUT["__version__"], - description='The IIS check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent iis check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.iis'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/istio/setup.py b/istio/setup.py deleted file mode 100644 index c79be0c6c995d..0000000000000 --- a/istio/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "istio", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-istio', - version=ABOUT["__version__"], - description='The istio check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent istio check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='New BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.istio'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/journald/setup.py b/journald/setup.py deleted file mode 100644 index 25913dd731c7f..0000000000000 --- a/journald/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2021-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'journald', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-journald', - version=ABOUT['__version__'], - description='The journald check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent journald check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.journald'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/kafka/setup.py b/kafka/setup.py deleted file mode 100644 index e385703b4b8fc..0000000000000 --- a/kafka/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'kafka', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-kafka', - version=ABOUT['__version__'], - description='The Kafka check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent kafka check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.kafka'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/kong/setup.py b/kong/setup.py deleted file mode 100644 index dae5fab4fc906..0000000000000 --- a/kong/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'kong', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-kong', - version=ABOUT['__version__'], - description='The Kong check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent kong check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.kong'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/kube_apiserver_metrics/setup.py b/kube_apiserver_metrics/setup.py deleted file mode 100644 index 7cda78625178a..0000000000000 --- a/kube_apiserver_metrics/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'kube_apiserver_metrics', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-kube_apiserver_metrics', - version=ABOUT['__version__'], - description='The Kube_apiserver_metrics check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent kube_apiserver_metrics check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.kube_apiserver_metrics'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/kube_controller_manager/setup.py b/kube_controller_manager/setup.py deleted file mode 100644 index 50a588ce870a0..0000000000000 --- a/kube_controller_manager/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'kube_controller_manager', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-kube_controller_manager', - version=ABOUT['__version__'], - description='The Kubernetes Controller Manager check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent kube_controller_manager check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.kube_controller_manager'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/kube_dns/setup.py b/kube_dns/setup.py deleted file mode 100644 index 8b6ad6ba307c0..0000000000000 --- a/kube_dns/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'kube_dns', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-kube_dns', - version=ABOUT['__version__'], - description='The KubeDNS check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent kube_dns check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.kube_dns'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/kube_metrics_server/setup.py b/kube_metrics_server/setup.py deleted file mode 100644 index 641c9fe34363c..0000000000000 --- a/kube_metrics_server/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'kube_metrics_server', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-kube_metrics_server', - version=ABOUT['__version__'], - description='The Kubernetes Metrics Server check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent kube_metrics_server check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.kube_metrics_server'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/kube_proxy/setup.py b/kube_proxy/setup.py deleted file mode 100644 index 3d9a1cd551aee..0000000000000 --- a/kube_proxy/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "kube_proxy", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-kube-proxy', - version=ABOUT["__version__"], - description='The kube_proxy Check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent kube_proxy check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.kube_proxy'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/kube_scheduler/setup.py b/kube_scheduler/setup.py deleted file mode 100644 index cb01e985a581c..0000000000000 --- a/kube_scheduler/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'kube_scheduler', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-kube_scheduler', - version=ABOUT['__version__'], - description='The Kubernetes Scheduler check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent kube_scheduler check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.kube_scheduler'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/kubelet/setup.py b/kubelet/setup.py deleted file mode 100644 index 22b6902a38f9f..0000000000000 --- a/kubelet/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "kubelet", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-kubelet', - version=ABOUT["__version__"], - description='The Kubelet check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent kubelet check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='New BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.kubelet'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/kubernetes_state/setup.py b/kubernetes_state/setup.py deleted file mode 100644 index c075f02e011bc..0000000000000 --- a/kubernetes_state/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'kubernetes_state', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-kubernetes_state', - version=ABOUT['__version__'], - description='The Kubernetes State check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent kubernetes_state check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.kubernetes_state'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/kyototycoon/setup.py b/kyototycoon/setup.py deleted file mode 100644 index a886db175c451..0000000000000 --- a/kyototycoon/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "kyototycoon", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-kyototycoon', - version=ABOUT['__version__'], - description='The KyotoTycoon check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent kyototycoon check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.kyototycoon'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/lighttpd/setup.py b/lighttpd/setup.py deleted file mode 100644 index dcdb92211c9c2..0000000000000 --- a/lighttpd/setup.py +++ /dev/null @@ -1,76 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "lighttpd", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-lighttpd', - version=ABOUT["__version__"], - description='The lighttpd check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent lighttpd check', - url='https://github.com/DataDog/integrations-core', - author='Datadog', - author_email='packages@datadoghq.com', - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - packages=['datadog_checks.lighttpd'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/linkerd/setup.py b/linkerd/setup.py deleted file mode 100644 index 35aca4e74a2cf..0000000000000 --- a/linkerd/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "linkerd", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-linkerd', - version=ABOUT["__version__"], - description='The Linkerd check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent linkerd check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.linkerd'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/linux_proc_extras/setup.py b/linux_proc_extras/setup.py deleted file mode 100644 index 401b338ee403c..0000000000000 --- a/linux_proc_extras/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'linux_proc_extras', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-linux_proc_extras', - version=ABOUT['__version__'], - description='The Linux Proc Extras check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent linux_proc_extras check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.linux_proc_extras'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/mapr/setup.py b/mapr/setup.py deleted file mode 100644 index e9aef8e7b7400..0000000000000 --- a/mapr/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'mapr', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-mapr', - version=ABOUT['__version__'], - description='The mapr check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent mapr check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.mapr'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/mapreduce/setup.py b/mapreduce/setup.py deleted file mode 100644 index c487ea716d44e..0000000000000 --- a/mapreduce/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "mapreduce", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-mapreduce', - version=ABOUT['__version__'], - description='The MapReduce check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent mapreduce check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.mapreduce'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/marathon/setup.py b/marathon/setup.py deleted file mode 100644 index d875384e76b84..0000000000000 --- a/marathon/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "marathon", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-marathon', - version=ABOUT["__version__"], - description='The Marathon check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent marathon check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - packages=['datadog_checks.marathon'], - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/marklogic/setup.py b/marklogic/setup.py deleted file mode 100644 index fb1207f4c8abc..0000000000000 --- a/marklogic/setup.py +++ /dev/null @@ -1,69 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'marklogic', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-marklogic', - version=ABOUT['__version__'], - description='The MarkLogic check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent marklogic check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.marklogic'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/mcache/setup.py b/mcache/setup.py deleted file mode 100644 index 7c552d80ace54..0000000000000 --- a/mcache/setup.py +++ /dev/null @@ -1,77 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "mcache", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-mcache', - version=ABOUT["__version__"], - description='The Memcache Check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent Memcache check', - url='https://github.com/DataDog/integrations-core', - author='Datadog', - author_email='packages@datadoghq.com', - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - packages=['datadog_checks.mcache'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/mesos_master/setup.py b/mesos_master/setup.py deleted file mode 100644 index 321288d19c4e7..0000000000000 --- a/mesos_master/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'mesos_master', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-mesos_master', - version=ABOUT['__version__'], - description='The Mesos master check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent mesos_master check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.mesos_master'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/mesos_slave/setup.py b/mesos_slave/setup.py deleted file mode 100644 index 3c8da78f8e729..0000000000000 --- a/mesos_slave/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'mesos_slave', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-mesos_slave', - version=ABOUT['__version__'], - description='The Mesos slave check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent mesos_slave check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.mesos_slave'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/nagios/setup.py b/nagios/setup.py deleted file mode 100644 index ef428985f3e87..0000000000000 --- a/nagios/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'nagios', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-nagios', - version=ABOUT['__version__'], - description='The Nagios check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent nagios check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.nagios'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/network/setup.py b/network/setup.py deleted file mode 100644 index 9d107942e4757..0000000000000 --- a/network/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# Always prefer setuptools over distutils -# To use a consistent encoding -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "network", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-network', - version=ABOUT["__version__"], - description='The Network check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent network check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='MIT', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.network'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/nfsstat/setup.py b/nfsstat/setup.py deleted file mode 100644 index 674ccc9926849..0000000000000 --- a/nfsstat/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'nfsstat', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-nfsstat', - version=ABOUT["__version__"], - description='The NFSstat check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent nfsstat check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.nfsstat'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/nginx/setup.py b/nginx/setup.py deleted file mode 100644 index ad17a60761898..0000000000000 --- a/nginx/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'nginx', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-nginx', - version=ABOUT["__version__"], - description='The Nginx check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent nginx check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.nginx'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/nginx_ingress_controller/setup.py b/nginx_ingress_controller/setup.py deleted file mode 100644 index 6117c72cd6516..0000000000000 --- a/nginx_ingress_controller/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'nginx_ingress_controller', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-nginx_ingress_controller', - version=ABOUT['__version__'], - description='The nginx-ingress-controller check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent nginx_ingress_controller check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.nginx_ingress_controller'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/openldap/setup.py b/openldap/setup.py deleted file mode 100644 index 6fbddd4fd790c..0000000000000 --- a/openldap/setup.py +++ /dev/null @@ -1,78 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "openldap", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-openldap', - version=ABOUT["__version__"], - description='The OpenLDAP integration collect metrics from your OpenLDAP server using the monitor backend', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent check', - url='https://github.com/DataDog/integrations-core', - author='Datadog', - author_email='packages@datadoghq.com', - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - packages=['datadog_checks.openldap'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - package_data={'datadog_checks.openldap': ['conf.yaml.example']}, - include_package_data=True, -) diff --git a/openmetrics/setup.py b/openmetrics/setup.py deleted file mode 100644 index e7231357053b6..0000000000000 --- a/openmetrics/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "openmetrics", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-openmetrics', - version=ABOUT["__version__"], - description='The openmetrics check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent openmetrics check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.openmetrics'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/openstack/setup.py b/openstack/setup.py deleted file mode 100644 index 836bdeac1346f..0000000000000 --- a/openstack/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "openstack", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-openstack', - version=ABOUT['__version__'], - description='The Openstack check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent openstack check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.openstack'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/pan_firewall/setup.py b/pan_firewall/setup.py deleted file mode 100644 index ac5c8987b5e0f..0000000000000 --- a/pan_firewall/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2021-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'pan_firewall', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-pan_firewall', - version=ABOUT['__version__'], - description='The pan_firewall check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent pan_firewall check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.pan_firewall'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/pdh_check/setup.py b/pdh_check/setup.py deleted file mode 100644 index 86c58686c792b..0000000000000 --- a/pdh_check/setup.py +++ /dev/null @@ -1,82 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open # To use a consistent encoding -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'pdh_check', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-pdh_check', - version=ABOUT["__version__"], - description='The Windows Performance Counters check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent pdh_check check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.pdh_check'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/pgbouncer/setup.py b/pgbouncer/setup.py deleted file mode 100644 index bcaf4f9f20b5c..0000000000000 --- a/pgbouncer/setup.py +++ /dev/null @@ -1,77 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "pgbouncer", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-pgbouncer', - version=ABOUT["__version__"], - description='The PGbouncer check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent pgbouncer check', - url='https://github.com/DataDog/integrations-core', - author='Datadog', - author_email='packages@datadoghq.com', - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - packages=['datadog_checks.pgbouncer'], - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/php_fpm/setup.py b/php_fpm/setup.py deleted file mode 100644 index 95c482cf3d589..0000000000000 --- a/php_fpm/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'php_fpm', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-php_fpm', - version=ABOUT['__version__'], - description='The PHP FPM check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent php_fpm check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.php_fpm'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/postfix/setup.py b/postfix/setup.py deleted file mode 100644 index 428b547c1e610..0000000000000 --- a/postfix/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'postfix', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-postfix', - version=ABOUT['__version__'], - description='The Postfix check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent postfix check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.postfix'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/powerdns_recursor/setup.py b/powerdns_recursor/setup.py deleted file mode 100644 index e35c3f9110ba3..0000000000000 --- a/powerdns_recursor/setup.py +++ /dev/null @@ -1,85 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# Always prefer setuptools over distutils -# To use a consistent encoding -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "powerdns_recursor", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-powerdns_recursor', - version=ABOUT["__version__"], - description='The PowerDNS check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent powerdns_recursor check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.powerdns_recursor'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/process/setup.py b/process/setup.py deleted file mode 100644 index fa110dbb28337..0000000000000 --- a/process/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'process', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-process', - version=ABOUT['__version__'], - description='The Process check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent process check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.process'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/prometheus/setup.py b/prometheus/setup.py deleted file mode 100644 index 8cadd5fbed5c1..0000000000000 --- a/prometheus/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "prometheus", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-prometheus', - version=ABOUT["__version__"], - description='The prometheus check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent prometheus check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='New BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.prometheus'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/proxysql/setup.py b/proxysql/setup.py deleted file mode 100644 index 63300347c8a83..0000000000000 --- a/proxysql/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'proxysql', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-proxysql', - version=ABOUT['__version__'], - description='The ProxySQL check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent proxysql check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.proxysql'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/rabbitmq/setup.py b/rabbitmq/setup.py deleted file mode 100644 index 19c426de3b7d0..0000000000000 --- a/rabbitmq/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'rabbitmq', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-rabbitmq', - version=ABOUT['__version__'], - description='The RabbitMQ check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent rabbitmq check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.rabbitmq'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/redisdb/setup.py b/redisdb/setup.py deleted file mode 100644 index 89f03dcd4db8b..0000000000000 --- a/redisdb/setup.py +++ /dev/null @@ -1,77 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "redisdb", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-redisdb', - version=ABOUT["__version__"], - description='The Redis Check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent Redis check', - url='https://github.com/DataDog/integrations-core', - author='Datadog', - author_email='packages@datadoghq.com', - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - packages=['datadog_checks.redisdb'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/rethinkdb/setup.py b/rethinkdb/setup.py deleted file mode 100644 index bf7192bc82043..0000000000000 --- a/rethinkdb/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'rethinkdb', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-rethinkdb', - version=ABOUT['__version__'], - description='The RethinkDB check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent rethinkdb check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.rethinkdb'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/riak/setup.py b/riak/setup.py deleted file mode 100644 index ed32168aebf68..0000000000000 --- a/riak/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "riak", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-riak', - version=ABOUT["__version__"], - description='The Riak Check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent riak check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.riak'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/riakcs/setup.py b/riakcs/setup.py deleted file mode 100644 index a891f6c602e5f..0000000000000 --- a/riakcs/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'riakcs', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-riakcs', - version=ABOUT['__version__'], - description='The Riak CS check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent riakcs check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.riakcs'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/sap_hana/setup.py b/sap_hana/setup.py deleted file mode 100644 index d5fcb1b8a20ab..0000000000000 --- a/sap_hana/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'sap_hana', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-sap_hana', - version=ABOUT['__version__'], - description='The SAP HANA check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent sap_hana check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.sap_hana'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/scylla/setup.py b/scylla/setup.py deleted file mode 100644 index 3125cd674c261..0000000000000 --- a/scylla/setup.py +++ /dev/null @@ -1,84 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -with open(path.join(HERE, 'datadog_checks', 'scylla', '__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' - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-scylla', - version=VERSION, - description='The Scylla check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent scylla check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.scylla'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/sidekiq/setup.py b/sidekiq/setup.py deleted file mode 100644 index 1967c624e2d5a..0000000000000 --- a/sidekiq/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'sidekiq', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-sidekiq', - version=ABOUT['__version__'], - description='The Sidekiq check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent sidekiq check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.sidekiq'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/silk/setup.py b/silk/setup.py deleted file mode 100644 index 2d85cdd31be6b..0000000000000 --- a/silk/setup.py +++ /dev/null @@ -1,78 +0,0 @@ -# (C) Datadog, Inc. 2021-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'silk', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-silk', - version=ABOUT['__version__'], - description='The Silk check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent silk check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.silk'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/singlestore/setup.py b/singlestore/setup.py deleted file mode 100644 index 6a1419a8dcbf0..0000000000000 --- a/singlestore/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2021-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'singlestore', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-singlestore', - version=ABOUT['__version__'], - description='The SingleStore check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent singlestore check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.singlestore'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/snmp/setup.py b/snmp/setup.py deleted file mode 100644 index 1ff1f9dc7b470..0000000000000 --- a/snmp/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'snmp', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-snmp', - version=ABOUT['__version__'], - description='The SNMP check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent snmp check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.snmp'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/sonarqube/setup.py b/sonarqube/setup.py deleted file mode 100644 index 2652fe62954a7..0000000000000 --- a/sonarqube/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'sonarqube', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-sonarqube', - version=ABOUT['__version__'], - description='The SonarQube check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent sonarqube check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.sonarqube'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/spark/setup.py b/spark/setup.py deleted file mode 100644 index 740545c0e7c7d..0000000000000 --- a/spark/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'spark', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-spark', - version=ABOUT["__version__"], - description='The Spark check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent spark check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.spark'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/squid/setup.py b/squid/setup.py deleted file mode 100644 index 5c224d68a0da5..0000000000000 --- a/squid/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "squid", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-squid', - version=ABOUT["__version__"], - description='The Squid Check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent squid check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.squid'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/ssh_check/setup.py b/ssh_check/setup.py deleted file mode 100644 index 98db0412a4f58..0000000000000 --- a/ssh_check/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "ssh_check", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-ssh_check', - version=ABOUT["__version__"], - description='The SSH check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent ssh_check check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.ssh_check'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/statsd/setup.py b/statsd/setup.py deleted file mode 100644 index f6737d6e35f68..0000000000000 --- a/statsd/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'statsd', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-statsd', - version=ABOUT['__version__'], - description='The StatsD check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent statsd check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.statsd'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/supervisord/setup.py b/supervisord/setup.py deleted file mode 100644 index dec30085b70e5..0000000000000 --- a/supervisord/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'supervisord', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-supervisord', - version=ABOUT['__version__'], - description='The Supervisord check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent supervisord check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.supervisord'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/system_core/setup.py b/system_core/setup.py deleted file mode 100644 index ca084567a7da3..0000000000000 --- a/system_core/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "system_core", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-system_core', - version=ABOUT["__version__"], - description='The System Core check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent system_core check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.system_core'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/system_swap/setup.py b/system_swap/setup.py deleted file mode 100644 index 579a7916a87c2..0000000000000 --- a/system_swap/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'system_swap', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-system_swap', - version=ABOUT['__version__'], - description='The System Swap check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent system_swap check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.system_swap'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/tcp_check/setup.py b/tcp_check/setup.py deleted file mode 100644 index 549c6fe73d72c..0000000000000 --- a/tcp_check/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'tcp_check', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-tcp_check', - version=ABOUT['__version__'], - description='The TCP check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent tcp_check check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.tcp_check'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/teamcity/setup.py b/teamcity/setup.py deleted file mode 100644 index 9ad7a25a2f0f4..0000000000000 --- a/teamcity/setup.py +++ /dev/null @@ -1,76 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "teamcity", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-teamcity', - version=ABOUT["__version__"], - description='The Teamcity check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent teamcity check', - url='https://github.com/DataDog/integrations-core', - author='Datadog', - author_email='packages@datadoghq.com', - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - packages=['datadog_checks.teamcity'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/tenable/setup.py b/tenable/setup.py deleted file mode 100644 index 97ed48858d28b..0000000000000 --- a/tenable/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'tenable', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-tenable', - version=ABOUT['__version__'], - description='The Tenable check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent tenable check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.tenable'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/tls/setup.py b/tls/setup.py deleted file mode 100644 index 80c8db303f8ab..0000000000000 --- a/tls/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'tls', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-tls', - version=ABOUT['__version__'], - description='The TLS check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent tls check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.tls'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/tomcat/setup.py b/tomcat/setup.py deleted file mode 100644 index 60cb2547cfb65..0000000000000 --- a/tomcat/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'tomcat', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-tomcat', - version=ABOUT['__version__'], - description='The Tomcat check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent tomcat check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.tomcat'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/twemproxy/setup.py b/twemproxy/setup.py deleted file mode 100644 index 9468fe28f333f..0000000000000 --- a/twemproxy/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'twemproxy', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-twemproxy', - version=ABOUT['__version__'], - description='The Twemproxy check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent twemproxy check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.twemproxy'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/twistlock/setup.py b/twistlock/setup.py deleted file mode 100644 index 477736544134e..0000000000000 --- a/twistlock/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'twistlock', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-twistlock', - version=ABOUT['__version__'], - description='The Twistlock check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent twistlock check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.twistlock'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/varnish/setup.py b/varnish/setup.py deleted file mode 100644 index 0a1641b653233..0000000000000 --- a/varnish/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "varnish", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-varnish', - version=ABOUT["__version__"], - description='The Varnish check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent varnish check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.varnish'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/vault/setup.py b/vault/setup.py deleted file mode 100644 index b7d6fcc4c838d..0000000000000 --- a/vault/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'vault', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-vault', - version=ABOUT['__version__'], - description='The Vault check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent vault check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.vault'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/vertica/setup.py b/vertica/setup.py deleted file mode 100644 index 1181cf7bed524..0000000000000 --- a/vertica/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2019-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'vertica', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-vertica', - version=ABOUT['__version__'], - description='The Vertica check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent vertica check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.vertica'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/voltdb/setup.py b/voltdb/setup.py deleted file mode 100644 index 07c2f59fec500..0000000000000 --- a/voltdb/setup.py +++ /dev/null @@ -1,81 +0,0 @@ -# (C) Datadog, Inc. 2020-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'voltdb', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-voltdb', - version=ABOUT['__version__'], - description='The VoltDB check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent voltdb check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.voltdb'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/vsphere/setup.py b/vsphere/setup.py deleted file mode 100644 index ace417007b513..0000000000000 --- a/vsphere/setup.py +++ /dev/null @@ -1,76 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open -from os import path - -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "vsphere", "__about__.py")) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-vsphere', - version=ABOUT["__version__"], - description='The vSphere check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent vSphere check', - url='https://github.com/DataDog/integrations-core', - author='Datadog', - author_email='packages@datadoghq.com', - license='New BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - packages=['datadog_checks.vsphere'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/weblogic/setup.py b/weblogic/setup.py deleted file mode 100644 index e151536d6a66d..0000000000000 --- a/weblogic/setup.py +++ /dev/null @@ -1,79 +0,0 @@ -# (C) Datadog, Inc. 2021-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'weblogic', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - - -setup( - name='datadog-weblogic', - version=ABOUT['__version__'], - description='The weblogic check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent weblogic check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD-3-Clause', - # See https://pypi.org/classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.weblogic'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/win32_event_log/setup.py b/win32_event_log/setup.py deleted file mode 100644 index a87655cacf240..0000000000000 --- a/win32_event_log/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'win32_event_log', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-win32_event_log', - version=ABOUT['__version__'], - description='The Win32 Event Log check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent win32_event_log check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.win32_event_log'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/windows_service/setup.py b/windows_service/setup.py deleted file mode 100644 index fcfcb492a57ca..0000000000000 --- a/windows_service/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'windows_service', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-windows_service', - version=ABOUT['__version__'], - description='The Windows Service check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent windows_service check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.windows_service'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/wmi_check/setup.py b/wmi_check/setup.py deleted file mode 100644 index ab5bda2810caf..0000000000000 --- a/wmi_check/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'wmi_check', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-wmi_check', - version=ABOUT['__version__'], - description='The WMI check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent wmi_check check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.wmi_check'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/yarn/setup.py b/yarn/setup.py deleted file mode 100644 index 2c188f9f86f17..0000000000000 --- a/yarn/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) - -# To use a consistent encoding -from codecs import open -from os import path - -# Always prefer setuptools over distutils -from setuptools import setup - -HERE = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -# Get version info -ABOUT = {} -with open(path.join(HERE, "datadog_checks", "yarn", "__about__.py")) as f: - exec(f.read(), ABOUT) - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-yarn', - version=ABOUT['__version__'], - description='The Yarn check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent yarn check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.yarn'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -) diff --git a/zk/setup.py b/zk/setup.py deleted file mode 100644 index 9c9f37e308992..0000000000000 --- a/zk/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# (C) Datadog, Inc. 2018-present -# All rights reserved -# Licensed under a 3-clause BSD style license (see LICENSE) -from codecs import open # To use a consistent encoding -from os import path - -from setuptools import setup - -HERE = path.dirname(path.abspath(__file__)) - -# Get version info -ABOUT = {} -with open(path.join(HERE, 'datadog_checks', 'zk', '__about__.py')) as f: - exec(f.read(), ABOUT) - -# Get the long description from the README file -with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - - -def get_dependencies(): - dep_file = path.join(HERE, 'requirements.in') - if not path.isfile(dep_file): - return [] - - with open(dep_file, encoding='utf-8') as f: - return f.readlines() - - -def parse_pyproject_array(name): - import os - import re - from ast import literal_eval - - pattern = r'^{} = (\[.*?\])$'.format(name) - - with open(os.path.join(HERE, 'pyproject.toml'), 'r', encoding='utf-8') as f: - # Windows \r\n prevents match - contents = '\n'.join(line.rstrip() for line in f.readlines()) - - array = re.search(pattern, contents, flags=re.MULTILINE | re.DOTALL).group(1) - return literal_eval(array) - - -CHECKS_BASE_REQ = parse_pyproject_array('dependencies')[0] - -setup( - name='datadog-zk', - version=ABOUT['__version__'], - description='The ZooKeeper check', - long_description=long_description, - long_description_content_type='text/markdown', - keywords='datadog agent zk check', - # The project's main homepage. - url='https://github.com/DataDog/integrations-core', - # Author details - author='Datadog', - author_email='packages@datadoghq.com', - # License - license='BSD', - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Topic :: System :: Monitoring', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.12', - ], - # The package we're going to ship - packages=['datadog_checks.zk'], - # Run-time dependencies - install_requires=[CHECKS_BASE_REQ], - extras_require={'deps': parse_pyproject_array('deps')}, - # Extra files to ship with the wheel package - include_package_data=True, -)