[Python-modules-commits] [parsedatetime] 05/11: Add support for the nocheck build profile

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jul 12 10:59:24 UTC 2017


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

ghisvail-guest pushed a commit to branch debian/experimental
in repository parsedatetime.

commit 09bfb6dd96c19de9402dda0588a6dc2f7742c6f1
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Jul 12 11:18:35 2017 +0100

    Add support for the nocheck build profile
---
 debian/control | 11 ++++++-----
 debian/rules   |  9 ++++++++-
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control
index c403865..8bdf0bd 100644
--- a/debian/control
+++ b/debian/control
@@ -3,15 +3,16 @@ Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.
 Uploaders: Bernd Zeimetz <bzed at debian.org>
 Section: python
 Priority: optional
-Build-Depends: debhelper (>= 9),
+Build-Depends: debhelper (>= 9.20141010~),
                dh-python,
+               dpkg-dev (>= 1.17.14),
                python-all,
-               python-pytest,
-               python-pytest-runner,
+               python-pytest <!nocheck>,
+               python-pytest-runner <!nocheck>,
                python-setuptools,
                python3-all,
-               python3-pytest,
-               python3-pytest-runner,
+               python3-pytest <!nocheck>,
+               python3-pytest-runner <!nocheck>,
                python3-setuptools
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/parsedatetime.git
diff --git a/debian/rules b/debian/rules
index f138e19..73c2487 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,14 @@
 #!/usr/bin/make -f
 
 export PYBUILD_NAME = parsedatetime
-export PYBUILD_TEST_ARGS = {dir}
+
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+export PYBUILD_DISABLE = test
+else
+export PYBUILD_BEFORE_TEST = cp -r {dir}/tests {build_dir}
+export PYBUILD_TEST_ARGS = tests/Test*.py
+export PYBUILD_AFTER_TEST = rm -rf {build_dir}/tests
+endif
 
 %:
 	dh $@ --with python2,python3 --buildsystem pybuild

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



More information about the Python-modules-commits mailing list