[Python-modules-commits] r30093 - in packages/python-keyczar/trunk/debian (rules)

chrisk-guest at users.alioth.debian.org chrisk-guest at users.alioth.debian.org
Sat Aug 9 19:14:47 UTC 2014


    Date: Saturday, August 9, 2014 @ 19:14:46
  Author: chrisk-guest
Revision: 30093

rules: Convert to pybuild

Modified:
  packages/python-keyczar/trunk/debian/rules

Modified: packages/python-keyczar/trunk/debian/rules
===================================================================
--- packages/python-keyczar/trunk/debian/rules	2014-08-09 15:29:33 UTC (rev 30092)
+++ packages/python-keyczar/trunk/debian/rules	2014-08-09 19:14:46 UTC (rev 30093)
@@ -4,21 +4,17 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-PYVERS = $(shell pyversions -r -v)
-PYPLATFORM = $(shell python -c 'import distutils.util as d; print d.get_platform()')
 
-
 %:
-	dh $@ --with python2
+	dh $@ --with python2 --buildsystem=pybuild
 
+
 override_dh_auto_test:
-ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-	set -e ; \
-	cd tests/keyczar_tests/; \
-	for py in $(PYVERS); do  \
-		PYTHONPATH=$(CURDIR)/build/lib.$(PYPLATFORM)-$$py python$$py alltests.py; \
-	done
-endif
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_TEST_ARGS="cd $(CURDIR)/tests/keyczar_tests && {interpreter} alltests.py" \
+	dh_auto_test ;\
+	res=$$? ;\
+	[ $$res -eq 0 ] || exit $$res
 
 
 override_dh_auto_clean:




More information about the Python-modules-commits mailing list