Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-opt-einsum for 
openSUSE:Factory checked in at 2024-02-12 18:53:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-opt-einsum (Old)
 and      /work/SRC/openSUSE:Factory/.python-opt-einsum.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-opt-einsum"

Mon Feb 12 18:53:50 2024 rev:5 rq:1146200 version:3.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-opt-einsum/python-opt-einsum.changes      
2021-04-22 18:04:53.358591457 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-opt-einsum.new.1815/python-opt-einsum.changes
    2024-02-12 18:56:04.854886123 +0100
@@ -1,0 +2,9 @@
+Mon Feb 12 13:18:40 UTC 2024 - Ben Greiner <c...@bnavigator.de>
+
+- Add opt_einsum-pr208-configparser.patch
+  * gh#dgasmith/opt_einsum#208
+- Build wheel with PEP517
+- Clean obsolete flavor skips
+- Don't catchall sitelib files
+
+-------------------------------------------------------------------

New:
----
  opt_einsum-pr208-configparser.patch

BETA DEBUG BEGIN:
  New:
- Add opt_einsum-pr208-configparser.patch
  * gh#dgasmith/opt_einsum#208
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-opt-einsum.spec ++++++
--- /var/tmp/diff_new_pack.Xo1NCT/_old  2024-02-12 18:56:05.302902301 +0100
+++ /var/tmp/diff_new_pack.Xo1NCT/_new  2024-02-12 18:56:05.306902446 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-opt-einsum
 #
-# Copyright (c) 2021 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
@@ -16,9 +16,6 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
-%define skip_python36 1
 Name:           python-opt-einsum
 Version:        3.3.0
 Release:        0
@@ -26,9 +23,13 @@
 License:        MIT
 URL:            https://github.com/dgasmith/opt_einsum
 Source:         
https://files.pythonhosted.org/packages/source/o/opt_einsum/opt_einsum-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM opt_einsum-pr208-configparser.patch 
gh#dgasmith/opt_einsum#208
+Patch0:         
https://github.com/dgasmith/opt_einsum/pull/208.patch#/opt_einsum-pr208-configparser.patch
 BuildRequires:  %{python_module numpy >= 1.7}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 Requires:       python-numpy >= 1.7
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -47,13 +48,14 @@
 information.
 
 %prep
-%setup -q -n opt_einsum-%{version}
+%autosetup -p1 -n opt_einsum-%{version}
+sed -i '1{/^#!/d}' opt_einsum/parser.py
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -62,5 +64,6 @@
 %files %{python_files}
 %doc README.md
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/opt_einsum
+%{python_sitelib}/opt_einsum-%{version}.dist-info
 

++++++ opt_einsum-pr208-configparser.patch ++++++
>From 0beacf96923bbb2dd1939a9c59398a38ce7a11b1 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu....@windriver.com>
Date: Thu, 17 Nov 2022 17:04:54 -0800
Subject: [PATCH] Use ConfigParser instead of SafeConfigParser

The SafeConfigParser class will be renamed to ConfigParser in Python
3.12 [1]. This alias will be removed in future versions.So we can use
ConfigParser directly instead.

[1] https://github.com/python/cpython/issues/89336

Signed-off-by: Hongxu Jia <hongxu....@windriver.com>
---
 versioneer.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/versioneer.py b/versioneer.py
index d3db643..6d732af 100644
--- a/versioneer.py
+++ b/versioneer.py
@@ -339,9 +339,9 @@ def get_config_from_root(root):
     # configparser.NoOptionError (if it lacks "VCS="). See the docstring at
     # the top of versioneer.py for instructions on writing your setup.cfg .
     setup_cfg = os.path.join(root, "setup.cfg")
-    parser = configparser.SafeConfigParser()
+    parser = configparser.ConfigParser()
     with open(setup_cfg, "r") as f:
-        parser.readfp(f)
+        parser.read_file(f)
     VCS = parser.get("versioneer", "VCS")  # mandatory
 
     def get(parser, name):

Reply via email to