[pybtex] 15/20: Add support for the nocheck build profile
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sat Jul 22 21:04:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository pybtex.
commit bd0a68ed6526e45d51d182d9181b4a60ce3a613b
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Fri Jul 21 20:55:05 2017 +0100
Add support for the nocheck build profile
---
debian/control | 5 +++--
debian/rules | 4 ++++
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index fbef7be..2f432e0 100644
--- a/debian/control
+++ b/debian/control
@@ -3,8 +3,9 @@ Maintainer: Python Applications Packaging Team <python-apps-team at lists.alioth.de
Uploaders: Daniel Stender <stender at debian.org>
Section: tex
Priority: optional
-Build-Depends: debhelper (>= 9),
+Build-Depends: debhelper (>= 9.20141010),
dh-python,
+ dpkg-dev (>= 1.17.14),
python-all,
python-latexcodec (>= 1.0.4),
python-nose,
@@ -14,7 +15,7 @@ Build-Depends: debhelper (>= 9),
python-yaml,
python3-all,
python3-latexcodec (>= 1.0.4),
- python3-nose,
+ python3-nose <!nocheck>,
python3-setuptools,
python3-yaml
Standards-Version: 4.0.0
diff --git a/debian/rules b/debian/rules
index 1232de8..8643bd5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,12 @@
#export DEB_BUILD_OPTIONS=nocheck
export PYBUILD_NAME=pybtex
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+export PYBUILD_DISABLE=test
+else
export PYBUILD_BEFORE_TEST=cp -r {dir}/*.egg-info {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/*.egg-info
+endif
export PYBUILD_AFTER_INSTALL_python3=rm -rf {destdir}/usr/bin
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pybtex.git
More information about the debian-science-commits
mailing list