From 0fe07a03e20021220cfdb4a941308e1afc544c2e Mon Sep 17 00:00:00 2001 From: Tomáš Hrnčiar Date: Dec 15 2023 11:29:08 +0000 Subject: Update to 3.5.2 - Fixes: rhbz#2183537 --- diff --git a/fix-cython3.0.0-build.patch b/fix-cython3.0.0-build.patch deleted file mode 100644 index 8b6423e..0000000 --- a/fix-cython3.0.0-build.patch +++ /dev/null @@ -1,19 +0,0 @@ -commit 2db511010d03c6453c239066cba85ee1b84dcc1e -Author: Max Bachmann -Date: Fri Jun 2 16:25:26 2023 +0200 - - mark function as noexcept - -diff --git a/src/rapidfuzz/distance/metrics_cpp.pyx b/src/rapidfuzz/distance/metrics_cpp.pyx -index c70aad1..425fb61 100644 ---- a/src/rapidfuzz/distance/metrics_cpp.pyx -+++ b/src/rapidfuzz/distance/metrics_cpp.pyx -@@ -293,7 +293,7 @@ def levenshtein_opcodes(s1, s2, *, processor=None, score_hint=None): - ops.editops = levenshtein_editops_func(s1_proc.string, s2_proc.string, c_score_hint) - return ops.as_opcodes() - --cdef void KwargsDeinit(RF_Kwargs* self): -+cdef void KwargsDeinit(RF_Kwargs* self) noexcept: - free(self.context) - - cdef bool LevenshteinKwargsInit(RF_Kwargs* self, dict kwargs) except False: diff --git a/python-rapidfuzz.spec b/python-rapidfuzz.spec index d22a494..6be9687 100644 --- a/python-rapidfuzz.spec +++ b/python-rapidfuzz.spec @@ -1,5 +1,5 @@ Name: python-rapidfuzz -Version: 2.13.7 +Version: 3.5.2 Release: %autorelease Summary: Rapid fuzzy string matching in Python and C++ using the Levenshtein Distance @@ -19,10 +19,6 @@ BuildRequires: python3-cython >= 3 BuildRequires: rapidfuzz-cpp-static BuildRequires: taskflow-static -# Backport a Cython 3.0.0 fix from the latest python-rapidfuzz sources. -# https://github.com/maxbachmann/RapidFuzz/commit/2db511010d03c6453c239066cba85ee1b84dcc1e -Patch0: fix-cython3.0.0-build.patch - %global _description %{expand: RapidFuzz is a fast string matching library for Python and C++, which is using the string similarity calculations from FuzzyWuzzy. However there are a couple