-
Notifications
You must be signed in to change notification settings - Fork 102
/
pyproject.toml
159 lines (138 loc) · 4.2 KB
/
pyproject.toml
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
description = "ZABBIX-CLI - Zabbix terminal client"
name = "zabbix-cli-uio"
readme = "README.md"
requires-python = ">=3.8"
license = "GPL-3.0-or-later"
keywords = []
maintainers = [{ name = "Peder Hovdan Andresen", email = "[email protected]" }]
authors = [
# Historical authors (pre-V3)
{ name = "Rafael Martinez Guerrero", email = "[email protected]" },
{ name = "Paal Braathen", email = "[email protected]" },
{ name = "Marius Bakke", email = "[email protected]" },
{ name = "Others (see AUTHORS)" },
]
classifiers = [
"Environment :: Console",
"Development Status :: 5 - Production/Stable",
"Topic :: System :: Monitoring",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"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 :: Implementation :: CPython",
]
dependencies = [
"typer>=0.9.0",
"rich>=13.3.1",
"prompt_toolkit>=3.0.47",
"httpx[socks]>=0.26.0",
"packaging>=22.0",
"pydantic>=2.7.0",
"tomli>=2.0.1",
"tomli-w>=1.0.0",
"platformdirs>=2.5.4",
"strenum>=0.4.15",
"typing-extensions>=4.8.0",
"importlib-metadata>=8.5.0; python_version < '3.10'",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://github.com/unioslo/zabbix-cli#readme"
Issues = "https://github.com/unioslo/zabbix-cli/issues"
Source = "https://github.com/unioslo/zabbix-cli"
[project.scripts]
zabbix-cli = "zabbix_cli.main:main"
zabbix-cli-init = "zabbix_cli.scripts.init:main"
zabbix-cli-bulk-execution = "zabbix_cli.scripts.bulk_execution:main"
[project.optional-dependencies]
test = ["pytest", "pytest-cov", "freezegun", "inline-snapshot"]
build = ["pyinstaller", "build"]
[tool.hatch.version]
path = "zabbix_cli/__about__.py"
[tool.hatch.build.targets.sdist]
include = ["zabbix_cli", "AUTHORS", "CHANGELOG"]
exclude = [".venv*"]
[tool.hatch.build.targets.wheel]
packages = ["zabbix_cli"]
[tool.hatch.build.targets.app]
pyapp-version = "0.12.0"
python-version = "3.11"
[tool.hatch.envs.default]
dependencies = [
# Linting and formatting only here
# Dependencies used for testing are specified in the main metadata
# optional dependencies
"ruff",
"pyright",
"zabbix-cli-uio[test]",
]
installer = "uv"
[tool.hatch.envs.default.scripts]
test = "pytest {args}"
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=zabbix_cli --cov=tests {args}"
no-cov = "cov --no-cov {args}"
lint = "ruff check zabbix_cli {args}"
[[tool.hatch.envs.test.matrix]]
python = ["38", "39", "310", "311"]
[tool.hatch.envs.docs]
dependencies = [
"mkdocs>=1.5.3",
"mkdocs-material>=9.5.13",
"mkdocs-include-markdown-plugin>=6.0.4",
"pymdown-extensions>=9.11",
"mdx-gh-links>=0.3",
"mkdocs-simple-hooks>=0.1.5",
"mkdocs-version-annotations>=1.0.0",
"mkdocstrings[python]",
"mkdocs-macros-plugin",
"mkdocs-literate-nav",
"mkdocs-simple-hooks",
"mkdocs-gen-files",
"mkdocs-glightbox",
"sanitize-filename",
"jinja2",
"pyyaml",
]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build --clean --strict {args}"
serve = "mkdocs serve --dev-addr localhost:8001 {args}"
[tool.coverage.run]
branch = true
parallel = true
omit = ["zabbix_cli/__about__.py"]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
[tool.pyright]
pythonVersion = "3.10"
venvPath = "."
venv = ".venv"
ignore = ["zabbix_cli/commands/_dev.py"]
typeCheckingMode = "strict"
[tool.ruff]
src = ["zabbix_cli"]
extend-exclude = ["zabbix_cli/__init__.py"]
extend-include = [
"pyproject.toml",
"zabbix_cli/**/*.py",
"scripts/**/*.py",
"tests/**/*.py",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint]
extend-select = ["I"]
[tool.ruff.lint.isort]
# Force one line per import to simplify diffing and merging
force-single-line = true
# Add annotations import to every file
required-imports = ["from __future__ import annotations"]