Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Piotr =?utf-8?Q?O=C5=BCarowski?= Newsgroups: linux.debian.maint.python Subject: Re: pybuild: passing {dir}/tests to nose/pytest by default duplicated binary Date: Wed, 14 Oct 2015 16:30: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 14:28:40 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.999 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 Mail-Followup-To: debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: Debian GNU/Linux (3.16.0-4-amd64) User-Agent: Mutt/1.5.23 (2014-03-12) X-Mailing-List: archive/latest/12976 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20151014142820.GL15907@sar0.p1otr.com Approved: robomod@news.nic.it Lines: 29 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 14 Oct 2015 16:28:20 +0200 X-Original-Message-ID: <20151014142820.GL15907@sar0.p1otr.com> X-Original-References: <20151013213209.GI15907@sar0.p1otr.com> <20151014112659.GK15907@sar0.p1otr.com> <20151014101206.43159b13@limelight.wooz.org> Xref: csiph.com linux.debian.maint.python:7665 [Barry Warsaw, 2015-10-14] > On Oct 14, 2015, at 01:26 PM, Piotr Ożarowski wrote: > > >> export PYBUILD_TEST_ARGS={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 > > > >? > > 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. > there's an easy way to disable it for corner cases. exporting PYBUILD_TEST_ARGS¹ (with or without options, i.e. it can be empty) would be enough to disable it [¹] AKA --test-args -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645