[Git][debian-gis-team/netcdf4-python][master] Use pytest in dh_auto_test instead of custom command.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Mon Dec 15 19:54:48 GMT 2025



Bas Couwenberg pushed to branch master at Debian GIS Project / netcdf4-python


Commits:
fedbaef4 by Bas Couwenberg at 2025-12-15T20:42:47+01:00
Use pytest in dh_auto_test instead of custom command.

- - - - -


3 changed files:

- debian/changelog
- debian/control
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,6 +1,7 @@
 netcdf4-python (1.7.3-2) UNRELEASED; urgency=medium
 
   * Use test-build-validate-cleanup instead of test-build-twice.
+  * Use pytest in dh_auto_test instead of custom command.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sat, 25 Oct 2025 13:00:45 +0200
 


=====================================
debian/control
=====================================
@@ -11,7 +11,8 @@ Build-Depends: debhelper-compat (= 13),
                python3-all-dev,
                python3-certifi,
                python3-cftime,
-               python3-packaging,
+               python3-packaging <!nocheck>,
+               python3-pytest <!nocheck>,
                python3-setuptools,
                python3-numpy,
                cython3,


=====================================
debian/rules
=====================================
@@ -12,8 +12,11 @@ export HDF5_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
 
 export USE_NCCONFIG=1
 
-export PYBUILD_TEST_CUSTOM=1
-export PYBUILD_TEST_ARGS=cd test && NO_NET=1 NO_PLUGINS=1 {interpreter} run_all.py
+export PYBUILD_TEST_PYTEST=1
+export PYBUILD_TEST_ARGS=-vv
+
+export NO_NET=1
+export NO_PLUGINS=1
 
 %:
 	dh $@ --buildsystem=pybuild



View it on GitLab: https://salsa.debian.org/debian-gis-team/netcdf4-python/-/commit/fedbaef41211c9be8400806994c8913a64e0012f

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/netcdf4-python/-/commit/fedbaef41211c9be8400806994c8913a64e0012f
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/pkg-grass-devel/attachments/20251215/67b314ea/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list