Closed maximlt closed 2 years ago
Doesn't development necessarily include testing? I.e., wouldn't any developer also need to run the tests before submitting a change?
It depends on what you change I guess. If I change the template or CSS of a site and want to build it again I for sure do not want to have pytest
or flake8
installed by default. I'd rather have to explicitely write -o tests
when I want the tests dependencies, I believe it's what we're recommending (see panel's developer guide) or doing in our CI (see panel's workflow).
Just realized that after using
develop_install
for a while now in a few projects. See as a proof the output of a command that failed when trying to build the docs of holoviews:Notice
flake8
,pytest
and the likes, who shouldn't really be there!This may come from the fact that
tests
is the default group installed: https://github.com/pyviz-dev/pyctdev/blob/d11c91aaa81c6034bdc42ce547823248acc05efb/pyctdev/util.py#L81-L89There's a hack just below that that we may wanna use instead: https://github.com/pyviz-dev/pyctdev/blob/d11c91aaa81c6034bdc42ce547823248acc05efb/pyctdev/util.py#L91-L98
By replacing
_options_param
by_options_param2
here: https://github.com/pyviz-dev/pyctdev/blob/d11c91aaa81c6034bdc42ce547823248acc05efb/pyctdev/_conda.py#L873