From 1c6d4a286bbbc1e6b47a11c6e3e9139ec3152e09 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Wed, 6 Apr 2022 11:44:55 +0200 Subject: Add patch for SciPy 1.8 compatibility Stops testing weighted Minkowski metric, as that has been removed from SciPy 1.8. --- ...ing-wminkowski-metric-removed-in-SciPy-1.8.patch | 21 +++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 22 insertions(+) create mode 100644 debian/patches/0001-Stop-testing-wminkowski-metric-removed-in-SciPy-1.8.patch create mode 100644 debian/patches/series diff --git a/debian/patches/0001-Stop-testing-wminkowski-metric-removed-in-SciPy-1.8.patch b/debian/patches/0001-Stop-testing-wminkowski-metric-removed-in-SciPy-1.8.patch new file mode 100644 index 0000000..b6acfca --- /dev/null +++ b/debian/patches/0001-Stop-testing-wminkowski-metric-removed-in-SciPy-1.8.patch @@ -0,0 +1,21 @@ +From: Gard Spreemann +Date: Wed, 6 Apr 2022 11:44:01 +0200 +Subject: Stop testing wminkowski metric (removed in SciPy 1.8) + +--- + test/test_utils.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/test_utils.py b/test/test_utils.py +index 6b476b2..8b23c22 100644 +--- a/test/test_utils.py ++++ b/test/test_utils.py +@@ -122,7 +122,7 @@ def test_dist(): + 'braycurtis', 'canberra', 'chebyshev', 'cityblock', 'correlation', 'cosine', 'dice', + 'euclidean', 'hamming', 'jaccard', 'kulsinski', + 'matching', 'minkowski', 'rogerstanimoto', 'russellrao', +- 'sokalmichener', 'sokalsneath', 'sqeuclidean', 'wminkowski', 'yule' ++ 'sokalmichener', 'sokalsneath', 'sqeuclidean', 'yule' + ] # those that support weights + metrics = ['mahalanobis', 'seuclidean'] # do not support weights depending on scipy's version + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..c372534 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-Stop-testing-wminkowski-metric-removed-in-SciPy-1.8.patch -- cgit v1.2.3