The pilot's build warned that setuptools refuses a license table and License classifiers from 2027-02-18 (PEP 639); check now reports both and the template builds with setuptools>=77. Recorded device output in tests keeps its lines, so the template turns E501 off under tests/.
51 lines
1.2 KiB
TOML
51 lines
1.2 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=77"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "napalm-standard"
|
|
version = "0.1.0"
|
|
description = "Rules, CI and release tooling shared by the drivers of the NAPALM org"
|
|
readme = "README.md"
|
|
license = "Apache-2.0"
|
|
requires-python = ">=3.11"
|
|
authors = [{ name = "Christian Manivong", email = "christian@manivong.de" }]
|
|
dependencies = ["packaging>=23"]
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest>=8", "pytest-cov>=5", "ruff>=0.6", "mypy>=1.11"]
|
|
|
|
[project.scripts]
|
|
napalm-standard = "napalm_standard.cli:main"
|
|
|
|
[project.urls]
|
|
Repository = "https://git.netork.io/NAPALM/driver-standard"
|
|
Issues = "https://git.netork.io/NAPALM/driver-standard/issues"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["napalm_standard*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
napalm_standard = ["py.typed"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.11"
|
|
strict = true
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
addopts = "--cov=napalm_standard --cov-report=term-missing"
|
|
|
|
[tool.coverage.report]
|
|
fail_under = 95
|
|
|
|
[tool.coverage.run]
|
|
omit = ["napalm_standard/__main__.py"]
|