forked from pool/python-Levenshtein
- Update to version 0.25.1
* Fix potentially incorrect results of `jaro_winkler`
when using high prefix weights
- from version 0.25.0
* Improve type hints
- from version 0.24.0
* Upgrade ``rapidfuzz-cpp`` to ``v3.0.0``
- Drop support for Python 3.7
- from version 0.23.0
* Added keyword argument `pad` to Hamming distance. This controls
whether sequences of different length should be padded or lead
to a `ValueError`
* Upgrade to `Cython==3.0.3`
- from version 0.22.0
* Add support for Python 3.12
* Drop support for Python 3.6
* Add wheels for windows arm64
- from version 0.21.1
* Upgrade ``rapidfuzz-cpp`` to ``v2.0.0``
- from version 0.21.0
* Relax dependency requirement on ``rapidfuzz``
- from version 0.20.9
* Fix function signature of `get_requires_for_build_wheel`
- from version 0.20.8
- Type hints for `editops`/`opcoded`/`matching_blocks` did not allow any
hashable sequence
- from version 0.20.7
- Type hints did not get installed
- from version 0.20.6
- Fix incorrect result normalization in `setratio` and `seqratio`
OBS-URL: https://build.opensuse.org/request/show/1177376
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Levenshtein?expand=0&rev=24
66 lines
2.0 KiB
RPMSpec
66 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-Levenshtein
|
|
#
|
|
# 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-Levenshtein
|
|
Version: 0.25.1
|
|
Release: 0
|
|
Summary: Python extension computing string distances and similarities
|
|
License: GPL-2.0-or-later
|
|
URL: https://github.com/rapidfuzz/Levenshtein
|
|
Source: https://files.pythonhosted.org/packages/source/L/Levenshtein/Levenshtein-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module packaging}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module scikit-build}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: ninja
|
|
BuildRequires: python-rpm-macros
|
|
%python_subpackages
|
|
|
|
%description
|
|
The Levenshtein Python C extension module contains functions for fast
|
|
computation of
|
|
|
|
* Levenshtein (edit) distance, and edit operations
|
|
* string similarity
|
|
* approximate median strings, and generally string averaging
|
|
* string sequence and set similarity
|
|
|
|
It supports both normal and Unicode strings.
|
|
|
|
%prep
|
|
%setup -q -n Levenshtein-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%files %{python_files}
|
|
%license COPYING
|
|
%doc HISTORY.md README.md
|
|
%{python_sitearch}/
|
|
|
|
%changelog
|