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


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

Re: Problem with pybuild and pytest (repost)

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Ole Streicher <olebole@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Problem with pybuild and pytest (repost)
Date Fri, 28 Sep 2018 16:10:01 +0200
Message-ID <wD1CV-1i9-3@gated-at.bofh.it> (permalink)
References <wCWjT-6z6-5@gated-at.bofh.it> <wCZKN-d6-1@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Sep 28 14:09:14 2018
Old-Return-Path <news@liska.ath.cx>
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 <debian-python@lists.debian.org> archive/latest/16382
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
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

Show key headers only | View raw


Piotr Ożarowski <piotr@debian.org> 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

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


Thread

Problem with pybuild and pytest (repost) Ole Streicher <olebole@debian.org> - 2018-09-28 10:30 +0200
  Re: Problem with pybuild and pytest (repost) Piotr Ożarowski <piotr@debian.org> - 2018-09-28 14:10 +0200
    Re: Problem with pybuild and pytest (repost) Ole Streicher <olebole@debian.org> - 2018-09-28 16:10 +0200

csiph-web