Files
driver-standard/template/pyproject.toml
T
Christian Manivong 8cbcd20a3a
CI / test (3.13) (pull_request) Successful in 30s
CI / test (3.12) (pull_request) Successful in 35s
chore: Python 3.12 is the floor, part A (#6)
The shared workflow tests on 3.12 and 3.13 by default and runs lowest on
3.12; the template declares requires-python >=3.12 with ruff and mypy on
3.12, and the tool itself needs 3.12. netOrk runs every driver on 3.12 in
its own containers.

check keeps accepting a 3.10 floor until every driver has moved; part B
raises it.
2026-10-27 10:10:15 +01:00

69 lines
1.6 KiB
TOML

[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[project]
name = "napalm-example"
version = "0.1.0"
description = "NAPALM driver for Example switches"
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",
]
dependencies = [
"napalm>=5.0",
"napalm-device-types>=4.21",
]
[project.optional-dependencies]
dev = ["pytest>=8", "pytest-cov>=5", "mypy>=1.11", "ruff>=0.6"]
[project.urls]
Repository = "https://git.netork.io/NAPALM/napalm-example"
Issues = "https://git.netork.io/NAPALM/napalm-example/issues"
[project.entry-points."napalm.drivers"]
example = "napalm_example:ExampleDriver"
[tool.setuptools.packages.find]
include = ["napalm_example*"]
[tool.setuptools.package-data]
napalm_example = ["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_example"]
[tool.coverage.report]
fail_under = 90
exclude_also = ["pragma: no cover - live I/O"]