diff options
author | Gard Spreemann <gspr@nonempty.org> | 2022-04-06 11:44:55 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2022-04-06 11:44:55 +0200 |
commit | 1c6d4a286bbbc1e6b47a11c6e3e9139ec3152e09 (patch) | |
tree | c57beda8e086a5f6a9a77df475b530c83058a477 | |
parent | 232f4381f3a6afe75a7c19f7780a46dea52f78be (diff) |
Add patch for SciPy 1.8 compatibility
Stops testing weighted Minkowski metric, as that has been removed from
SciPy 1.8.
-rw-r--r-- | debian/patches/0001-Stop-testing-wminkowski-metric-removed-in-SciPy-1.8.patch | 21 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 22 insertions, 0 deletions
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 <gspr@nonempty.org> +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 |