There's a good chance that more packages could be marked !nodoc or
!nocheck.

Only tricky thing was copying settings from DEB_BUILD_PROFILES to the
older DEB_BUILD_OPTIONS.

Diane
From 6a57a01e7c92d23c0cdf7c110d1a0869ef0348f4 Mon Sep 17 00:00:00 2001
From: Diane Trout <[email protected]>
Date: Wed, 20 Sep 2017 23:31:25 -0700
Subject: [PATCH 3/4] Support nocheck and nodoc build profiles (Closes:
 #875805)

---
 debian/changelog |  1 +
 debian/control   | 15 ++++++++-------
 debian/rules     |  3 +++
 3 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 0adbdc6bd..7b2532bad 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ pandas (0.20.3-2) unstable; urgency=medium
     - Rename XS-Testsuite to Testsuite
   * Update to debhelper 10
   * Use Python 3 versions of -sphinx and -nbsphinx
+  * Support nocheck and nodoc build profiles (Closes: #875805)
 
  -- Diane Trout <[email protected]>  Wed, 13 Sep 2017 16:36:13 -0700
 
diff --git a/debian/control b/debian/control
index cf16e97af..6a73eabd7 100644
--- a/debian/control
+++ b/debian/control
@@ -11,8 +11,8 @@ Build-Depends: debhelper (>= 10),
                python-scipy,
                python-tz,
                python-tables [!m68k !sh4 !x32],
-               python-nose,
-               python-pytest,
+               python-nose <!nocheck>,
+               python-pytest <!nocheck>,
                python-matplotlib [!hurd-i386],
                python-tk,
                python-openpyxl, python-xlwt, python-xlrd,
@@ -27,10 +27,10 @@ Build-Depends: debhelper (>= 10),
                python3-numpy (>= 1:1.7~), python3-dateutil,
                python3-scipy,
                python3-tz,
-               python3-sphinx (>= 1.0~),
-               python3-nose,
-               python3-pytest,
-               python3-nbsphinx,
+               python3-sphinx (>= 1.0~) <!nodoc>,
+               python3-nbsphinx <!nodoc>,
+               python3-nose <!nocheck>,
+               python3-pytest <!nocheck>,
                python3-matplotlib [!hurd-i386]| python-matplotlib (<< 1.2.0~) [!hurd-i386],
                python3-tk,
                python3-bs4,
@@ -41,7 +41,7 @@ Build-Depends: debhelper (>= 10),
                xvfb, xauth, xclip,
 Build-Depends-Indep:
  ipython (>= 0.12) | ipython2x | ipython1x,
- python-statsmodels [!arm64 !ppc64el !sparc64 !mips64el !ppc64 !sparc64 !sh4],
+ python-statsmodels [!arm64 !ppc64el !sparc64 !mips64el !ppc64 !sparc64 !sh4] <!nocheck>,
 Build-Conflicts: python-tables (= 3.3.0-4), python3-tables (= 3.3.0-4)
 X-Python-Version: >= 2.7
 X-Python3-Version: >= 3.2
@@ -140,6 +140,7 @@ Suggests: python-pandas
 Description: documentation and examples for pandas
  This package contains documentation and example scripts for
  python-pandas.
+Build-Profiles: <!nodoc>
 
 Package: python-pandas-lib
 Architecture: any
diff --git a/debian/rules b/debian/rules
index 6e7d24468..3ccbe0ce5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -61,6 +61,9 @@ export  https_proxy=http://127.0.0.1:9/
 
 export SHELL=/bin/bash
 
+DEB_BUILD_OPTIONS += $(filter nocheck,$(DEB_BUILD_PROFILES))
+DEB_BUILD_OPTIONS += $(filter nodoc,$(DEB_BUILD_PROFILES))
+
 # Mega rule
 %:
 	: # Explicit build system to avoid use of all-in-1 Makefile
-- 
2.14.1

Reply via email to