[Git][debian-gis-team/python-geopandas][master] Don't set environment variables in dh_auto_test override.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sun Jul 16 13:39:06 BST 2023



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


Commits:
7c90cb2d by Bas Couwenberg at 2023-07-16T14:30:16+02:00
Don't set environment variables in dh_auto_test override.

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -2,6 +2,7 @@ python-geopandas (0.13.2-2) UNRELEASED; urgency=medium
 
   * Team upload.
   * Bump debhelper compat to 13.
+  * Don't set environment variables in dh_auto_test override.
 
  -- Bas Couwenberg <sebastic at debian.org>  Tue, 13 Jun 2023 10:10:05 +0200
 


=====================================
debian/rules
=====================================
@@ -3,6 +3,9 @@
 DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
 export PYBUILD_NAME=geopandas
+export PYBUILD_BEFORE_TEST=cp -v debian/nybb_*.zip examples/ && cp -rv examples/ {build_dir} && mkdir -p {build_dir}/tests/ && cp -rv geopandas/tests/data/ {build_dir}/tests/
+export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/examples/ {build_dir}/tests/data/ && rm -f examples/nybb_*.zip
+export PYBUILD_TEST_ARGS=-v --ignore=geopandas/tests/test_geocode.py --ignore=geopandas/tests/test_plotting.py --ignore=geopandas/tests/test_overlay.py
 
 %:
 	dh  $@ --with python3,numpy3 --buildsystem pybuild
@@ -12,15 +15,8 @@ override_dh_clean:
 	rm -f geopandas/version.py
 
 override_dh_auto_test:
-	cp -v debian/nybb_*.zip examples/
-
-	PYBUILD_BEFORE_TEST="cp -rv examples/ {build_dir} && mkdir -p {build_dir}/tests/ && cp -rv geopandas/tests/data/ {build_dir}/tests/" \
-	PYBUILD_AFTER_TEST="rm -rfv {build_dir}/examples/ {build_dir}/tests/data/" \
-	PYBUILD_TEST_ARGS="-v --ignore=geopandas/tests/test_geocode.py --ignore=geopandas/tests/test_plotting.py --ignore=geopandas/tests/test_overlay.py" \
 	dh_auto_test || echo "Ignoring test failures"
 
-	rm -f examples/nybb_*.zip
-
 override_dh_auto_install:
 	dh_auto_install
 	# Remove README with privacy-breach issues



View it on GitLab: https://salsa.debian.org/debian-gis-team/python-geopandas/-/commit/7c90cb2d6366f457aca5381d0bfbebc64e51c7a6

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-geopandas/-/commit/7c90cb2d6366f457aca5381d0bfbebc64e51c7a6
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/20230716/fe8473cc/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list