driver / lint (pull_request) Successful in 15s
driver / standard (pull_request) Successful in 20s
driver / lowest (pull_request) Successful in 31s
driver / test (3.12) (pull_request) Successful in 1m6s
driver / test (3.13) (pull_request) Successful in 58s
driver / types (pull_request) Successful in 1m19s
driver / build (pull_request) Successful in 37s
driver / security (pull_request) Successful in 1m24s
CI / driver (pull_request) Successful in 2m15s
driver / publish (pull_request) Skipped
ServiceDict.result and the SERVICE_RESULT_* words the add-on states map to came with 4.56.0; the lowest job imported 4.34.
71 lines
1.9 KiB
TOML
71 lines
1.9 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=77"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "napalm-homeassistant"
|
|
version = "0.1.0"
|
|
description = "NAPALM driver for Home Assistant OS over the Home Assistant WebSocket API"
|
|
readme = "README.md"
|
|
license = "Apache-2.0"
|
|
requires-python = ">=3.12"
|
|
authors = [{ name = "Christian Manivong", email = "christian@manivong.de" }]
|
|
classifiers = [
|
|
"Programming Language :: Python :: 3",
|
|
"Operating System :: OS Independent",
|
|
"Topic :: System :: Networking",
|
|
"Topic :: Home Automation",
|
|
]
|
|
dependencies = [
|
|
"napalm>=5.1", # older releases import pkg_resources, which a 3.12 venv lacks
|
|
"napalm-device-types>=4.56", # ServiceDict.result and its SERVICE_RESULT_* words
|
|
"websockets>=13.0", # the sync client with recv(timeout=)
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest>=8", "pytest-cov>=5", "mypy>=1.11", "ruff>=0.6"]
|
|
|
|
[project.urls]
|
|
Repository = "https://git.netork.io/NAPALM/napalm-homeassistant"
|
|
Issues = "https://git.netork.io/NAPALM/napalm-homeassistant/issues"
|
|
|
|
[project.entry-points."napalm.drivers"]
|
|
homeassistant = "napalm_homeassistant:HomeAssistantDriver"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["napalm_homeassistant*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
napalm_homeassistant = ["py.typed"]
|
|
|
|
[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.*"]
|
|
ignore_missing_imports = true
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
|
|
[tool.coverage.run]
|
|
source = ["napalm_homeassistant"]
|
|
|
|
[tool.coverage.report]
|
|
fail_under = 90
|
|
exclude_also = ["pragma: no cover - live I/O"]
|