-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Separate pip search command from operation #2410
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
Conversation
Hmmm. I don't understand the Travis CI failure. Those PEP8 failures don't look related to my code and they don't happen for me locally.
|
7a17792
to
0d33ec5
Compare
I believe #2412 will fix the PEP 8 test failures. |
pep8==1.6 added some additional checks that pip currently fails. This prevents Travis CI failures until folks can evaluate whether the issues should be fixed in the code or ignored.
0d33ec5
to
cc73f9b
Compare
By extracting the logic into `pip.operations.wheel`, the hope is that folks could do a `wheel` programmatically more easily. It also has greater separation of concerns and should allow people to work in parallel with less chance of merge conflicts. Continuing work started in pypa#2173, pypa#2404, and pypa#2410.
Thoughts? |
Seems fine, following the other |
cc73f9b
to
24b931f
Compare
|
||
def search(query, options, build_session_func): | ||
index_url = options.index | ||
with build_session_func(options) as session: |
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.
The session building part could stay on the commands
side. This would also allow to only have the index_url
argument instead of the whole options
.
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.
I agree. I just updated to do as you said.
By extracting the logic into `pip.operations.search`, the hope is that folks could do a `search` programmatically more easily. It also has greater separation of concerns and should allow people to work in parallel with less chance of merge conflicts. Continuing work started in pypa#2173 and pypa#2404.
24b931f
to
41175a1
Compare
Rebased and updated according to @xavfernandez's comments. Ready for review. |
Accidentally closed this, reopening. Sorry! |
Hello! As part of an effort to ease the contribution process and adopt a more standard workflow pip has switched to doing development on the If you do nothing, this Pull Request will be automatically closed by @BrownTruck since it cannot be merged. If this pull request is still valid, please rebase it against If you choose to rebase/merge and resubmit this Pull Request, here is an example message that you can copy and paste:
|
This Pull Request was closed because it cannot be automatically reparented to the Please feel free to re-open it or re-submit it if it is still valid and you have rebased it onto |
@dstufft: Would you find this useful? I don't want to waste time reparenting it, if it's not something that would have value. |
By extracting the logic into
pip.operations.search
, the hope is thatfolks could do a
search
programmatically more easily.It also has greater separation of concerns and should allow people to
work in parallel with less chance of merge conflicts.
Continuing work started in #2173 and #2404.