[med-svn] [Git][python-team/packages/python-pynndescent][master] 5 commits: Skip some tests on arm, which seems to be rather due to issues with other packages
Nilesh Patra (@nilesh)
gitlab at salsa.debian.org
Sat Feb 11 20:18:23 GMT 2023
Nilesh Patra pushed to branch master at Debian Python Team / packages / python-pynndescent
Commits:
e2ab84ac by Nilesh Patra at 2023-02-12T01:31:01+05:30
Skip some tests on arm, which seems to be rather due to issues with other packages
- - - - -
f633c1d4 by Nilesh Patra at 2023-02-12T01:40:35+05:30
d/t/run-unit-test: test supported pyvers instead of release (-r)
- - - - -
88a2ab0f by Nilesh Patra at 2023-02-12T01:40:35+05:30
Test dep on python3-all
- - - - -
448cf915 by Nilesh Patra at 2023-02-12T01:40:35+05:30
Disable i386 in salsa-ci.yml
- - - - -
d6ce6292 by Nilesh Patra at 2023-02-12T01:40:35+05:30
Upload to unstable
- - - - -
6 changed files:
- debian/changelog
- + debian/patches/arm.patch
- debian/patches/series
- debian/salsa-ci.yml
- debian/tests/control
- debian/tests/run-unit-test
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,14 @@
+python-pynndescent (0.5.8-2) unstable; urgency=medium
+
+ * Team Upload.
+ * Skip some tests on arm, which seems to be rather due
+ to issues with other packages
+ * d/t/run-unit-test: test supported pyvers instead of release (-r)
+ * Disable i386 in salsa-ci.yml
+ * Test dep on python3-all
+
+ -- Nilesh Patra <nilesh at debian.org> Sun, 12 Feb 2023 01:31:13 +0530
+
python-pynndescent (0.5.8-1) unstable; urgency=medium
[ Andreas Tille ]
=====================================
debian/patches/arm.patch
=====================================
@@ -0,0 +1,75 @@
+Description: Some tests fail on arm, skip.
+Author: Nilesh Patra <nilesh at debian.org>
+Last-Update: 2023-02-12
+--- a/pynndescent/tests/test_distances.py
++++ b/pynndescent/tests/test_distances.py
+@@ -9,6 +9,7 @@
+ from sklearn.metrics import pairwise_distances
+ from sklearn.neighbors import BallTree
+ from sklearn.preprocessing import normalize
++import platform
+
+
+ @pytest.mark.parametrize(
+@@ -107,6 +108,9 @@
+ ],
+ )
+ def test_sparse_spatial_check(sparse_spatial_data, metric, decimal=6):
++ machine = platform.machine()
++ if (machine.startswith('arm') or machine.startswith('aarch')):
++ pytest.skip("Skip on arm")
+ if metric in spdist.sparse_named_distances:
+ dist_matrix = pairwise_distances(
+ np.asarray(sparse_spatial_data.todense()).astype(np.float32), metric=metric
+@@ -333,6 +337,9 @@
+
+
+ def test_jensen_shannon():
++ machine = platform.machine()
++ if (machine.startswith('arm') or machine.startswith('aarch')):
++ pytest.skip()
+ test_data = np.random.random(size=(10, 50))
+ test_data = normalize(test_data, norm="l1")
+ for i in range(test_data.shape[0]):
+@@ -349,6 +356,9 @@
+
+
+ def test_sparse_jensen_shannon():
++ machine = platform.machine()
++ if (machine.startswith('arm') or machine.startswith('aarch')):
++ pytest.skip()
+ test_data = np.random.random(size=(10, 100))
+ # sparsify
+ test_data[test_data <= 0.5] = 0.0
+--- a/pynndescent/tests/test_pynndescent_.py
++++ b/pynndescent/tests/test_pynndescent_.py
+@@ -11,9 +11,13 @@
+ import pickle
+ import joblib
+ import scipy
++import platform
+
+ from pynndescent import NNDescent, PyNNDescentTransformer
+
++machine = platform.machine()
++if (machine.startswith('arm') or machine.startswith('aarch')):
++ pytest.skip("Skip on arm", allow_module_level=True)
+
+ def test_nn_descent_neighbor_accuracy(nn_data, seed):
+ knn_indices, _ = NNDescent(
+--- a/pynndescent/tests/test_rank.py
++++ b/pynndescent/tests/test_rank.py
+@@ -1,9 +1,13 @@
+ import pytest
+ import numpy as np
++import platform
+ from numpy.testing import assert_array_equal
+
+ from pynndescent.distances import rankdata
+
++machine = platform.machine()
++if (machine.startswith('arm') or machine.startswith('aarch')):
++ pytest.skip("Skip on arm", allow_module_level=True)
+
+ def test_empty():
+ """rankdata([]) should return an empty array."""
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
scipy.patch
+arm.patch
=====================================
debian/salsa-ci.yml
=====================================
@@ -3,15 +3,5 @@ include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
-# To exclude single tests you can use
-#variables:
-# SALSA_CI_DISABLE_APTLY: 1
-# SALSA_CI_DISABLE_AUTOPKGTEST: 1
-# SALSA_CI_DISABLE_BLHC: 1
-# SALSA_CI_DISABLE_LINTIAN: 1
-# SALSA_CI_DISABLE_PIUPARTS: 1
-# SALSA_CI_DISABLE_REPROTEST: 1
-# SALSA_CI_DISABLE_BUILD_PACKAGE_ALL: 1
-# SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: 1
-# In case for instance i386 is explicitly excluded by Build-Depends
-# SALSA_CI_DISABLE_BUILD_PACKAGE_I386: 1
+variables:
+ SALSA_CI_DISABLE_BUILD_PACKAGE_I386: 1
=====================================
debian/tests/control
=====================================
@@ -1,4 +1,4 @@
Tests: run-unit-test
-Depends: @, python3-pytest
+Depends: @, python3-pytest, python3-all
Restrictions: allow-stderr
Architecture: amd64 arm64 mips64el ppc64el s390x ia64 ppc64 riscv64 sparc64 alpha
=====================================
debian/tests/run-unit-test
=====================================
@@ -2,7 +2,7 @@
set -e
SOURCE=$(pwd)
-for py in $(py3versions -r 2>/dev/null)
+for py in $(py3versions -s 2>/dev/null)
do
cd "$AUTOPKGTEST_TMP"
echo "Testing with $py:"
View it on GitLab: https://salsa.debian.org/python-team/packages/python-pynndescent/-/compare/7d534baf2699089ebf3b1117b3f21dda850b2315...d6ce6292c883607cd6aebe8537436f5708106c48
--
View it on GitLab: https://salsa.debian.org/python-team/packages/python-pynndescent/-/compare/7d534baf2699089ebf3b1117b3f21dda850b2315...d6ce6292c883607cd6aebe8537436f5708106c48
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/6709badb/attachment-0001.htm>
More information about the debian-med-commit
mailing list