-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (122 loc) · 3.58 KB
/
pyproject.toml
File metadata and controls
141 lines (122 loc) · 3.58 KB
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
# SPDX-License-Identifier: Apache-2.0
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pypnm-docsis-cmts"
version = "0.3.14.0"
description = "DOCSIS CMTS tools built on the PyPNM toolkit"
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
authors = [
{ name = "Maurice Garcia", email = "[email protected]" }
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Topic :: System :: Networking",
"Typing :: Typed",
]
license-files = ["LICENSE", "NOTICE"]
dependencies = [
"pypnm-docsis==1.6.4.0",
"tabulate>=0.9.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.6.9",
"pytest>=8.0.0",
"pytest-asyncio>=0.23.5",
"httpx>=0.27.0,<0.28.0",
"build>=1.2.0",
"twine>=5.0.0",
]
test = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.5",
"httpx>=0.27.0,<0.28.0",
"build>=1.2.0",
"twine>=5.0.0",
]
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.0.0",
"mkdocs-mermaid2-plugin>=1.1.1",
"pymdown-extensions>=10.0.0",
]
[project.urls]
Homepage = "https://www.pypnm.io"
Repository = "https://github.com/PyPNMApps/PyPNM-CMTS"
Bug-Tracker = "https://github.com/PyPNMApps/PyPNM-CMTS/issues"
[project.scripts]
pypnm-cmts = "pypnm_cmts.cli:main"
pypnm-cmts-release = "pypnm_cmts.tools.release_tool:main"
pypnm-cmts-release-build = "pypnm_cmts.tools.release_build:main"
pypnm-cmts-publish = "pypnm_cmts.tools.publish_tool:main"
[tool.setuptools]
package-dir = { "" = "src" }
include-package-data = true
[tool.setuptools.package-data]
pypnm_cmts = ["settings/*.json"]
"pypnm_cmts.settings" = ["*.json"]
[tool.setuptools.packages.find]
where = ["src"]
include = ["pypnm_cmts*"]
[tool.pytest.ini_options]
minversion = "8.0"
pythonpath = ["src"]
testpaths = ["tests"]
addopts = "-ra -q --strict-markers --tb=short"
asyncio_mode = "auto"
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(levelname)s %(name)s:%(lineno)d | %(message)s"
log_cli_date_format = "%H:%M:%S"
markers = [
"asyncio: mark test as asyncio-based (requires pytest-asyncio)",
"cm_it: cable modem integration tests (enable with -m cm_it)",
"integration: live CMTS integration tests (enable with -m integration)",
"live: live CMTS tests (enable with --run-live or PYPNM_CMTS_RUN_LIVE=1)",
"live_cmts: live CMTS tests (enable with --run-live or PYPNM_CMTS_RUN_LIVE=1)",
"slow: slow tests",
"net: network-required tests",
"pnm: PNM file parsing tests",
"unit: unit tests (fast, hermetic)",
]
filterwarnings = [
"ignore:getReadersFromUrls is deprecated:DeprecationWarning:pysnmp",
"ignore:smiV1Relaxed is deprecated:DeprecationWarning:pysnmp",
"ignore:.*getReadersFromUrls.*:DeprecationWarning:pysmi.reader.url",
"ignore:.*addSources.*:DeprecationWarning:pysnmp.smi.compiler",
"ignore:.*addSearchers.*:DeprecationWarning:pysnmp.smi.compiler",
"ignore:.*addBorrowers.*:DeprecationWarning:pysnmp.smi.compiler",
]
[tool.black]
line-length = 100
target-version = ["py310"]
[tool.ruff]
src = ["src", "tools"]
target-version = "py310"
[tool.ruff.lint]
select = ["F", "E", "W", "I", "B", "UP", "ANN", "SIM", "PERF"]
ignore = [
"E501",
"B006"
]
[tool.pyright]
pythonVersion = "3.10"
pythonPlatform = "Linux"
include = ["src"]
exclude = [
"tools",
"**/__pycache__",
]
# VSCode + .env venv
venvPath = "."
venv = ".env"