-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
100 lines (94 loc) · 3.48 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import os
from setuptools import find_packages, setup
from grafana_import.constants import PKG_NAME, PKG_VERSION
# Global variables
requires = [
"grafana-client<5",
"jinja2<4",
"pyyaml<7",
"watchdog<5",
]
extras = {
"builder": [
"grafana-dashboard==0.1.1",
"grafanalib==0.7.1",
],
"develop": [
"black<25",
"mypy<1.10",
"poethepoet<0.26",
"pyproject-fmt<1.8; python_version>='3.7'",
"ruff<0.5; python_version>='3.7'",
"validate-pyproject<0.17",
],
"release": [
"build",
"twine",
],
"test": [
"grafana-dashboard<0.2; python_version>='3.7'",
"importlib-resources<7; python_version<'3.9'",
# Pydantic is pulled in by grafana-dashboard. Pydantic 1.x is needed on Python 3.12.
# Otherwise, `Error when building FieldInfo from annotated attribute` happens.
"pydantic<2",
"pytest<9",
"pytest-cov<6",
"responses<0.26",
],
}
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, "README.md")).read()
setup(
name=PKG_NAME,
version=PKG_VERSION,
description="Export and import Grafana dashboards using the Grafana HTTP API.",
long_description_content_type="text/markdown",
long_description=README,
license="Apache 2.0",
author="Jean-Francois Pik",
author_email="jfpik78@gmail.com",
url="https://github.com/grafana-toolbox/grafana-import",
entry_points={"console_scripts": ["grafana-import = grafana_import.cli:main"]},
packages=find_packages(),
install_requires=requires,
extras_require=extras,
package_data={"": ["conf/*"]},
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: Apache Software License",
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Manufacturing",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"Intended Audience :: Telecommunications Industry",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Communications",
"Topic :: Database",
"Topic :: Internet",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Embedded Systems",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Archiving",
"Topic :: System :: Networking :: Monitoring",
],
keywords="grafana http api grafana-client grafana-api http-client "
"grafana-utils grafana-automation grafana-toolbox dashboard grafana-dashboard grafanalib grafonnet",
)