driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 31s
driver / types (pull_request) Successful in 1m16s
driver / test (3.13) (pull_request) Successful in 1m29s
driver / test (3.12) (pull_request) Successful in 1m33s
driver / lowest (pull_request) Successful in 41s
driver / build (pull_request) Successful in 29s
driver / security (pull_request) Successful in 1m5s
CI / driver (pull_request) Successful in 3m22s
driver / publish (pull_request) Skipped
A device that gets the site's time giver through DHCP option 42 is aligned (NetOrk/netork#2380): most clients already learn it that way. 4.35.0 switched that off on every write -- chrony's DHCP sourcedir was commented out, and systemd-timesyncd's link servers failed the verify step -- and folded DHCP's servers into ntp_servers, so an application could not tell configured from DHCP-provided servers. TimeSyncDict gains dhcp_ntp_servers (not required): the servers the device got by DHCP and uses, in its order; [] for none, absent or None where the driver cannot tell. ntp_servers keeps only the configured ones. PosixTimeSyncMixin reads chrony's sources from the DHCP client's sourcedir (CHRONY_DHCP_DIRS, /run/chrony-dhcp by default) as chronyd reads them, and systemd-timesyncd's LinkNTPServers; ntpd and OpenNTPD keep DHCP's servers in a configuration of their own, so there it is unknown. A chrony write now comments out only server, pool and peer lines and leaves every sourcedir and the DHCP client's files alone. A DHCP sourcedir that 4.35.0 commented out behind the mark is given back on the next write, with a restart, so hosts it aligned hear DHCP again. Version 4.36.0.
90 lines
2.1 KiB
TOML
90 lines
2.1 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=77"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "napalm-device-types"
|
|
version = "4.36.0"
|
|
description = "Abstract device-type base classes for NAPALM drivers"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
license = "Apache-2.0"
|
|
authors = [
|
|
{ name = "Christian Manivong", email = "christian@manivong.de" },
|
|
]
|
|
keywords = [
|
|
"napalm",
|
|
"network",
|
|
"automation",
|
|
"driver",
|
|
"access-point",
|
|
"switch",
|
|
"firewall",
|
|
"hypervisor",
|
|
"storage",
|
|
"nas",
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"Intended Audience :: System Administrators",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Topic :: System :: Networking",
|
|
"Topic :: System :: Systems Administration",
|
|
"Typing :: Typed",
|
|
]
|
|
dependencies = [
|
|
"napalm>=5.1", # older releases import pkg_resources, which a 3.12 venv lacks
|
|
"requests>=2.25.0",
|
|
"typing-extensions>=4.0",
|
|
"tzdata>=2024.1", # posix_tz reads the zones' TZif files from it
|
|
]
|
|
|
|
[project.urls]
|
|
Repository = "https://git.netork.io/NAPALM/napalm-device-types"
|
|
Issues = "https://git.netork.io/NAPALM/napalm-device-types/issues"
|
|
Changelog = "https://git.netork.io/NAPALM/napalm-device-types/src/branch/main/CHANGELOG.md"
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8",
|
|
"pytest-cov>=5",
|
|
"mypy>=1.11",
|
|
"ruff>=0.6",
|
|
]
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["napalm_device_types*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
napalm_device_types = ["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
|
|
ignore_missing_imports = true
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
|
|
[tool.coverage.run]
|
|
source = ["napalm_device_types"]
|
|
|
|
[tool.coverage.report]
|
|
fail_under = 95
|