[Python-modules-commits] [python-sabyenc] 08/11: Rules, Control: run tests at build time, build-dep on pytohn-pytest
JCF Ploemen
jcfp-guest at moszumanska.debian.org
Tue Oct 10 14:35:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
jcfp-guest pushed a commit to branch master
in repository python-sabyenc.
commit 3ffb6e0a793929a14a95de89fcc57d41de4a5499
Author: JCF Ploemen (jcfp) <linux at jcf.pm>
Date: Tue Oct 10 15:57:04 2017 +0200
Rules, Control: run tests at build time, build-dep on pytohn-pytest
---
debian/changelog | 2 ++
debian/control | 1 +
debian/rules | 5 ++++-
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 8f38207..79cf328 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ python-sabyenc (3.3.1-1) UNRELEASED; urgency=medium
* Examples: install examples/try_out_sabyenc.py.
* Docs: install doc/yenc-draft.1.3.txt.
* Clean: add all of sabyenc.egg-info/*.
+ * Rules: add support for running tests at build time.
+ * Control: add build-dep on python-pytest.
-- JCF Ploemen (jcfp) <linux at jcf.pm> Tue, 10 Oct 2017 13:46:15 +0000
diff --git a/debian/control b/debian/control
index e0bd6b9..635d8a4 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,7 @@ Build-Depends:
debhelper (>= 10),
dh-python,
python-all-dev,
+ python-pytest,
python-setuptools
Standards-Version: 4.1.0.0
X-Python-Version: >= 2.7
diff --git a/debian/rules b/debian/rules
index 4addaf3..b7e644f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,5 +5,8 @@
# enable all hardening except pie (ftbfs)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
+# avoid loading yenc data files as tests
+export PYBUILD_TEST_ARGS+=--ignore=tests/yencfiles/
+
%:
- dh $@ --with python2
+ dh $@ --with python2 --buildsystem=pybuild
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-sabyenc.git
More information about the Python-modules-commits
mailing list