Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-dtaidistance for 
openSUSE:Factory checked in at 2023-09-04 22:53:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dtaidistance (Old)
 and      /work/SRC/openSUSE:Factory/.python-dtaidistance.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dtaidistance"

Mon Sep  4 22:53:11 2023 rev:5 rq:1108782 version:2.3.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dtaidistance/python-dtaidistance.changes  
2023-03-02 23:04:01.739979023 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-dtaidistance.new.1766/python-dtaidistance.changes
        2023-09-04 22:53:40.623968674 +0200
@@ -1,0 +2,5 @@
+Thu Aug 31 09:10:04 UTC 2023 - Markéta Machová <[email protected]>
+
+- Add upstream cython3.patch
+
+-------------------------------------------------------------------

New:
----
  cython3.patch

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

Other differences:
------------------
++++++ python-dtaidistance.spec ++++++
--- /var/tmp/diff_new_pack.2LRMAP/_old  2023-09-04 22:53:42.320028625 +0200
+++ /var/tmp/diff_new_pack.2LRMAP/_new  2023-09-04 22:53:42.364030181 +0200
@@ -24,6 +24,8 @@
 License:        Apache-2.0
 URL:            https://github.com/wannesm/dtaidistance
 Source:         
https://github.com/wannesm/dtaidistance/archive/v%{version}.tar.gz#/dtaidistance-%{version}.tar.gz
+#PATCH-FIX-UPSTREAM 
https://github.com/wannesm/dtaidistance/commit/a4b4bbf4be5bac7b95210b993ee24213bc2a0a36
 Fix build for Cython v3.0.0
+Patch:          cython3.patch
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module wheel}
@@ -50,7 +52,7 @@
 Library for time series distances (e.g. Dynamic Time Warping, DTW).
 
 %prep
-%setup -q -n dtaidistance-%{version}
+%autosetup -p1 -n dtaidistance-%{version}
 
 %build
 export CFLAGS="%{optflags}"
@@ -65,14 +67,6 @@
 %check
 # Test are too slow in x86
 %ifnarch %{ix86}
-python36_parameter="-c pytest-nolibs.ini \
---ignore tests/test_alignment.py \
---ignore tests/test_benchmark.py \
---ignore tests/test_dtw2d.py \
---ignore tests/test_dtw_weighted.py \
---ignore tests/test_dtw_weighted_dt.py \
---ignore tests/test_penalty.py \
-"
 # openMP library mismatch (symbol in libgomp not found) -- use use_mp=True"
 donttest+=" or (test_clustering and test_clustering_tree_ndim)"
 donttest+=" or (test_dtw and test_distance_matrix2_e)"
@@ -82,7 +76,7 @@
 
 # Broken tests with latest numpy >= 1.24
 donttest+=" or test_bug3 or test_distance1_a"
-%pytest_arch ${$python_parameter} ${donttest:+ -k "not (${donttest:4})"} -m 
"not benchmark"
+%pytest_arch ${donttest:+ -k "not (${donttest:4})"} -m "not benchmark"
 %endif
 
 %files %{python_files}

++++++ cython3.patch ++++++
>From a4b4bbf4be5bac7b95210b993ee24213bc2a0a36 Mon Sep 17 00:00:00 2001
From: Pieter Robberechts <[email protected]>
Date: Tue, 25 Jul 2023 16:34:07 +0200
Subject: [PATCH] Fix build for Cython v3.0.0

Fixes #195
---
 setup.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/setup.py b/setup.py
index de52e266..a5458591 100755
--- a/setup.py
+++ b/setup.py
@@ -403,7 +403,7 @@ def check_openmp(cc_bin, noxpreprocessor, printfn=print):
     extensions.append(
         Extension(
             "dtaidistance.dtw_cc",
-            ["dtaidistance/dtw_cc.pyx", "dtaidistance/dtw_cc.pxd",
+            ["dtaidistance/dtw_cc.pyx",
              "dtaidistance/lib/DTAIDistanceC/DTAIDistanceC/dd_dtw.c",
              "dtaidistance/lib/DTAIDistanceC/DTAIDistanceC/dd_ed.c"
              ],
@@ -447,8 +447,8 @@ def check_openmp(cc_bin, noxpreprocessor, printfn=print):
     else:
         print("WARNING: Numpy was not found, preparing a version without Numpy 
support.")
 
-    ext_modules = cythonize(extensions)
-                            # compiler_directives={'language_level': "3"})
+    ext_modules = cythonize(extensions, language_level=2)
+
 else:
     print("WARNING: Cython was not found, preparing a pure Python version.")
     ext_modules = []

Reply via email to