From aa66944e3ca79f5fd191ae1b57ddf42a3b522731 Mon Sep 17 00:00:00 2001 From: Christian Manivong Date: Tue, 27 Oct 2026 10:50:25 +0100 Subject: [PATCH] chore: the template's floor on napalm is 5.1 (#6) napalm 5.0 and older import pkg_resources, which a Python 3.12 venv no longer has; every driver's lowest job failed on it. --- CHANGELOG.md | 2 ++ template/pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ac28e4..26a1ab9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ The format follows [Keep a Changelog](https://keepachangelog.com/), versions fol and mypy targeting 3.12, and the tool itself needs 3.12. netOrk runs every driver in its own containers on 3.12, so older versions are no longer tested. `check` requires `requires-python` ≥ 3.12. +- The template's floor on napalm is 5.1: older releases import `pkg_resources`, which a + Python 3.12 venv no longer has, so `lowest` fails on them. - `check` reports a license given as a TOML table or as a `License ::` classifier: setuptools refuses both from 2027-02-18 (PEP 639). The template builds with setuptools>=77. diff --git a/template/pyproject.toml b/template/pyproject.toml index 3c85393..9cedca1 100644 --- a/template/pyproject.toml +++ b/template/pyproject.toml @@ -16,7 +16,7 @@ classifiers = [ "Topic :: System :: Networking", ] dependencies = [ - "napalm>=5.0", + "napalm>=5.1", # older releases import pkg_resources, which a 3.12 venv lacks "napalm-device-types>=4.21", ]