[python-geopandas] 10/12: Use nosetests instead of pytest.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Fri Jun 10 22:54:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository python-geopandas.

commit ef1843c54ca46ae77c8ec8a51f0be803c3f22992
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Jun 10 23:00:41 2016 +0200

    Use nosetests instead of pytest.
---
 debian/changelog |  1 +
 debian/rules     | 12 +++++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 55c3f74..b9ed37f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,7 @@ python-geopandas (0.2-1) UNRELEASED; urgency=medium
     - Add license & copyright for versioneer.py & nybb_16a.zip
   * Bump Standards-Version to 3.9.8, no changes.
   * Drop patches, applied upstream.
+  * Use nosetests instead of pytest.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 10 Jun 2016 22:23:19 +0200
 
diff --git a/debian/rules b/debian/rules
index 9ade23b..b50d0b7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,6 @@
 #!/usr/bin/make -f
 
 export PYBUILD_NAME=geopandas
-export PYBUILD_TEST_PYTEST=1
-export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir} ;cp -r {dir}/examples {build_dir};cp -r {dir}/debian/*.zip {build_dir}/examples/
-export PYBUILD_AFTER_TEST=rm -rf {build_dir}/examples {build_dir}/tests
-#disable geopy test as these require online access
-export PYBUILD_TEST_ARGS=tests -k "not test_geocode"
 
 %:
 	dh  $@ --with python2,python3,sphinxdoc --buildsystem pybuild --parallel
@@ -14,6 +9,13 @@ override_dh_auto_build:
 	dh_auto_build
 	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml doc/source build/html # HTML generator
 
+override_dh_auto_test:
+	# Disable geocode tests as these require online access
+	cp -v debian/nybb_*.zip examples/
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_TEST_ARGS="nosetests -v -e test_geocode.py" dh_auto_test
+	rm -f examples/nybb_*.zip
+
 override_dh_clean:
 	dh_clean
 	rm -f geopandas/version.py

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-geopandas.git



More information about the Pkg-grass-devel mailing list