1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
From: Dmitry Shachnev <mitya57@debian.org>
Date: Sun, 25 Jan 2026 22:09:12 +0300
Subject: Update test_find_plugin.py to stop using deprecated pkg_resources
Forwarded: https://github.com/mcmtroffaes/pybtex-docutils/pull/27
---
test/test_find_plugin.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/test/test_find_plugin.py b/test/test_find_plugin.py
index ba7d87c..a6aa9fc 100644
--- a/test/test_find_plugin.py
+++ b/test/test_find_plugin.py
@@ -1,14 +1,15 @@
# note: tests require pybtex-docutils to be installed
# so its entry points can be found
+from importlib.metadata import entry_points
+
import pytest
import pybtex_docutils
@pytest.mark.plugin
-def test_pkg_resources_entry_point():
- from pkg_resources import iter_entry_points
- for ep in iter_entry_points("pybtex.backends", "docutils"):
+def test_importlib_metadata_entry_point():
+ for ep in entry_points(group="pybtex.backends", name="docutils"):
assert ep.load() is pybtex_docutils.Backend
|