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


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

Re: pybuild: passing {dir}/tests to nose/pytest by default duplicated binary

From Piotr Ożarowski <piotr@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: pybuild: passing {dir}/tests to nose/pytest by default duplicated binary
Date 2015-10-14 16:30 +0200
Message-ID <qjve2-17o-7@gated-at.bofh.it> (permalink)
References <qjfsB-28J-23@gated-at.bofh.it> <qjspR-5qz-31@gated-at.bofh.it> <qjv4n-Wf-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[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

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


Thread

Python-pyfasta: How to run nosetests and what to do with duplicated  binary Andreas Tille <andreas@an3as.eu> - 2015-10-13 23:20 +0200
  Re: Python-pyfasta: How to run nosetests and what to do with  duplicated binary Piotr Ożarowski <piotr@debian.org> - 2015-10-13 23:40 +0200
    pybuild: passing {dir}/tests to nose/pytest by default duplicated  binary Piotr Ożarowski <piotr@debian.org> - 2015-10-14 13:30 +0200
      Re: pybuild: passing {dir}/tests to nose/pytest by default  duplicated binary Barry Warsaw <barry@debian.org> - 2015-10-14 16:20 +0200
        Re: pybuild: passing {dir}/tests to nose/pytest by default  duplicated binary Piotr Ożarowski <piotr@debian.org> - 2015-10-14 16:30 +0200
          Re: pybuild: passing {dir}/tests to nose/pytest by default  duplicated binary Barry Warsaw <barry@debian.org> - 2015-10-14 17:10 +0200
            Re: pybuild: passing {dir}/tests to nose/pytest by default Piotr Ożarowski <piotr@debian.org> - 2015-10-14 17:20 +0200
      Re: pybuild: passing {dir}/tests to nose/pytest by default duplicated binary Nikolaus Rath <Nikolaus@rath.org> - 2015-10-14 18:20 +0200

csiph-web