Update to 0.27.1.

- Fixes rhbz#2349293
- Drop the no longer needed 72.patch
- Open up the rapidfuzz-cpp build version to allow build against 3.3.3
- Update URL to the new rapidfuzz GitHub organization.
This commit is contained in:
Troy Curtis Jr 2025-10-09 21:50:01 -04:00
commit c03c733aa0
4 changed files with 7 additions and 27 deletions

1
.gitignore vendored
View file

@ -6,3 +6,4 @@ python-Levenshtein-0.10.1.tar.bz2
/Levenshtein-0.23.0.tar.gz
/Levenshtein-0.26.0.tar.gz
/Levenshtein-0.26.1.tar.gz
/Levenshtein-0.27.1.tar.gz

View file

@ -1,22 +0,0 @@
From f5e782d3efd640be48c59f2b7efa4e19466476a9 Mon Sep 17 00:00:00 2001
From: Cristian Le <git@lecris.dev>
Date: Fri, 28 Feb 2025 13:20:27 +0100
Subject: [PATCH] fix: pyproject.toml metadata
---
pyproject.toml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pyproject.toml b/pyproject.toml
index 595180d..e424f68 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -26,6 +26,8 @@ classifiers=[
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
]
+
+[project.urls]
Homepage = "https://github.com/rapidfuzz/Levenshtein"
Documentation = "https://rapidfuzz.github.io/Levenshtein/"
Repository = "https://github.com/rapidfuzz/Levenshtein.git"

View file

@ -1,7 +1,7 @@
%global srcname Levenshtein
%global forgeurl https://github.com/maxbachmann/%{srcname}
Version: 0.26.1
%global forgeurl https://github.com/rapidfuzz/%{srcname}
Version: 0.27.1
%forgemeta
Name: python-%{srcname}
@ -16,8 +16,6 @@ URL: %{forgeurl}
Source0: %{forgesource}
Patch: https://github.com/rapidfuzz/Levenshtein/pull/72.patch
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
@ -42,6 +40,9 @@ Summary: %{summary}
# Remove Cython's upper constraint
sed -i '/Cython>=3\.[0-9]\+\./s/,\s*<3\.[0-9]\+\.[0-9a-z]*[0-9]*//' pyproject.toml
# Open up the rapidfuzz version constraint.
sed -i 's/rapidfuzz 3.2.0/rapidfuzz 3.2...<4/' CMakeLists.txt
%generate_buildrequires
%pyproject_buildrequires

View file

@ -1 +1 @@
SHA512 (Levenshtein-0.26.1.tar.gz) = 589b1f404108f488caf880063f20ee9c6a2033b0a2cd819352bf15e285ea8537c1dc8117de70679f720fd3da47546f7e0e5c620e4da8cf09bf8df9b119e6abc9
SHA512 (Levenshtein-0.27.1.tar.gz) = 900614697dc6456223ac99d9a7eed007b605da44239806d9e7b736142c3e2ab2544abc5d206a03d99b8d1e24f7efb837fa1782477bf7854ad71d8d6f37c8e6c2