[Python-modules-commits] r33444 - in packages/python-mock/trunk/debian (rules)

fladi at users.alioth.debian.org fladi at users.alioth.debian.org
Wed Jul 22 19:32:29 UTC 2015


    Date: Wednesday, July 22, 2015 @ 19:32:28
  Author: fladi
Revision: 33444

Switch to pybuild. Remove PHONY target declarations.

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

Modified: packages/python-mock/trunk/debian/rules
===================================================================
--- packages/python-mock/trunk/debian/rules	2015-07-22 19:31:18 UTC (rev 33443)
+++ packages/python-mock/trunk/debian/rules	2015-07-22 19:32:28 UTC (rev 33444)
@@ -3,61 +3,21 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-PYVERS :=  $(shell pyversions -r)
-PY3VERS := $(shell py3versions -r)
+export PYBUILD_NAME=mock
 
 %:
-	dh $@ --with python2,python3,sphinxdoc
-	
-.PHONY: override_dh_auto_build
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
 override_dh_auto_build:
-	set -e; \
-	for py in $(PYVERS) $(PY3VERS); do \
-		$$py -B setup.py build; \
-	done
+	dh_auto_build
 	PYTHONPATH=. sphinx-build -b html -N docs/ docs/.build/html
 
-.PHONY: override_dh_auto_clean
-override_dh_auto_clean:
-	set -e; \
-	for py in $(PYVERS) $(PY3VERS); do \
-		$$py -B setup.py clean; \
-		rm -rf build; \
-	done
-
-.PHONY: override_dh_auto_install
-override_dh_auto_install:
-	set -e; \
-	for py in $(PYVERS); do \
-		$$py -B setup.py install --skip-build --root debian/python-mock \
-		                      --install-layout deb; \
-	done
-	set -e; \
-	for py in $(PY3VERS); do \
-		$$py -B setup.py install --skip-build --root debian/python3-mock \
-		                      --install-layout deb; \
-	done
-	rm debian/python*-mock/usr/lib/python*/*-packages/mock*.egg-info/SOURCES.txt
-
-.PHONY: override_dh_installchangelogs
 override_dh_installchangelogs:
-	dh_installchangelogs docs/changelog.txt
+	dh_installchangelogs -- docs/changelog.txt
 
-.PHONY: override_dh_compress
 override_dh_compress:
 	dh_compress -X.js -X.html -X.txt
 
-.PHONY: override_dh_clean
 override_dh_clean:
-	rm -rf docs/.build tests/__pycache__ __pycache__
+	rm -rf docs/.build
 	dh_clean
-
-.PHONY: override_dh_auto_test
-override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-	set -e; \
-	for py in $(PYVERS) $(PY3VERS); do \
-		$$py setup.py test ; \
-	done
-endif
-




More information about the Python-modules-commits mailing list