-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Change VCS tooling verbosity along with pip's verbosity #9639
Conversation
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
@SnoopJeDi Are you still interested in moving this forward? If so, could you update this PR and resolve the merge conflicts? |
@pradyunsg Yes and yes. Will do, thanks for following up. Can you comment on the question I asked about the plumbing changes? I.e. is it okay to add a Summary of the changed signatures, most abstract to least: # src/pip/_internal/operations/prepare.py
unpack_vcs_link(link, location) → unpack_vcs_link(link, location, verbose)
# src/pip/_internal/vcs/versioncontrol.py
obtain(self, dest, url) → obtain(self, dest, url, verbose)
unpack(self, location, url) → unpack(self, location, url, verbose)
# src/pip/_internal/vcs/git.py
fetch_new(self, dest, url, rev_options) → fetch_new(self, dest, url, rev_options, verbose) |
FWIW I peaked around the codebase and didn't find a nicer way to access information like that either. I think @pradyunsg might have been fine with the changes so far and that's why they asked for the rebase, but I'm not exactly sure. |
Is this still in WIP state? I'm waiting this to be considered ready before taking a look at the implementation. |
@uranusjr yes, this PR is still WIP, it's missing implementation for non-git VCS. |
FWIW, I don't think this needs to block on deciding the perfect way of passing the "verbose" flag. The current proposal to change just the one signature |
Agreed, when I come back for the other VCS implementations, I'll be using this approach. |
Logic lgtm, just needs to fix the linter errors and add a news entry. |
Current CI failure is due to a docs change introduced by #9442 |
See #10813 |
Thanks @SnoopJeDi for your work on this, as well as your patience working through this with us! ^>^ |
Overview
This PR is responding to (part of) the feature request represented by #8819, passing the verbosity of
pip
down to a VCS used to satisfy a requirement when callingfetch_new()
(i.e. executing a clone).I haven't contributed topip
before, so I'm opening this as a WIP to get some feedback on my changes to the internal plumbing, namely howverbose
is passed down to theVersionControl
instance. It seems like there are probably other ways to approach this problem, so I figured it's better to just ask about what I've done forgit
alone before proceeding to the other backends, in case there is some better way to pass this information down to the tool level.Only the set of changes necessary to get the desired behavior when installing from agit
repository is included at the moment.Note: I discovered this feature request because of a user who wanted to see the actual progress of the clone, which requires passing
--progress
togit
when not attached to a terminal. I don't think this is essential to the reporting ticket, but it's nice to have and produced reasonable output, so I've included it in these changes.Output
Truncated output of typical usage follows:
default:
verbose:
TODO
pip
test suite