[Python-modules-commits] [python-pkginfo] 11/12: Remove tests from binary packages

Jan Dittberner jandd at moszumanska.debian.org
Wed Dec 30 18:16:12 UTC 2015


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

jandd pushed a commit to branch master
in repository python-pkginfo.

commit 2051e405826392cdee048cf36b793c63f517324e
Author: Jan Dittberner <jandd at debian.org>
Date:   Wed Dec 30 18:48:14 2015 +0100

    Remove tests from binary packages
---
 debian/changelog | 3 ++-
 debian/rules     | 5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ca323be..59a09d9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,7 +12,8 @@ python-pkginfo (1.2.1-1) UNRELEASED; urgency=medium
   * Bump Standards-Version to 3.9.6 (No changes)
   * remove unneeded override_dh_auto_clean
   * Use dh_auto_test
-  * Disable tests not working in Debian build
+  * Disable those tests not working in Debian build via patches
+  * Removed tests from binary packages
 
  -- Jan Dittberner <jandd at debian.org>  Wed, 30 Dec 2015 16:42:42 +0100
 
diff --git a/debian/rules b/debian/rules
index 49d381b..7b4a911 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,8 @@
 #!/usr/bin/make -f
 export PYBUILD_NAME=pkginfo
 # Let's ship pkginfo executable only in the python3 version of the package
-export PYBUILD_AFTER_INSTALL_python2=rm -f {destdir}/usr/bin/pkginfo && find {destdir} -type d -empty -delete
+export PYBUILD_AFTER_INSTALL_python2=rm -f {destdir}/usr/bin/pkginfo && find {destdir} -type d -empty -delete && rm -rf '{destdir}/{install_dir}/pkginfo/tests'
+export PYBUILD_AFTER_INSTALL_python3=rm -rf '{destdir}/{install_dir}/pkginfo/tests'
 
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
@@ -13,6 +14,6 @@ override_dh_auto_build:
 override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 	set -e -x; \
-	cd pkginfo/tests/sneaky ; python setup.py egg_info ; cd ../../..
+	cd $(CURDIR)/pkginfo/tests/sneaky ; python setup.py egg_info ; cd ../../..
 	dh_auto_test
 endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pkginfo.git



More information about the Python-modules-commits mailing list