diff --git a/edit-setup.py.patch b/edit-setup.py.patch deleted file mode 100644 index d318f33eeb607a8f07b1e3a5cf6f8d13994e742b..0000000000000000000000000000000000000000 --- a/edit-setup.py.patch +++ /dev/null @@ -1,23 +0,0 @@ ---- c/setup.py 2023-01-18 11:13:05.156558378 +0800 -+++ a/setup.py 2023-01-18 11:13:43.207556530 +0800 -@@ -20,9 +20,18 @@ try: - except: - from distutils import Extension, setup - --from Cython.Build import cythonize -+#from Cython.Build import cythonize -+ -+#ext_modules = cythonize("editdistance/bycython.pyx") -+ -+ext_modules = [ -+ Extension( -+ "editdistance.bycython", -+ ["editdistance/_editdistance.cpp", "editdistance/bycython.cpp"], -+ include_dirs=["./editdistance"], -+ ) -+] - --ext_modules = cythonize("editdistance/bycython.pyx") - - with open("README.rst") as readme_file: - readme = readme_file.read() diff --git a/editdistance-0.6.2.tar.gz b/editdistance-0.6.2.tar.gz deleted file mode 100644 index f3c24439000f0d330d7577de7a2e524e541863fe..0000000000000000000000000000000000000000 Binary files a/editdistance-0.6.2.tar.gz and /dev/null differ diff --git a/editdistance-0.8.1.tar.gz b/editdistance-0.8.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..593b9af987dc71e7c69e422565800c35343f91be Binary files /dev/null and b/editdistance-0.8.1.tar.gz differ diff --git a/python-editdistance.spec b/python-editdistance.spec index 06db8a8f846aac96dd2bd7b55bb9cd6fd63e4d33..ae4263f0f85522880074a908391609707bbdd0f7 100644 --- a/python-editdistance.spec +++ b/python-editdistance.spec @@ -1,12 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-editdistance -Version: 0.6.2 +Version: 0.8.1 Release: 1 Summary: Fast implementation of the edit distance(Levenshtein distance) License: MIT URL: https://www.github.com/roy-ht/editdistance -Source0: https://files.pythonhosted.org/packages/5b/a0/e6204db320f9721e1787c8d64458f9f1302cc7cd6ae8cc82aa57532905b5/editdistance-0.6.2.tar.gz -Patch0: edit-setup.py.patch +Source0: https://files.pythonhosted.org/packages/d5/18/9f4f975ca87a390832b1c22478f3702fcdf739f83211e24d054b7551270d/editdistance-0.8.1.tar.gz %description This library simply implements Levenshtein distance with C++ and Cython. @@ -15,7 +14,9 @@ This library simply implements Levenshtein distance with C++ and Cython. Summary: Fast implementation of the edit distance(Levenshtein distance) Provides: python-editdistance = %{version}-%{release} BuildRequires: python3-devel +BuildRequires: python3-pip BuildRequires: python3-setuptools +BuildRequires: python3-wheel BuildRequires: python3-cffi BuildRequires: python3-Cython BuildRequires: gcc @@ -33,7 +34,7 @@ This library simply implements Levenshtein distance with C++ and Cython. %autosetup -n editdistance-%{version} %build -%py3_build +%{__python3} -m pip wheel --no-deps --no-build-isolation -w %{_builddir} . %install %py3_install @@ -73,6 +74,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Nov 13 2025 zhao6777 - 0.8.1-1 +- Update to 0.8.1 + * Mon Jan 16 2023 wangjunqi - 0.6.2-1 - Update package to version 0.6.2