-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
165 lines (144 loc) · 3.5 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
160
161
162
163
164
165
[build-system]
requires = ["setuptools>=61.0", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "Zino"
description = "Robust network management system for large backbone networks"
authors = [{name="Sikt - Kunnskapssektorens Tjenesteleverandør", email="[email protected]"}]
readme = "README.md"
requires-python = ">=3.9"
license = {file = "LICENSE"}
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: System :: Networking :: Monitoring",
]
dependencies = [
"apscheduler",
"pydantic>=2.7.0",
"pysnmplib",
"aiodns",
"tomli; python_version < '3.11'",
]
dynamic = ["version"]
[project.urls]
"Homepage" = "https://github.com/Uninett/zino"
[project.scripts]
zino = "zino.zino:main"
zinoconv = "zino.stateconverter.convertstate:main"
[project.optional-dependencies]
docs = ["sphinx>=2.2.0"]
dev = [
"black",
"build",
"coverage",
"ipython",
"isort",
"pre-commit",
"pytest",
"pytest-asyncio<0.22.0",
"pytest-timeout",
"retry",
"ruff",
"snmpsim>=1.0",
"towncrier",
"tox<4",
"twine",
]
[tool.setuptools]
include-package-data = true
zip-safe = false
platforms = ["any"]
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*"]
[tool.setuptools.package-data]
"*" = [
"*.rst",
]
[tool.setuptools.exclude-package-data]
"*" = ["tests/"]
[tool.setuptools_scm]
write_to = "src/zino/version.py"
[tool.black]
line-length = 120
# Exclude files even when passed directly as argument (for MegaLinter)
force-exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.nox
| \.tox
| \.venv
| \.ve
| _build
| buck-out
| build
| dist
| src/zino/mibdumps
| docs
)
)
'''
[tool.ruff]
line-length = 120
target-version = "py39"
exclude = [
"mibdumps", "docs"
]
# Exclude files even when passed directly as argument (for MegaLinter)
force-exclude = true
[tool.isort]
profile = "black"
src_paths = ["src", "tests"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't need coverage for ellipsis used for type annotations
"\\.\\.\\.",
# Don't complain about lines excluded unless type checking
"if TYPE_CHECKING:",
# We don't need tests to cover unimplementedness
"raise NotImplementedError",
]
[tool.towncrier]
directory = "changelog.d"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
title_format = "## [{version}] - {project_date}"
issue_format = "[#{issue}](https://github.com/Uninett/zino/issues/{issue})"
wrap = false
[[tool.towncrier.type]]
directory = "security"
name = "Security"
showcontent = true
[[tool.towncrier.type]]
directory = "removed"
name = "Removed"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecated"
name = "Deprecated"
showcontent = true
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true