-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
32 lines (25 loc) · 1.01 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""Entrypoint for python package."""
from setuptools import setup
configs = {
"name": "prometheus-hardware-exporter",
"description": "exports hardware related metrics",
"use_scm_version": True,
"setup_requires": ["setuptools_scm", "pyyaml"],
"author": "Canonical Solution Engineering",
"packages": ["prometheus_hardware_exporter", "prometheus_hardware_exporter.collectors"],
"url": "https://github.com/canonical/prometheus-hardware-exporter",
"entry_points": {
"console_scripts": [
"prometheus-hardware-exporter=prometheus_hardware_exporter.__main__:main",
]
},
}
with open("requirements.txt", encoding="utf-8") as f:
requirements = [req.strip() for req in f.readlines()]
configs.update({"install_requires": requirements})
with open("LICENSE", encoding="utf-8") as f:
configs.update({"license": f.read()})
with open("README.md", encoding="utf-8") as f:
configs.update({"long_description": f.read()})
if __name__ == "__main__":
setup(**configs)