[med-svn] [Git][python-team/packages/python-pynndescent][master] 2 commits: Add upstream patches to fix FTBFS

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Sat Feb 11 18:26:08 GMT 2023



Nilesh Patra pushed to branch master at Debian Python Team / packages / python-pynndescent


Commits:
a84e0c55 by Nilesh Patra at 2023-02-11T23:40:23+05:30
Add upstream patches to fix FTBFS

- - - - -
7d534baf by Nilesh Patra at 2023-02-11T23:40:23+05:30
Upload to unstable

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/scipy.patch
- + debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,9 +1,15 @@
-python-pynndescent (0.5.8-1) UNRELEASED; urgency=medium
+python-pynndescent (0.5.8-1) unstable; urgency=medium
 
+  [ Andreas Tille ]
+  * Team Upload.
   * New upstream version
   * Standards-Version: 4.6.2 (routine-update)
+  * Simplify salsa-ci.yml
+
+  [ Nilesh Patra ]
+  * Add upstream patches to fix FTBFS
 
- -- Andreas Tille <tille at debian.org>  Wed, 11 Jan 2023 07:34:24 +0100
+ -- Nilesh Patra <nilesh at debian.org>  Sat, 11 Feb 2023 23:29:37 +0530
 
 python-pynndescent (0.5.7-1) unstable; urgency=medium
 


=====================================
debian/patches/scipy.patch
=====================================
@@ -0,0 +1,29 @@
+From 00444be2107b71169b853847e7b334623c58a4e3 Mon Sep 17 00:00:00 2001
+From: Leland McInnes <leland.mcinnes at gmail.com>
+Date: Tue, 3 Jan 2023 10:53:15 -0500
+Subject: [PATCH] Update tests to fix #207
+
+---
+ pynndescent/tests/test_distances.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/pynndescent/tests/test_distances.py
++++ b/pynndescent/tests/test_distances.py
+@@ -109,7 +109,7 @@
+ def test_sparse_spatial_check(sparse_spatial_data, metric, decimal=6):
+     if metric in spdist.sparse_named_distances:
+         dist_matrix = pairwise_distances(
+-            sparse_spatial_data.todense().astype(np.float32), metric=metric
++            np.asarray(sparse_spatial_data.todense()).astype(np.float32), metric=metric
+         )
+     if metric in ("braycurtis", "dice", "sokalsneath", "yule"):
+         dist_matrix[np.where(~np.isfinite(dist_matrix))] = 0.0
+@@ -174,7 +174,7 @@
+ )
+ def test_sparse_binary_check(sparse_binary_data, metric):
+     if metric in spdist.sparse_named_distances:
+-        dist_matrix = pairwise_distances(sparse_binary_data.todense(), metric=metric)
++        dist_matrix = pairwise_distances(np.asarray(sparse_binary_data.todense()), metric=metric)
+     if metric in ("jaccard", "dice", "sokalsneath"):
+         dist_matrix[np.where(~np.isfinite(dist_matrix))] = 0.0
+     if metric in ("kulsinski", "russellrao"):


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+scipy.patch



View it on GitLab: https://salsa.debian.org/python-team/packages/python-pynndescent/-/compare/ae27b3ed63321c0569973fabd14257421b25cef8...7d534baf2699089ebf3b1117b3f21dda850b2315

-- 
View it on GitLab: https://salsa.debian.org/python-team/packages/python-pynndescent/-/compare/ae27b3ed63321c0569973fabd14257421b25cef8...7d534baf2699089ebf3b1117b3f21dda850b2315
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20230211/f9e97cb3/attachment-0001.htm>


More information about the debian-med-commit mailing list