Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-traitsui"

Tue Oct 13 17:44:42 2026 rev:10 rq:1384468 version:8.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-traitsui/python-traitsui.changes  
2023-11-17 20:51:33.789588217 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-traitsui.new.3698736/python-traitsui.changes 
    2026-10-13 17:44:53.909191760 +0200
@@ -1,0 +2,6 @@
+Tue Oct 13 04:00:17 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+  * Use importlib.resources to fetch files in the testsuite.
+
+-------------------------------------------------------------------

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

----------(New B)----------
  New:
- Add patch no-more-pkg-resources.patch:
  * Use importlib.resources to fetch files in the testsuite.
----------(New E)----------

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

Other differences:
------------------
++++++ python-traitsui.spec ++++++
--- /var/tmp/diff_new_pack.Wn4GDP/_old  2026-10-13 17:44:54.828230275 +0200
+++ /var/tmp/diff_new_pack.Wn4GDP/_new  2026-10-13 17:44:54.830230359 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-traitsui
 #
-# Copyright (c) 2023 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
@@ -16,7 +16,6 @@
 #
 
 
-%define skip_python2 1
 Name:           python-traitsui
 Version:        8.0.0
 Release:        0
@@ -24,9 +23,9 @@
 # Source code is under BSD but images are under different licenses
 # and details are inside image_LICENSE.txt
 License:        BSD-3-Clause AND EPL-1.0 AND LGPL-2.1-only AND LGPL-3.0-only
-Group:          Development/Libraries/Python
 URL:            https://github.com/enthought/traitsui
 Source:         
https://files.pythonhosted.org/packages/source/t/traitsui/traitsui-%{version}.tar.gz
+Patch0:         no-more-pkg-resources.patch
 BuildRequires:  %{python_module configobj}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pyface >= 7.3}
@@ -83,5 +82,5 @@
 %doc examples/
 %license LICENSE.txt image_LICENSE*.txt
 %{python_sitelib}/traitsui/
-%{python_sitelib}/traitsui-%{version}*-info
+%{python_sitelib}/traitsui-%{version}.dist-info
 

++++++ no-more-pkg-resources.patch ++++++
Index: traitsui-8.0.0/traitsui/tests/editors/test_animatedGIF_editor.py
===================================================================
--- traitsui-8.0.0.orig/traitsui/tests/editors/test_animatedGIF_editor.py
+++ traitsui-8.0.0/traitsui/tests/editors/test_animatedGIF_editor.py
@@ -11,10 +11,9 @@
 """ Tests pertaining to the AnimatedGIFEditor
 """
 
+import importlib.resources
 import unittest
 
-import pkg_resources
-
 from traits.api import File, HasTraits
 from traitsui.api import Item, View
 from traitsui.tests._tools import (
@@ -24,9 +23,9 @@ from traitsui.tests._tools import (
     ToolkitName,
 )
 
-filename = pkg_resources.resource_filename(
-    "traitsui", "examples/demo/Extras/images/logo_32x32.gif"
-)
+filename = str(importlib.resources.files('traitsui').joinpath(
+    "examples/demo/Extras/images/logo_32x32.gif"
+))
 
 
 class AnimatedGIF(HasTraits):
Index: traitsui-8.0.0/traitsui/tests/editors/test_video_editor.py
===================================================================
--- traitsui-8.0.0.orig/traitsui/tests/editors/test_video_editor.py
+++ traitsui-8.0.0/traitsui/tests/editors/test_video_editor.py
@@ -9,6 +9,7 @@
 # Thanks for using Enthought open source!
 
 import os
+import importlib.resources
 import unittest
 import subprocess
 import sys
@@ -17,14 +18,13 @@ try:
     import numpy as np  # noqa: F401
 except ImportError:
     raise unittest.SkipTest("Can't import NumPy: skipping")
-import pkg_resources
 
 from traits.api import Bool, Callable, File, Float, HasTraits, Range, Str
 from traitsui.api import ContextValue, Item, View
 from traitsui.editors.video_editor import MediaStatus, PlayerState, VideoEditor
 from traitsui.tests._tools import BaseTestMixin, create_ui, is_qt5, is_qt6
 
-filename = pkg_resources.resource_filename('traitsui.testing', 'data/test.mp4')
+filename = 
str(importlib.resources.files('traitsui.testing').joinpath('data/test.mp4'))
 
 
 # Is a MacOS machine lacking the standard Metal APIs?
Index: traitsui-8.0.0/traitsui/tests/editors/test_image_editor.py
===================================================================
--- traitsui-8.0.0.orig/traitsui/tests/editors/test_image_editor.py
+++ traitsui-8.0.0/traitsui/tests/editors/test_image_editor.py
@@ -11,10 +11,9 @@
 """ Tests pertaining to the ImageEditor
 """
 
+import importlib.resources
 import unittest
 
-import pkg_resources
-
 from pyface.api import Image, ImageResource
 from traits.api import File, HasTraits
 from traitsui.api import ImageEditor, Item, View
@@ -28,12 +27,12 @@ from traitsui.tests._tools import (
 )
 
 
-filename1 = pkg_resources.resource_filename(
-    "traitsui", "examples/demo/Extras/images/python-logo.png"
-)
-filename2 = pkg_resources.resource_filename(
-    "traitsui", "examples/demo/Extras/images/info.png"
-)
+filename1 = str(importlib.resources.files('traitsui').joinpath(
+    "examples/demo/Extras/images/python-logo.png"
+))
+filename2 = str(importlib.resources.files('traitsui').joinpath(
+    "examples/demo/Extras/images/info.png"
+))
 
 
 class ImageDisplay(HasTraits):

Reply via email to