[Python-modules-commits] [m2crypto] 10/20: deb/rules: use PYBUILD_BEFORE/AFTER_TEST, run tests from $(CURDIR)
Daniel Stender
stender at moszumanska.debian.org
Mon Nov 6 20:06:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
stender pushed a commit to branch debian/master
in repository m2crypto.
commit 71a7129422e697baf7be6cd5b8c7744d20bf1244
Author: Daniel Stender <stender at debian.org>
Date: Mon Nov 6 00:08:31 2017 +0100
deb/rules: use PYBUILD_BEFORE/AFTER_TEST, run tests from $(CURDIR)
---
debian/changelog | 5 ++++-
debian/rules | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b2a79b5..faade6d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,8 +14,11 @@ m2crypto (0.27.0-1) UNRELEASED; urgency=medium
+ add .cache/.
* deb/control:
+ add python-typing to build-deps.
+ * deb/rules:
+ + use PYBUILD_BEFORE/AFTER_TEST to cp binding inplace for tests.
+ + shorten override for dh_auto_test, run tests from $(CURDIR).
- -- Daniel Stender <stender at debian.org> Mon, 06 Nov 2017 00:02:29 +0100
+ -- Daniel Stender <stender at debian.org> Mon, 06 Nov 2017 00:04:39 +0100
m2crypto (0.24.0-2) unstable; urgency=medium
diff --git a/debian/rules b/debian/rules
index d5b678c..386eb50 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,12 +3,14 @@
#export DEB_BUILD_OPTIONS=nocheck
export PYBUILD_NAME=m2crypto
export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow
+export PYBUILD_BEFORE_TEST=cp {build_dir}/M2Crypto/_m2crypto.so M2Crypto/
+export PYBUILD_AFTER_TEST=rm M2Crypto/_m2crypto.so
%:
dh $@ --with python2 --buildsystem=pybuild
override_dh_auto_test:
- PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="cp -a tests {build_dir}/M2Crypto/; {interpreter} -Wd -m pytest {build_dir}/M2Crypto/tests -v -rs; rm -rf {build_dir}/M2Crypto/tests" dh_auto_test || true
+ PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -Wd -m pytest -v -rs" dh_auto_test || true
# temporarily failsafed, some open issues
override_dh_installdocs:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/m2crypto.git
More information about the Python-modules-commits
mailing list