commit 360a510cf5bdbdd8f6dec5fee7655871e87a0970688cc13fc7ba6bfcfe15535e Author: Dirk Mueller Date: Sun Aug 18 17:30:37 2024 +0000 - update to 4.6.3: * Fix spelling and add missing import OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textdistance?expand=0&rev=19 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/hypothesis-profile-conftest.patch b/hypothesis-profile-conftest.patch new file mode 100644 index 0000000..20f840e --- /dev/null +++ b/hypothesis-profile-conftest.patch @@ -0,0 +1,13 @@ +Index: textdistance-v.4.2.1/tests/conftest.py +=================================================================== +--- /dev/null ++++ textdistance-v.4.2.1/tests/conftest.py +@@ -0,0 +1,8 @@ ++# increase test deadline for slow obs executions ++import hypothesis ++ ++hypothesis.settings.register_profile( ++ 'obs', ++ deadline=5000, ++ suppress_health_check=[hypothesis.HealthCheck.too_slow] ++) diff --git a/python-textdistance.changes b/python-textdistance.changes new file mode 100644 index 0000000..539dd6e --- /dev/null +++ b/python-textdistance.changes @@ -0,0 +1,70 @@ +------------------------------------------------------------------- +Sun Aug 18 17:30:12 UTC 2024 - Dirk Müller + +- update to 4.6.3: + * Fix spelling and add missing import + +------------------------------------------------------------------- +Mon Jun 10 09:27:22 UTC 2024 - Dirk Müller + +- update to 4.6.2: + * Levenstein: ensure the return type is int + +------------------------------------------------------------------- +Sun Jan 14 15:13:46 UTC 2024 - Dirk Müller + +- update to 4.6.1: + * Remove abydos references from libraries.json + +------------------------------------------------------------------- +Wed Dec 13 10:07:38 UTC 2023 - Dirk Müller + +- update to 4.6.0: + * Drop abydos + * Remove executable bit from filesystem permissions of + README.md + * Replace deprecated license_file with license_files in + setup.cfg + +------------------------------------------------------------------- +Wed Feb 8 04:09:31 UTC 2023 - Steve Kowalik + +- Update to 4.5.0: + * Run Python 3.10 tests on CI + * Type annotations + * Add new DamerauLevenshtein... classes + * update rapidfuzz + * Ensure that maximum normalised distance is <= 1 + * Ensure editex parameters are sensible + * Ignore inconsistent timings on some comparison tests + * add support for rapidfuzz +- Fix up the download URL due to upstream dropping v. + +------------------------------------------------------------------- +Sat Jun 18 14:19:44 UTC 2022 - Ben Greiner + +- More than one test can timeout + * Drop extend-timeout.patch + * Add hypothesis-profile-conftest.patch + +------------------------------------------------------------------- +Tue Mar 1 12:20:22 UTC 2022 - pgajdos@suse.com + +- version update to 4.2.1 + * no upstream changelog + +------------------------------------------------------------------- +Thu Feb 18 23:01:58 UTC 2021 - Dirk Müller + +- skip python 3.6 build (no numpy) + +------------------------------------------------------------------- +Sun Jan 3 14:27:00 UTC 2021 - Matej Cepl + +- Add extend-timeout.patch switching off timeout on failing test. + +------------------------------------------------------------------- +Sat Dec 19 22:06:48 UTC 2020 - Benjamin Greiner + +- Initial specfile for version 4.2.0 +- required by spyder 4.2.1 diff --git a/python-textdistance.spec b/python-textdistance.spec new file mode 100644 index 0000000..ff18fc9 --- /dev/null +++ b/python-textdistance.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-textdistance +# +# 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/ +# + + +Name: python-textdistance +Version: 4.6.3 +Release: 0 +Summary: Compute distance between the two texts +License: MIT +URL: https://github.com/life4/textdistance +Source: https://github.com/life4/textdistance/archive/refs/tags/%{version}.tar.gz#/textdistance-%{version}.tar.gz +# PATCH-FEATURE-OPENSUSE hypothesis-profile-conftest.patch -- add hypothesis profile for slow OBS executions, code@bnavigator.de +Patch1: hypothesis-profile-conftest.patch +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Recommends: python-distance +Recommends: python-jellyfish +Recommends: python-numpy +Recommends: python-python-Levenshtein +Recommends: python-pyxDamerauLevenshtein +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module isort} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Compute distance between sequences. 30+ algorithms, pure python +implementation, common interface, optional external libs usage. + +%prep +%autosetup -p1 -n textdistance-%{version} +chmod a-x README.md + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# we don't have all external libraries to test with +%pytest -m "not external" --hypothesis-profile obs + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/textdistance +%{python_sitelib}/textdistance-%{version}*-info + +%changelog diff --git a/textdistance-4.6.2.tar.gz b/textdistance-4.6.2.tar.gz new file mode 100644 index 0000000..d6cd09f --- /dev/null +++ b/textdistance-4.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab9cca83c9321d69771a0e26eb4aca6271cd5e129badc93223a5697ed3719e79 +size 46619 diff --git a/textdistance-4.6.3.tar.gz b/textdistance-4.6.3.tar.gz new file mode 100644 index 0000000..7f0ccaa --- /dev/null +++ b/textdistance-4.6.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1efec1ec903d62969413c552e07cde8ecdad7259e6a5c4c1e516007ed7ad5f47 +size 46631