Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-ase for openSUSE:Factory 
checked in at 2024-02-07 18:49:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ase (Old)
 and      /work/SRC/openSUSE:Factory/.python-ase.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ase"

Wed Feb  7 18:49:03 2024 rev:3 rq:1144709 version:3.22.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ase/python-ase.changes    2023-03-10 
22:07:15.973101441 +0100
+++ /work/SRC/openSUSE:Factory/.python-ase.new.1815/python-ase.changes  
2024-02-07 18:51:08.116601557 +0100
@@ -1,0 +2,7 @@
+Tue Feb  6 18:08:22 UTC 2024 - Daniel Garcia <[email protected]>
+
+- Add upstream patch to support python3.12
+  deprecated-importlib-find_loader.patch
+  https://gitlab.com/ase/ase/-/merge_requests/2938
+
+-------------------------------------------------------------------

New:
----
  deprecated-importlib-find_loader.patch

BETA DEBUG BEGIN:
  New:- Add upstream patch to support python3.12
  deprecated-importlib-find_loader.patch
  https://gitlab.com/ase/ase/-/merge_requests/2938
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-ase.spec ++++++
--- /var/tmp/diff_new_pack.hwCVNL/_old  2024-02-07 18:51:09.480651459 +0100
+++ /var/tmp/diff_new_pack.hwCVNL/_new  2024-02-07 18:51:09.480651459 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-ase
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,8 @@
 Patch0:         support-matplotlib-36.patch
 # PATCH-FIX-UPSTREAM https://gitlab.com/ase/ase/-/merge_requests/2582
 Patch1:         2582.patch
+# PATCH-FIX-UPSTREAM deprecated-importlib-find_loader.patch 
https://gitlab.com/ase/ase/-/merge_requests/2938
+Patch2:         deprecated-importlib-find_loader.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
 # SECTION test requirements

++++++ deprecated-importlib-find_loader.patch ++++++
Index: ase-3.22.1/ase/calculators/autodetect.py
===================================================================
--- ase-3.22.1.orig/ase/calculators/autodetect.py
+++ ase-3.22.1/ase/calculators/autodetect.py
@@ -45,11 +45,11 @@ def detect(name):
         return d
 
     if name in python_modules:
-        loader = importlib.find_loader(python_modules[name])
-        if loader is not None:
+        spec = importlib.util.find_spec(python_modules[name])
+        if spec is not None:
             d['type'] = 'python'
             d['module'] = python_modules[name]
-            d['path'] = loader.get_filename()
+            d['path'] = spec.loader.get_filename()
             return d
 
     envvar = get_executable_env_var(name)
Index: ase-3.22.1/ase/test/testsuite.py
===================================================================
--- ase-3.22.1.orig/ase/test/testsuite.py
+++ ase-3.22.1/ase/test/testsuite.py
@@ -53,7 +53,7 @@ def test(calculators=tuple(), jobs=0, ve
 
 
 def have_module(module):
-    return importlib.find_loader(module) is not None
+    return importlib.util.find_spec(module) is not None
 
 
 MULTIPROCESSING_MAX_WORKERS = 32

Reply via email to