[med-svn] [Git][med-team/umap-learn][master] Base autopkgtest on upstream examples

Andreas Tille (@tille) gitlab at salsa.debian.org
Fri Feb 10 08:38:23 GMT 2023



Andreas Tille pushed to branch master at Debian Med / umap-learn


Commits:
191f255e by Andreas Tille at 2023-02-10T09:38:07+01:00
Base autopkgtest on upstream examples

- - - - -


5 changed files:

- debian/changelog
- debian/control
- debian/examples
- debian/rules
- debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -10,6 +10,8 @@ umap-learn (0.5.3+dfsg-1) UNRELEASED; urgency=medium
   * Build-Depends: python3-tqdm, python3-pynndescent
   * Apply upstream patches to work with latest version of scikit-learn
     Closes: #1030907
+  * Depends: python3-pandas
+  * Base autopkgtest on upstream examples
 
  -- Andreas Tille <tille at debian.org>  Thu, 09 Feb 2023 08:57:34 +0100
 


=====================================
debian/control
=====================================
@@ -28,7 +28,8 @@ Depends: ${python3:Depends},
          python3-numpy,
          python3-scipy,
          python3-sklearn,
-         python3-numba
+         python3-numba,
+         python3-pandas
 Description: Uniform Manifold Approximation and Projection
  Uniform Manifold Approximation and Projection (UMAP) is a dimension
  reduction technique that can be used for visualisation similarly to t-


=====================================
debian/examples
=====================================
@@ -1 +1,2 @@
-debian/Example/*
+# debian/Example/*
+examples/*


=====================================
debian/rules
=====================================
@@ -15,3 +15,7 @@ override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	dh_auto_test -- --system=custom --test-args="PYTHONPATH={build_dir} {interpreter} -m pytest"
 endif
+
+override_dh_installexamples:
+	dh_installexamples
+	for exa in `grep -l '/usr/bin/env python' debian/*/usr/share/doc/*/examples/*.py`; do sed -i 's#/usr/bin/env python#/usr/bin/python3#' $${exa} ; done


=====================================
debian/tests/run-unit-test
=====================================
@@ -13,5 +13,8 @@ cp /usr/share/doc/${pkg}/examples/* -a "${AUTOPKGTEST_TMP}"
 cd "${AUTOPKGTEST_TMP}"
 gunzip -r *
 
-python3 umap_example.py
-
+# python3 umap_example.py
+set -x
+python3 inverse_transform_example.py
+python3 mnist_torus_sphere_example.py
+python3 mnist_transform_new_data.py



View it on GitLab: https://salsa.debian.org/med-team/umap-learn/-/commit/191f255e7a1aed7d676758381c1f158f36674fa6

-- 
View it on GitLab: https://salsa.debian.org/med-team/umap-learn/-/commit/191f255e7a1aed7d676758381c1f158f36674fa6
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/20230210/21ae19bf/attachment-0001.htm>


More information about the debian-med-commit mailing list