[Python-modules-commits] [ldif3] 04/09: Copy tests.py to builddir so nosetests picks them up during build.

Michael Fladischer fladi at moszumanska.debian.org
Fri Mar 17 08:26:19 UTC 2017


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

fladi pushed a commit to branch master
in repository ldif3.

commit d986c25408b014982bad3a322dc955a3fe541613
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Fri Mar 17 09:05:35 2017 +0100

    Copy tests.py to builddir so nosetests picks them up during build.
---
 debian/changelog | 1 +
 debian/rules     | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 16b1d63..7e0f994 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 ldif3 (3.2.2-1) UNRELEASED; urgency=low
 
   * New upstream release.
+  * Copy tests.py to builddir so nosetests picks them up during build.
 
  -- Michael Fladischer <fladi at debian.org>  Fri, 17 Mar 2017 08:35:02 +0100
 
diff --git a/debian/rules b/debian/rules
index e420019..308cdcd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,8 @@
 #export DH_VERBOSE=1
 
 export PYBUILD_NAME=ldif3
+export PYBUILD_BEFORE_TEST=cp {dir}/tests.py {build_dir}
+export PYBUILD_AFTER_TEST=rm -f {build_dir}/tests.py
 
 %:
 	dh $@ --with=python2,python3 --buildsystem=pybuild

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



More information about the Python-modules-commits mailing list