The rule set every NAPALM driver uses (E, F, I, UP, B at line length 100, Python 3.10). The code already meets it: ruff format and ruff check --fix change nothing.
64 lines
1.7 KiB
TOML
64 lines
1.7 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=64", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "napalm-hpe-officeconnect"
|
|
version = "0.1.0"
|
|
description = "NAPALM driver for HPE OfficeConnect 1820 / 1920S web-managed switches (HTTP only, no CLI)"
|
|
readme = "README.md"
|
|
license = { text = "Apache-2.0" }
|
|
requires-python = ">=3.8"
|
|
authors = [
|
|
{ name = "Christian Manivong" },
|
|
]
|
|
classifiers = [
|
|
"Topic :: Utilities",
|
|
"License :: OSI Approved :: Apache Software License",
|
|
"Programming Language :: Python :: 3",
|
|
"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",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Operating System :: MacOS",
|
|
]
|
|
# No netmiko/paramiko: these switches have no CLI at all.
|
|
# No BeautifulSoup: the web UI ships its table data as JS array literals,
|
|
# which parse with ast.literal_eval — see parsers.extract_data_set.
|
|
dependencies = [
|
|
"napalm>=4.0.0",
|
|
"requests>=2.25.0",
|
|
"urllib3",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest",
|
|
"pytest-cov",
|
|
"black",
|
|
"ruff",
|
|
]
|
|
|
|
[project.entry-points."napalm.drivers"]
|
|
hpe_officeconnect = "napalm_hpe_officeconnect:OfficeConnectDriver"
|
|
|
|
[project.urls]
|
|
Repository = "https://git.netork.io/NAPALM/napalm-hpe-officeconnect"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["napalm_hpe_officeconnect*"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
# Recorded device output keeps its lines.
|
|
"tests/**" = ["E501"]
|