-
-
Notifications
You must be signed in to change notification settings - Fork 612
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
Improve pip-compile with regard to stdout #361
Conversation
I could imagine still being able to force this, but the default should be changed in that case.
f = stack.enter_context(AtomicSaver(self.dst_file)) | ||
|
||
for line in self._iter_lines(results, reverse_dependencies, primary_packages): | ||
log.info(line) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of removing logging, shouldn't the log be going to stderr like most logging does? If it goes to stderr, it wouldn't be interfering with the stdout issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't the log be going to stderr like most logging does?
Agreed. Do you want to create an issue for it?
But then this log line is still a bit too verbose (move it to debug? / add a prefix like "writing line"?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I can make an issue. (I would need to confirm first that log
does indeed go to stdout.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not use the logging module, but click: https://github.com/nvie/pip-tools/blob/d521d766113e69ea0a10017bb968d3b3bb242e5f/piptools/logging.py#L21-L22.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done here: #362
@piotr-dobrogost (As for stats / how likely inclusion will be: https://github.com/nvie/pip-tools/pulls?q=is%3Apr+author%3Ablueyed+is%3Aclosed) |
Close in favour of #727. |
I also had this, but it seems like
-o -
should be given explicitly?!Or should
-o -
be the default for-
as input file (which makes sense to me)?(Done in 31cbab8)
See also 1aa91b5 where
--header
gets disabled for this.Should it be still possible to pass in
--header
to force it, as withpip-comfile --header -
?