-
Notifications
You must be signed in to change notification settings - Fork 3.1k
First stab at implementing the resolver provider using pip internals #7789
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
Nice. See my post on zulip for some code snippets that would help here. I'll see if I can integrate those into what you have. |
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.
Some further comments.
It would be nice to have a simple unit test that ensured this was callable somehow. I'll look at writing one. I don't know what the best way is to develop code based on someone else's PR, though. For now I'll develop locally on a branch based off your PR, but we should work out how to share that code, and how to merge any useful changes into your PR.
We're working in very close to the same areas of code at the moment, and it'll be easy for us to overlap (see my latest round of comments, which were partially outdated immediately after I posted them because I hadn't refreshed my browser!) We should discuss how to avoid clashing at today's meeting. But for now I'll work on looking at how we can write some tests for these new classes. That should avoid me duplicating what you are doing too directly. |
What's the best way to share my code? I don't know how to write a PR based on another PR... 😕 Edit: Just noticed the comment below, "Add more commits by pushing to the provider-integration branch on uranusjr/pip". I guess that answers my question - I can do PRs against your repo/branch. Does that seem OK? |
Yup definitely, go ahead 👍 |
And if you can’t, just push this branch to pypa/pip instead. I think I can commit to non-protected branches (i.e. other than master). |
Hmm, I'm getting in a mess here :-( Given that I have a clone of https://github.com/pfmoore/pip, with a remote called "upstream" pointing at https://github.com/pypa/pip, how do I:
I suspect what I should do is create a new Sorry if this is all basic, I've never needed to do anything more complex than "create a PR" workflow with git before... Also, unrelated, but I've created a couple of new test fixtures. To keep them separate, I put them in |
One of the things with this is that GitHub's |
Let’s just push to pypa/pip instead, I believe all of us have permission to do that. (I hate permission stuff.) |
Moving to #7799. |
This is not intended to be merged, but posted to raise awareness and discussions.
I went through a few iterations on this, but couldn’t really figure out how to directly use
InstallRequirement
, so right now I am usingRequirement
from packaging,InstallationCandidate
returned by the finder, and some custom PODs to do the job. I implemented the straightforward parts, but the most hairy one awaits: Read metadata from a random candidate (for version and dependencies).cc @pfmoore