[Python-modules-commits] [pytest] 01/01: Not that it helps, but make the rule match what I posted to the mailing list.
Barry Warsaw
barry at moszumanska.debian.org
Thu Dec 17 15:05:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
barry pushed a commit to branch master
in repository pytest.
commit 419c071d3cc510e0913b453c0bbe1dcfee6981f2
Author: Barry Warsaw <barry at python.org>
Date: Thu Dec 17 10:04:53 2015 -0500
Not that it helps, but make the rule match what I posted to the mailing list.
---
debian/rules | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/debian/rules b/debian/rules
index d2ad453..b8f860d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,14 +9,14 @@ export PYBUILD_VERBOSE=1
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
-# 2015-12-16 barry at debian.org: Run the test suite from the source directory,
-# not the .pybuild directory. Also, because pytest does not clean up after
-# itself, use a custom temporary directory (which is easier to clean up
-# manually, e.g. in an sbuild).
+# 2015-12-16 barry at debian.org: Because pytest does not clean up after itself,
+# use a custom temporary directory (which is easier to clean up manually,
+# e.g. in an sbuild).
override_dh_auto_test:
TMPDIR=`mktemp -t -d pytest.XXXXXXXXXX` \
PYBUILD_SYSTEM=custom \
- PYBUILD_TEST_ARGS="cd {dir}; {interpreter} -m pytest --lsof -rfsxX testing" dh_auto_test
+ PYTHONPATH=$$(CURDIR) \
+ PYBUILD_TEST_ARGS="{interpreter} -m pytest --lsof -rfsxX {dir}/testing" dh_auto_test
override_dh_installdocs:
PYTHONPATH=`pwd` make -C doc/en man
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pytest.git
More information about the Python-modules-commits
mailing list