[Python-modules-commits] [python-latexcodec] 14/20: Add support for the nocheck build profile

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 13 15:34:48 UTC 2017


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

ghisvail-guest pushed a commit to branch master
in repository python-latexcodec.

commit 8dfa66ee6866d06ace72fa4730f9e3461a6170e4
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Jul 12 09:42:07 2017 +0100

    Add support for the nocheck build profile
---
 debian/control | 8 ++++----
 debian/rules   | 7 ++++---
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/debian/control b/debian/control
index ce0e93f..be1a164 100644
--- a/debian/control
+++ b/debian/control
@@ -8,12 +8,12 @@ Build-Depends: debhelper (>= 9.20141010~),
                dpkg-dev (>= 1.17.14),
                python-all,
                python3-all,
-               python-six,
-               python3-six,
+               python-six <!nocheck>,
+               python3-six <!nocheck>,
                python-setuptools,
                python3-setuptools,
-               python-nose,
-               python3-nose,
+               python-nose <!nocheck>,
+               python3-nose <!nocheck>,
                python3-sphinx <!nodoc>
 Standards-Version: 3.9.8
 Homepage: https://github.com/mcmtroffaes/latexcodec
diff --git a/debian/rules b/debian/rules
index f8b13c2..f00860c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,10 @@
 #export DEB_BUILD_OPTIONS=nocheck
 export PYBUILD_NAME=latexcodec
 
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+export PYBUILD_DISABLE = test
+endif
+
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
@@ -20,8 +24,5 @@ ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
 	PYTHONPATH=$(CURDIR) $(MAKE) -C doc html
 endif
 
-override_dh_auto_test:
-	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m nose -v" dh_auto_test
-
 override_dh_installchangelogs:
 	dh_installchangelogs -A CHANGELOG.rst

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



More information about the Python-modules-commits mailing list