| 1 |
From: Jakob Haufe <[email protected]> |
| 2 |
Date: Sat, 21 Mar 2026 13:40:07 +0100 |
| 3 |
Subject: Patch out usage of importlib_metadata |
| 4 |
|
| 5 |
Bug-Debian: https://bugs.debian.org/1131428 |
| 6 |
Forwarded: not-needed |
| 7 |
Last-Update: 2026-03-21 |
| 8 |
--- |
| 9 |
pyocd/core/plugin.py | 2 +- |
| 10 |
pyocd/tools/lists.py | 2 +- |
| 11 |
setup.cfg | 1 - |
| 12 |
3 files changed, 2 insertions(+), 3 deletions(-) |
| 13 |
|
| 14 |
diff --git a/pyocd/core/plugin.py b/pyocd/core/plugin.py |
| 15 |
index 7408e4a..8eb0fd7 100644 |
| 16 |
--- a/pyocd/core/plugin.py |
| 17 |
+++ b/pyocd/core/plugin.py |
| 18 |
@@ -16,7 +16,7 @@ |
| 19 |
# limitations under the License. |
| 20 |
|
| 21 |
import logging |
| 22 |
|
| 23 |
+from importlib.metadata import entry_points |
| 24 |
from typing import ( |
| 25 |
Any, |
| 26 |
Dict, |
| 27 |
diff --git a/pyocd/tools/lists.py b/pyocd/tools/lists.py |
| 28 |
index 65fe2d1..efdd1af 100644 |
| 29 |
--- a/pyocd/tools/lists.py |
| 30 |
+++ b/pyocd/tools/lists.py |
| 31 |
@@ -16,7 +16,7 @@ |
| 32 |
# limitations under the License. |
| 33 |
|
| 34 |
import os |
| 35 |
|
| 36 |
+from importlib.metadata import entry_points |
| 37 |
|
| 38 |
from .. import __version__ |
| 39 |
from ..core.session import Session |
| 40 |
diff --git a/setup.cfg b/setup.cfg |
| 41 |
index 254f7dd..339cba9 100644 |
| 42 |
--- a/setup.cfg |
| 43 |
+++ b/setup.cfg |
| 44 |
@@ -55,7 +55,6 @@ install_requires = |
| 45 |
cmsis-pack-manager>=0.5.2,<1.0 |
| 46 |
colorama<1.0 |
| 47 |
hidapi>=0.10.1,<1.0; platform_system != "Linux" |
| 48 |
|
| 49 |
intelhex>=2.0,<3.0 |
| 50 |
intervaltree>=3.0.2,<4.0 |
| 51 |
lark>=1.1.5,<2.0 |