X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 195.154.70.45 Path: csiph.com!goblin1!goblin.stu.neva.ru!proxad.net!feeder1-2.proxad.net!nntpfeed.proxad.net!news.redatomik.org!news.muarf.org!news.ecp.fr!aioe.org!bofh.it!news.nic.it!robomod From: Barry Warsaw Newsgroups: linux.debian.maint.python Subject: Re: pybuild: passing {dir}/tests to nose/pytest by default duplicated binary Date: Wed, 14 Oct 2015 17:10:02 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Oct 14 15:06:57 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5 Organization: The Organization of Unorganized Woozalists X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/12977 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20151014110639.2b1210d6@limelight.wooz.org Approved: robomod@news.nic.it Lines: 27 Sender: robomod@news.nic.it X-Original-Date: Wed, 14 Oct 2015 11:06:39 -0400 X-Original-Message-ID: <20151014110639.2b1210d6@limelight.wooz.org> X-Original-References: <20151013213209.GI15907@sar0.p1otr.com> <20151014112659.GK15907@sar0.p1otr.com> <20151014101206.43159b13@limelight.wooz.org> <20151014142820.GL15907@sar0.p1otr.com> Xref: csiph.com linux.debian.maint.python:7666 On Oct 14, 2015, at 04:28 PM, Piotr O=C5=BCarowski wrote: >[Barry Warsaw, 2015-10-14] >> On Oct 14, 2015, at 01:26 PM, Piotr O=C5=BCarowski wrote: >>=20 >> >> export PYBUILD_TEST_ARGS=3D{dir}/tests >> > >> >should I do that by default in pybuild if >> >* "test" or "tests" directory is detected >> >* PYBUILD_TEST_ARGS is not set >> >* nose or pytest test suite is used >> > >> >? >>=20 >> Maybe just on the first two conditions, only if it's documented, and if > >does `{interpreter} setup.py test` or `{interpreter} -m unittest discover = -v` >(always? usually?) take dir as parameter? > >If not, then I'd keep it for nose/pytest only. Oh sorry, I think I misunderstood. The conditions above are ANDed not ORed= . :) Cheers, -Barry