tags 588332 + patch thanks Patch attached. Added a dep for the test suite, and invoked the tests in the rules file.
Thanks, Paul
Index: debian/control =================================================================== --- debian/control (revision 8210) +++ debian/control (working copy) @@ -3,9 +3,9 @@ Priority: optional Maintainer: Qijiang Fan <fqj1...@gmail.com> Uploaders: Python Applications Packaging Team <python-apps-t...@lists.alioth.debian.org> -Build-Depends: debhelper (>= 7.0.8), python (>= 2.6.6-3~) +Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~), python-dulwich Standards-Version: 3.9.2 -X-Python-Version: >= 2.5 +X-Python-Version: >= 2.6 Homepage: http://hg-git.github.com/ Vcs-Svn: svn://svn.debian.org/python-apps/packages/hg-git/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/hg-git/trunk/ Index: debian/copyright =================================================================== --- debian/copyright (revision 8210) +++ debian/copyright (working copy) @@ -1,4 +1,4 @@ -Format: http://dep.debian.net/deps/dep5 +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: hg-git Upstream-Contact: Scott Chacon <scha...@gmail.com> Source: http://hg-git.github.com/ Index: debian/rules =================================================================== --- debian/rules (revision 8210) +++ debian/rules (working copy) @@ -1,30 +1,22 @@ #!/usr/bin/make -f +PACKAGE_NAME=hg-git MODULE_DIR = usr/lib/$(shell pyversions -d)/site-packages/hgext/git/ -build build-arch build-indep: +%: + dh $@ --with python2 -clean: - dh clean +override_dh_auto_clean: + dh_auto_clean find $(CURDIR) -type f -name '*\.py[co]' -delete -install: build - dh install --until dh_prep - dh_installdirs $(MODULE_DIR) - cp -r hggit/*.py debian/mercurial-git/$(MODULE_DIR)/ - dh install --after dh_install --with python2 +override_dh_auto_install: + mkdir -p debian/$(PACKAGE_NAME)/$(MODULE_DIR)/ + cp -vr hggit/*.py debian/$(PACKAGE_NAME)/$(MODULE_DIR)/ -# Build architecture-independent files here. -binary-indep: install - dh binary-indep - -binary-arch: - -binary: binary-indep binary-arch - -patch unpatch: - dh_quilt_$(@) - -.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install patch unpatch - -# vim:ts=4 sw=4 noet +override_dh_auto_test: +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + set -e; cd tests; for x in $(shell pyversions -r); do \ + $$x run-tests.py --with-hg=`which hg`; \ + done +endif