Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log pip install command output #173

Closed
s0undt3ch opened this issue Mar 13, 2019 · 8 comments
Closed

Log pip install command output #173

s0undt3ch opened this issue Mar 13, 2019 · 8 comments

Comments

@s0undt3ch
Copy link
Contributor

How would this feature be useful?
Besides making it similar to tox(allowing for a smoother transition to nox), it's often useful in case of issues to, even though installing the requirements didn't fail, know which versions were actually installed.

Describe the solution you'd like
One solution would be do always show that output.
The other solution would be to add a --verbose boolean flag which, when passed, would additionally log the output of the pip install command (s0undt3ch@b5049ab)

Describe alternatives you've considered
The only alternative is "patching" nox or submitting a PR to fix/enhance nox.

@s0undt3ch
Copy link
Contributor Author

This is particularly useful in CI contexts

@theacodes
Copy link
Collaborator

theacodes commented Mar 13, 2019 via email

@s0undt3ch
Copy link
Contributor Author

Only if something goes wrong, yes, if nothing goes wrong, we can never get that output.
I'm also -1 with always showing that output, but the additional flag to show the output of all commands? I'd go for that and that's what I did on a branch which I link above.
If that's accepted, I'll submit a PR.

@theacodes
Copy link
Collaborator

theacodes commented Mar 13, 2019 via email

@s0undt3ch
Copy link
Contributor Author

Ok, I'll submit a PR.

@erinwild
Copy link

erinwild commented Apr 7, 2019

See the comment I left on your PR for a way to achieve this currently:

It's already possible to override the silent flag in session.install (see #157). If the desired outcome is conditional reporting particularly in a CI context, the function in the noxfile could potentially handle this via extra arguments.

For example, nox -s tests -- verbose when additional verbosity is desired:

@nox.session(python='3.7')
def tests(session):
    verbosity = True if 'verbose' in session.posargs else False
    session.install('numpy', silent=verbosity)

@vaneseltine
Copy link
Contributor

Was this closed by #174?

@theacodes
Copy link
Collaborator

Yeah I think so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants