Re: pybuild and testing pytest plugins

2019-01-14 Thread Alexandros Afentoulis
On 1/14/19 1:36 PM, Piotr Ożarowski wrote: >> Conceptually I think it's more relevant to override dh_auto_test. To make >> sure pytest will register the plugin one may tweak the $PYTHONPATH. That's >> the approach I followed in pytest-flask, see [1]. > >> [1] >> https://salsa.debian.org/python-te

Re: pybuild and testing pytest plugins

2019-01-14 Thread Piotr Ożarowski
> Conceptually I think it's more relevant to override dh_auto_test. To make > sure pytest will register the plugin one may tweak the $PYTHONPATH. That's > the approach I followed in pytest-flask, see [1]. > [1] > https://salsa.debian.org/python-team/modules/pytest-flask/blob/debian/master/debian/

Re: pybuild and testing pytest plugins

2019-01-14 Thread Alexandros Afentoulis
On 1/13/19 9:23 PM, Scott Talbert wrote: When packaging a pytest plugin and wanting to run the plugin's unit tests during the build process, the plugin usually has to be installed before running the tests, otherwise pytest cannot find the plugin.  This seems to require workarounds such as this

pybuild and testing pytest plugins

2019-01-13 Thread Scott Talbert
When packaging a pytest plugin and wanting to run the plugin's unit tests during the build process, the plugin usually has to be installed before running the tests, otherwise pytest cannot find the plugin. This seems to require workarounds such as this [1]. Is there any way to avoid this with