Path: csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod From: Ole Streicher Newsgroups: linux.debian.maint.python Subject: Re: Problem with pybuild and pytest (repost) Date: Fri, 28 Sep 2018 16:10:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Sep 28 14:09:14 2018 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.899 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -7 X-Greylist: delayed 100453 seconds by postgrey-1.36 at bendel; Fri, 28 Sep 2018 13:52:45 UTC User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Lines: 22 X-Mailing-List: archive/latest/16382 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/87bm8hsp91.fsf@debian.org Approved: robomod@news.nic.it Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 28 Sep 2018 15:52:42 +0200 X-Original-Message-ID: <87bm8hsp91.fsf@debian.org> X-Original-References: <87h8ianj4z.fsf@debian.org> <20180928120027.ne7zizh2hxc6hhob@sar0.p1otr.com> Xref: csiph.com linux.debian.maint.python:10952 Piotr Ożarowski writes: >> >From the pybuild wiki page, I learned to do instead the override: >> >> export PYBUILD_TEST_ARGS=-k "not figure and not online" >> >> However, then the tests are not found anymore and the test step fails: > > 1) remove HOME line from debian/rules, pybuild sets one > 2) you have ".." in PYBUILD_TEST_ARGS (in the git repo) - remove it > 3) for python2.7 (and 2.7 only, 3.X works fine), cmdclassd somehow > disables distutils' settings from .pydistutils.cfg (probably > overwrites too much or doesn't invoke parent's methods). > It works for 3.X because "from sunpy.tests.setup_command import SunPyTest" > fails on 3.X and thus SunPyTest is not used at all. > Disabling SunPyTest fixes it for me Thanks. Just removing the cmdclass option did the trick, and it works now. Best Ole