Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-python-lsp-black for 
openSUSE:Factory checked in at 2026-10-06 19:17:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-lsp-black (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.3698736 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-lsp-black"

Tue Oct  6 19:17:17 2026 rev:11 rq:1382650 version:2.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-python-lsp-black/python-python-lsp-black.changes
  2024-03-20 21:22:24.623823350 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-python-lsp-black.new.3698736/python-python-lsp-black.changes
     2026-10-06 19:17:21.443873313 +0200
@@ -1,0 +2,6 @@
+Tue Oct  6 04:12:09 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch
+  * Use importlib.metadata to look for entry points.
+
+-------------------------------------------------------------------

New:
----
  no-more-pkg-resources.patch

----------(New B)----------
  New:
- Add patch no-more-pkg-resources.patch
  * Use importlib.metadata to look for entry points.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-python-lsp-black.spec ++++++
--- /var/tmp/diff_new_pack.amQcba/_old  2026-10-06 19:17:22.362911771 +0200
+++ /var/tmp/diff_new_pack.amQcba/_new  2026-10-06 19:17:22.364911855 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-python-lsp-black
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,8 @@
 Source:         
https://github.com/python-lsp/python-lsp-black/archive/refs/tags/v%{version}.tar.gz#/python-lsp-black-%{version}-gh.tar.gz
 # PATCH-FIX-UPSTREAM python-lsp-black-pr56-black24.2.patch 
gh#python-lsp/python-lsp-black#56
 Patch0:         
https://github.com/python-lsp/python-lsp-black/pull/56.patch#/python-lsp-black-pr56-black24.2.patch
+# PATCH-FIX-UPSTREAM gh#python-lsp/python-lsp-black#64
+Patch1:         no-more-pkg-resources.patch
 BuildRequires:  %{python_module base >= 3.8}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}

++++++ no-more-pkg-resources.patch ++++++
>From 077c3e5e8720c6cb9e99483a8fd53899a007a0e9 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <[email protected]>
Date: Tue, 14 Jul 2026 10:52:12 +0100
Subject: [PATCH] Migrate test_entry_point from pkg_resources to
 importlib.metadata

---
 tests/test_plugin.py | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/tests/test_plugin.py b/tests/test_plugin.py
index 2ae8088..0fa3e2d 100644
--- a/tests/test_plugin.py
+++ b/tests/test_plugin.py
@@ -1,11 +1,11 @@
 # Standard library imports
 import types
 from pathlib import Path
+import importlib.metadata
 from unittest.mock import Mock
 
 # Third-party imports
 import black
-import pkg_resources
 import pytest
 
 # Python LSP imports
@@ -321,13 +321,16 @@ def 
test_load_config_with_skip_options(config_with_skip_options):
 
 
 def test_entry_point():
-    distribution = pkg_resources.get_distribution("python-lsp-black")
-    entry_point = distribution.get_entry_info("pylsp", "black")
+    entry_points_pylsp = importlib.metadata.entry_points(name="pylsp")
+    entry_points_black = importlib.metadata.entry_points(name="black")
 
-    assert entry_point is not None
+    assert entry_points_pylsp
+    assert entry_points_black
 
-    module = entry_point.load()
-    assert isinstance(module, types.ModuleType)
+    pylsp_entry = next(iter(entry_points_pylsp)).load()
+    black_entry = next(iter(entry_points_pylsp)).load()
+    assert isinstance(pylsp_entry, (types.ModuleType, types.FunctionType))
+    assert isinstance(black_entry, (types.ModuleType, types.FunctionType))
 
 
 def test_pylsp_format_crlf_document(

Reply via email to