[pytest-dev] [proposal] deprecating the pytest_namespace hook

2016-08-26 Thread Ronny Pfannschmidt
hi all currently the need to initialize the namespace makes it necessary to do the initialization of the plugin-manager in a relatively ugly fashion and without full knowledge of what should happen to the process i would like to remove that need, so we only ever initialize a pluginmanager

Re: [pytest-dev] [proposal] deprecating the pytest_namespace hook

2016-08-26 Thread Bruno Oliveira
Hi Ronny, I'm not sure I understand what you mean by "ugly and without full knowledge of what should happen"... could you give more details? Also, what would we provide instead? This is a largely used feature, I'm sure we can't just remove it. Cheers On Fri, Aug 26, 2016 at 4:41 AM Ronny Pfanns

Re: [pytest-dev] [proposal] deprecating the pytest_namespace hook

2016-08-26 Thread Ronny Pfannschmidt
Hi Bruno, the problem it creates is, that we need to load plugins before even parsing the config and before even having config object just in order to literally monkeypatch a module the second problem it creates is, it makes the pytest namespace impossible to introspect for external tools

Re: [pytest-dev] [proposal] deprecating the pytest_namespace hook

2016-08-26 Thread Bruno Oliveira
On Fri, Aug 26, 2016 at 9:54 AM Ronny Pfannschmidt < [email protected]> wrote: > the problem it creates is, that we need to load plugins before even > parsing the config and before even having config object just in order to > literally monkeypatch a module > You mean that just impor

Re: [pytest-dev] [proposal] deprecating the pytest_namespace hook

2016-08-26 Thread Ronny Pfannschmidt
On 26.08.2016 15:00, Bruno Oliveira wrote: On Fri, Aug 26, 2016 at 9:54 AM Ronny Pfannschmidt > wrote: the problem it creates is, that we need to load plugins before even parsing the config and before even having config object just in order