knot-dns/python/knot_exporter/setup.py.in
Daniel Salzman 80b604f1df python: add knot_exporter
Based on https://github.com/salzmdan/knot_exporter,
commit 564a6daa3e17f68e410d25fe4b876d79e418d4d1
2023-08-21 16:07:35 +02:00

38 lines
1.2 KiB
Python

import pathlib
import setuptools
p = pathlib.Path("README.md")
if p.exists():
long_description = p.read_text()
setuptools.setup(
name='knot_exporter',
version='@PACKAGE_VERSION@',
description='Prometheus exporter for Knot DNS',
long_description=long_description,
long_description_content_type="text/markdown",
author='CZ.NIC, z.s.p.o.',
author_email='knot-dns@labs.nic.cz',
url='https://gitlab.nic.cz/knot/knot-dns/python/knot_exporter',
license='GPL-3.0',
packages=['knot_exporter'],
classifiers=[ # See https://pypi.org/classifiers
'Development Status :: 5 - Production/Stable',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3',
'Topic :: Internet :: Name Service (DNS)',
'Topic :: System :: Systems Administration',
],
python_requires='>=3.5',
install_requires=[
'libknot',
'prometheus-client',
'psutil',
],
entry_points={
'console_scripts': [
'knot-exporter = knot_exporter.knot_exporter:main',
],
},
)