Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-astroid for openSUSE:Factory
checked in at 2026-09-28 10:36:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-astroid (Old)
and /work/SRC/openSUSE:Factory/.python-astroid.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-astroid"
Mon Sep 28 10:36:51 2026 rev:69 rq:1380283 version:4.3.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes
2026-08-27 18:50:32.394824528 +0200
+++
/work/SRC/openSUSE:Factory/.python-astroid.new.383539/python-astroid.changes
2026-09-28 10:37:47.244176171 +0200
@@ -1,0 +2,6 @@
+Fri Sep 25 00:26:06 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+ * Do not use pkg_resouces in the brains or the testsuite.
+
+-------------------------------------------------------------------
New:
----
no-more-pkg-resources.patch
----------(New B)----------
New:
- Add patch no-more-pkg-resources.patch:
* Do not use pkg_resouces in the brains or the testsuite.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-astroid.spec ++++++
--- /var/tmp/diff_new_pack.LjbwUk/_old 2026-09-28 10:37:48.041209500 +0200
+++ /var/tmp/diff_new_pack.LjbwUk/_new 2026-09-28 10:37:48.042209542 +0200
@@ -24,6 +24,8 @@
License: LGPL-2.1-or-later
URL: https://github.com/pycqa/astroid
Source:
https://github.com/PyCQA/astroid/archive/refs/tags/v%{version}.tar.gz#/astroid-%{version}-gh.tar.gz
+# PATCH-FIX-OPENSUSE Do not import pkg_resources in the testsuite or brain
+Patch0: no-more-pkg-resources.patch
BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module mypy}
BuildRequires: %{python_module pip}
++++++ no-more-pkg-resources.patch ++++++
Index: astroid-4.3.1/astroid/brain/helpers.py
===================================================================
--- astroid-4.3.1.orig/astroid/brain/helpers.py
+++ astroid-4.3.1/astroid/brain/helpers.py
@@ -64,7 +64,6 @@ def register_all_brains(manager: Astroid
brain_numpy_ndarray,
brain_numpy_random_mtrand,
brain_pathlib,
- brain_pkg_resources,
brain_pytest,
brain_qt,
brain_random,
@@ -117,7 +116,6 @@ def register_all_brains(manager: Astroid
brain_numpy_ndarray.register(manager)
brain_numpy_core_numeric.register(manager)
brain_pathlib.register(manager)
- brain_pkg_resources.register(manager)
brain_pytest.register(manager)
brain_qt.register(manager)
brain_random.register(manager)
Index: astroid-4.3.1/tests/test_manager.py
===================================================================
--- astroid-4.3.1.orig/tests/test_manager.py
+++ astroid-4.3.1/tests/test_manager.py
@@ -160,26 +160,6 @@ class AstroidManagerTest(resources.SysPa
def test_ast_from_namespace_pkgutil(self) -> None:
self._test_ast_from_old_namespace_package_protocol("pkgutil")
- def test_ast_from_namespace_pkg_resources(self) -> None:
- self._test_ast_from_old_namespace_package_protocol("pkg_resources")
-
- def test_identify_old_namespace_package_protocol(self) -> None:
- # Like the above cases, this package follows the old namespace package
protocol
- # astroid currently assumes such packages are in sys.modules, so
import it
- with warnings.catch_warnings():
- warnings.filterwarnings(
- "ignore",
- category=UserWarning,
- message=".*pkg_resources is deprecated.*",
- )
-
- # pylint: disable-next=import-outside-toplevel
- import
tests.testdata.python3.data.path_pkg_resources_1.package.foo as _ # noqa
-
- self.assertTrue(
-
util.is_namespace("tests.testdata.python3.data.path_pkg_resources_1")
- )
-
def test_submodule_homonym_with_non_module(self) -> None:
self.assertFalse(
util.is_namespace("tests.testdata.python3.data.parent_of_homonym.doc")