Re: running tests against installed version of package

2016-04-02 Thread Brian May
Tiago Ilieve writes: > I see. Actually I've removed the "override_dh_auto_test"[1] when I > found out[2] that Pybuild can to do this by itself. > > Now I wonder whether this is enough to fit the use case of multiple > Python 3 versions that you mentioned... Yes, I believe that is sufficient. The

Re: running tests against installed version of package

2016-04-02 Thread Tiago Ilieve
Hi Brian, On 2 April 2016 at 22:32, Brian May wrote: > This will only test the current version of Python 3. Which is OK at the > moment, there is only Python 3.5 > > However it was very useful to have packages run tests against Python 3.5 > while Python 3.4 was still the default. > > I imagine th

Bug#819853: ITP: pytest-runner -- Invoke py.test as distutils command with dependency resolution.

2016-04-02 Thread Brian May
Package: wnpp Severity: wishlist Owner: Brian May * Package name: pytest-runner * Binary Package name : python{,3}-pytest-runner Version : 2.7 Upstream Author : Jason R. Coombs * URL : https://github.com/pytest-dev/pytest-runner * License : Expat Programming

Re: running tests against installed version of package

2016-04-02 Thread Brian May
Tiago Ilieve writes: > override_dh_auto_test: > PYTHONPATH=$(CURDIR) py.test > PYTHONPATH=$(CURDIR) py.test-3 This will only test the current version of Python 3. Which is OK at the moment, there is only Python 3.5 However it was very useful to have packages run tests against Py

Re: running tests against installed version of package

2016-04-02 Thread Piotr Ożarowski
[Thomas Goirand, 2016-04-02] > > this will test python2.7 only > > Running tests with multiple version of Python was out of scope of my > message. it might be out of scope of your message, but during package's build all interpreters ought to be tested > > and will most probably ignore extensions

Re: running tests against installed version of package

2016-04-02 Thread Thomas Goirand
On 04/01/2016 12:13 AM, Piotr Ożarowski wrote: >> Most of the time, you get by this doing: >> PYTHONPATH=$(CURDIR) python -m pytest tests > > this will test python2.7 only Running tests with multiple version of Python was out of scope of my message. > and will most probably ignore extensions, et

Re: running tests against installed version of package

2016-04-02 Thread Tiago Ilieve
Thomas, On 31 March 2016 at 18:49, Thomas Goirand wrote: > Most of the time, you get by this doing: > PYTHONPATH=$(CURDIR) python -m pytest tests Awesome tip! Just stumbled up on this one when imports where changed from relative to absolute and this tip properly fixed the matter. Piotr, On 31