This is an automated email from the ASF dual-hosted git repository.

akitouni pushed a commit to branch abderrahim/pkg_resources
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 9ac4af1a518cae11e981e600f921d7da3f06cdd4
Author: Abderrahim Kitouni <[email protected]>
AuthorDate: Tue Jun 24 10:48:32 2025 +0100

    conftest.py: use importlib.metadata instad of pkg_resources
---
 tests/conftest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/conftest.py b/tests/conftest.py
index 79c5a489d..77ff995c2 100755
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -17,7 +17,7 @@
 #
 import os
 
-import pkg_resources
+import importlib.metadata
 import pytest
 
 from buildstream._testing import register_repo_kind, 
sourcetests_collection_hook
@@ -132,7 +132,7 @@ register_repo_kind("tar", Tar, None)
 def pytest_sessionstart(session):
     if session.config.getvalue("plugins"):
         # Enable all plugins that implement the 
'buildstream.tests.source_plugins' hook
-        for entrypoint in 
pkg_resources.iter_entry_points("buildstream.tests.source_plugins"):
+        for entrypoint in 
importlib.metadata.entry_points(group="buildstream.tests.source_plugins"):
             module = entrypoint.load()
             module.register_sources()
 

Reply via email to