A switch whose Telnet sessions were all taken, and a REST API answering the login with the web UI's HTML page, were both reported as an authentication failure, which sent the operator after the password. The Telnet login now keeps the switch's greeting in an in-memory session log and reports a full switch as a connection error; an HTML answer to the REST login says so. An SSH attempt records netmiko's underlying error instead of "timed out" when it was not a timeout. Session log objects need netmiko 4.3.0, which becomes the floor. Closes #13
94 lines
2.5 KiB
TOML
94 lines
2.5 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=77"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "napalm-hpe-aruba-procurve"
|
|
version = "0.6.0"
|
|
description = "NAPALM driver for HPE/Aruba ProCurve switches with auto-detecting transport (REST API, SSH, legacy SSH, Telnet)"
|
|
readme = "README.md"
|
|
license = "Apache-2.0"
|
|
requires-python = ">=3.12"
|
|
authors = [
|
|
{ name = "Christian Manivong" },
|
|
]
|
|
classifiers = [
|
|
"Topic :: Utilities",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Operating System :: MacOS",
|
|
]
|
|
dependencies = [
|
|
"napalm>=5.1", # older releases import pkg_resources, which a 3.12 venv lacks
|
|
"napalm-device-types>=4.21.1",
|
|
"netmiko>=4.3.0", # takes a SessionLog object as session_log
|
|
"paramiko>=5.0.0", # CVE-2026-44405
|
|
"netaddr>=0.7.10",
|
|
"requests>=2.25.0",
|
|
"urllib3>=1.26.5", # older ones bundle a six that Python 3.12 cannot import
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8",
|
|
"pytest-cov>=5",
|
|
"mypy>=1.11",
|
|
"ruff>=0.6",
|
|
]
|
|
|
|
[project.entry-points."napalm.drivers"]
|
|
procurve = "napalm_procurve:ProcurveDriver"
|
|
|
|
[project.urls]
|
|
Repository = "https://git.netork.io/NAPALM/napalm-hpe-aruba-procurve"
|
|
Issues = "https://git.netork.io/NAPALM/napalm-hpe-aruba-procurve/issues"
|
|
Changelog = "https://git.netork.io/NAPALM/napalm-hpe-aruba-procurve/src/branch/main/CHANGELOG.md"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["napalm_procurve*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
napalm_procurve = ["py.typed"]
|
|
|
|
[tool.napalm-standard]
|
|
# The import package is not named after the distribution.
|
|
package = "napalm_procurve"
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py312"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
# Recorded device output keeps its lines.
|
|
"tests/**" = ["E501"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.12"
|
|
strict = true
|
|
# napalm itself is untyped, so every driver subclasses Any.
|
|
disallow_subclassing_any = false
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["napalm.*", "netmiko.*", "paramiko.*", "netaddr.*"]
|
|
ignore_missing_imports = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
# Not yet under strict mypy (quality baseline); may only shrink.
|
|
module = ["napalm_procurve.api_client", "napalm_procurve.parsers", "napalm_procurve.procurve"]
|
|
ignore_errors = true
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
|
|
[tool.coverage.run]
|
|
source = ["napalm_procurve"]
|
|
|
|
[tool.coverage.report]
|
|
fail_under = 54
|