Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pyFFTW for openSUSE:Factory 
checked in at 2024-02-13 22:42:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyFFTW (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyFFTW.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyFFTW"

Tue Feb 13 22:42:13 2024 rev:9 rq:1146240 version:0.13.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyFFTW/python-pyFFTW.changes      
2023-09-20 13:26:58.825896718 +0200
+++ /work/SRC/openSUSE:Factory/.python-pyFFTW.new.1815/python-pyFFTW.changes    
2024-02-13 22:42:31.276572435 +0100
@@ -1,0 +2,7 @@
+Mon Feb 12 12:15:17 UTC 2024 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add python312.patch gh#pyFFTW/pyFFTW#370
+- Remove shebangs from python files
+- Use fdupes to remove duplicates
+
+-------------------------------------------------------------------

New:
----
  python312.patch

BETA DEBUG BEGIN:
  New:
- Add python312.patch gh#pyFFTW/pyFFTW#370
- Remove shebangs from python files
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-pyFFTW.spec ++++++
--- /var/tmp/diff_new_pack.1Qf2a9/_old  2024-02-13 22:42:32.064600797 +0100
+++ /var/tmp/diff_new_pack.1Qf2a9/_new  2024-02-13 22:42:32.064600797 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyFFTW
 #
-# 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
@@ -33,7 +33,9 @@
 URL:            https://github.com/pyFFTW/pyFFTW
 Source:         https://github.com/pyFFTW/pyFFTW/archive/v%{version}.tar.gz
 # PATCH-FIX-UPSTREAM https://github.com/pyFFTW/pyFFTW/pull/363 Cython 3 
updates and test build linker flags
-Patch:          cython3.patch
+Patch0:         cython3.patch
+# PATCH-FIX-UPSTREAM python312.patch gh#pyFFTW/pyFFTW#370
+Patch1:         python312.patch
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module dask}
 BuildRequires:  %{python_module devel}
@@ -69,6 +71,9 @@
 
 %prep
 %autosetup -p1 -n pyFFTW-%{version}
+# remove shebangs
+sed -i -e '/^#!\//, 1d' pyfftw/*.py
+sed -i -e '/^#!\//, 1d' pyfftw/*/*.py
 
 %build
 export CFLAGS="%{optflags}"
@@ -76,6 +81,7 @@
 
 %install
 %pyproject_install
+%python_expand %fdupes %{buildroot}/%{$python_sitearch}/pyfftw
 
 %if %{with test}
 %check

++++++ python312.patch ++++++
>From b61c8be64e3c48b483558106e17fe76087134a32 Mon Sep 17 00:00:00 2001
From: Julien Salort <julien.sal...@ens-lyon.fr>
Date: Thu, 25 Jan 2024 11:20:04 +0100
Subject: [PATCH] Upgrade setuptools and configparser for Python 3.12

---
 pyproject.toml | 2 +-
 setup.py       | 2 ++
 versioneer.py  | 6 +++---
 3 files changed, 6 insertions(+), 4 deletions(-)

Index: pyFFTW-0.13.1/pyproject.toml
===================================================================
--- pyFFTW-0.13.1.orig/pyproject.toml
+++ pyFFTW-0.13.1/pyproject.toml
@@ -166,7 +166,7 @@ test-command = "pytest --import-mode=app
 [build-system]
 requires = [
     "wheel",
-    "setuptools<=59.4.0",
+    "setuptools", #<=59.4.0",
     "Cython>=3",
 
     # NumPy dependencies - to update these, sync from
Index: pyFFTW-0.13.1/setup.py
===================================================================
--- pyFFTW-0.13.1.orig/setup.py
+++ pyFFTW-0.13.1/setup.py
@@ -777,6 +777,7 @@ def setup_package():
             'Programming Language :: Python :: 3.9',
             'Programming Language :: Python :: 3.10',
             'Programming Language :: Python :: 3.11',
+            'Programming Language :: Python :: 3.12',
             'Development Status :: 4 - Beta',
             'License :: OSI Approved :: BSD License',
             'Operating System :: OS Independent',
@@ -790,6 +791,7 @@ def setup_package():
         ],
         'cmdclass': cmdclass,
         'python_requires': ">=3.8",
+        'py_modules': ['pyfftw'],
     }
 
     setup_args['setup_requires'] = build_requires
Index: pyFFTW-0.13.1/versioneer.py
===================================================================
--- pyFFTW-0.13.1.orig/versioneer.py
+++ pyFFTW-0.13.1/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):
@@ -418,7 +418,7 @@ def run_command(commands, args, cwd=None
     return stdout, p.returncode
 
 
-LONG_VERSION_PY['git'] = '''
+LONG_VERSION_PY['git'] = r'''
 # This file helps to compute a version number in source trees obtained from
 # git-archive tarball (such as those provided by githubs download-from-tag
 # feature). Distribution tarballs (built by setup.py sdist) and build

Reply via email to