Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #10879

Bug#907806: How to disable tests for Python2 only?

From Andreas Tille <andreas@an3as.eu>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#907806: How to disable tests for Python2 only?
Date 2018-09-10 16:40 +0200
Message-ID <wwvw5-7ta-1@gated-at.bofh.it> (permalink)
References <wtzPA-1zI-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Hi,

looking at the bug log of scikit-learn[1] it seems to be a simple means to do

--- a/debian/control
+++ b/debian/control
@@ -20,6 +20,7 @@ Build-Depends: debhelper (>= 9), dh-autoreconf,
                python3-pytest,
                python3-matplotlib,
                python3-joblib (>= 0.9.2),
+               python3-distributed <!nocheck>,
                libsvm-dev (>= 2.84.0),
                libatlas3-base,
 Build-Depends-Indep:


Since python-distributed does not exist for Python2 I tried:


--- a/debian/rules
+++ b/debian/rules
@@ -36,6 +36,8 @@ NOSEARGS += $(shell dpkg --print-architecture | grep -q -v ppc64el || echo --exc
 export  http_proxy=http://127.0.0.1:9/
 export  https_proxy=http://127.0.0.1:9/
 
+export PYBUILD_TEST_ARGS_python2=-k-Xtest_import_all_consistency
+
 # Mega rule
 %:
        : # Explicit build system to avoid use of all-in-1 Makefile



(just for a test - there are more tests to exclude for Python2).
However, it seems that due to the fact that this package uses
--buildsystem=python_distutils instead of pybuild this method does
not seem to work.  Are there any other ways to exclude some tests
for Python2 to make this package build again?

Kind regards

      Andreas.

PS: Yaroslav, I think we formerly agreed that it is OK to move
    those basic packages to Debian Science team maintenance.  I
    would like to move the packaging to Salsa and will follow your
    precondition to change only the needed things to not break
    any backports of yours.  Is this OK?


[1] https://bugs.debian.org/907806


-- 
http://fam-tille.de

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#907806: How to disable tests for Python2 only? Andreas Tille <andreas@an3as.eu> - 2018-09-10 16:40 +0200
  Bug#907806: How to disable tests for Python2 only? eamanu15 <emmanuelarias30@gmail.com> - 2018-09-10 17:50 +0200
  Bug#907806: How to disable tests for Python2 only? Yaroslav Halchenko <debian@onerussian.com> - 2018-09-10 17:50 +0200
    Bug#907806: How to disable tests for Python2 only? Andreas Tille <andreas@an3as.eu> - 2018-09-10 21:50 +0200

csiph-web