Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-opcodes for openSUSE:Factory 
checked in at 2026-10-01 16:42:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-opcodes (Old)
 and      /work/SRC/openSUSE:Factory/.python-opcodes.new.1253 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-opcodes"

Thu Oct  1 16:42:12 2026 rev:5 rq:1381557 version:0.3.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-opcodes/python-opcodes.changes    
2025-07-01 11:35:27.288543524 +0200
+++ /work/SRC/openSUSE:Factory/.python-opcodes.new.1253/python-opcodes.changes  
2026-10-01 16:43:58.811332570 +0200
@@ -1,0 +2,6 @@
+Wed Sep 30 01:34:43 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+  * Use importlib.resources to discover packaged resources.
+
+-------------------------------------------------------------------

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

----------(New B)----------
  New:
- Add patch no-more-pkg-resources.patch:
  * Use importlib.resources to discover packaged resources.
----------(New E)----------

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

Other differences:
------------------
++++++ python-opcodes.spec ++++++
--- /var/tmp/diff_new_pack.HqkkJJ/_old  2026-10-01 16:44:00.142388368 +0200
+++ /var/tmp/diff_new_pack.HqkkJJ/_new  2026-10-01 16:44:00.148388619 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-opcodes
 #
-# Copyright (c) 2025 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
@@ -22,9 +22,10 @@
 Release:        0
 Summary:        Database of Processor Instructions/Opcodes
 License:        BSD-2-Clause
-Group:          Development/Languages/Python
 URL:            https://github.com/Maratyszcza/Opcodes
 Source:         
https://files.pythonhosted.org/packages/source/o/opcodes/opcodes-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Use importlib.resources to find packaged resources
+Patch0:         no-more-pkg-resources.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
@@ -47,7 +48,7 @@
 This project is a spin-off from <https://github.com/Maratyszcza/PeachPy
 
 %prep
-%setup -q -n opcodes-%{version}
+%autosetup -p1 -n opcodes-%{version}
 
 %build
 %pyproject_wheel

++++++ no-more-pkg-resources.patch ++++++
Index: opcodes-0.3.14/opcodes/k1om.py
===================================================================
--- opcodes-0.3.14.orig/opcodes/k1om.py
+++ opcodes-0.3.14/opcodes/k1om.py
@@ -1,5 +1,5 @@
 from __future__ import print_function
-import pkg_resources
+import importlib.resources
 import xml.etree.ElementTree as ET
 
 
@@ -773,10 +773,8 @@ def read_instruction_set(filename=None):
     :param filename: path to an XML file with instruction set data
     """
     if filename is None:
-        data = pkg_resources.resource_stream("opcodes", "k1om.xml")
-        xml_tree = ET.parse(data)
-    else:
-        xml_tree = ET.parse(filename)
+        filename = importlib.resources.files("opcodes").joinpath("k1om.xml")
+    xml_tree = ET.parse(filename)
 
     xml_instruction_set = xml_tree.getroot()
     assert xml_instruction_set.tag == "InstructionSet"
Index: opcodes-0.3.14/opcodes/x86.py
===================================================================
--- opcodes-0.3.14.orig/opcodes/x86.py
+++ opcodes-0.3.14/opcodes/x86.py
@@ -1,5 +1,5 @@
 from __future__ import print_function
-import pkg_resources
+import importlib.resources
 import xml.etree.ElementTree as ET
 
 
@@ -906,10 +906,8 @@ def read_instruction_set(filename=None):
     :param filename: path to an XML file with instruction set data
     """
     if filename is None:
-        data = pkg_resources.resource_stream("opcodes", "x86.xml")
-        xml_tree = ET.parse(data)
-    else:
-        xml_tree = ET.parse(filename)
+        filename = importlib.resources.files("opcodes").joinpath("x86.xml")
+    xml_tree = ET.parse(filename)
 
     xml_instruction_set = xml_tree.getroot()
     assert xml_instruction_set.tag == "InstructionSet"
Index: opcodes-0.3.14/opcodes/x86_64.py
===================================================================
--- opcodes-0.3.14.orig/opcodes/x86_64.py
+++ opcodes-0.3.14/opcodes/x86_64.py
@@ -1,5 +1,5 @@
 from __future__ import print_function
-import pkg_resources
+import importlib.resources
 import xml.etree.ElementTree as ET
 
 
@@ -1041,10 +1041,8 @@ def read_instruction_set(filename=None):
     :param filename: path to an XML file with instruction set data
     """
     if filename is None:
-        data = pkg_resources.resource_stream("opcodes", "x86_64.xml")
-        xml_tree = ET.parse(data)
-    else:
-        xml_tree = ET.parse(filename)
+        filename = importlib.resources.files("opcodes").joinpath("x86_64.xml")
+    xml_tree = ET.parse(filename)
 
     xml_instruction_set = xml_tree.getroot()
     assert xml_instruction_set.tag == "InstructionSet"
Index: opcodes-0.3.14/setup.py
===================================================================
--- opcodes-0.3.14.orig/setup.py
+++ opcodes-0.3.14/setup.py
@@ -21,7 +21,7 @@ setup(
     packages=["opcodes"],
     package_data={"opcodes": ["x86.xml", "x86_64.xml", "k1om.xml"]},
     keywords=["assembly", "assembler", "asm", "opcodes", "x86", "x86-64", 
"isa", "cpu"],
-    install_requires=["setuptools"],
+    install_requires=[],
     requires=[],
     classifiers=[
         "Development Status :: 4 - Beta",

Reply via email to