-
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
[WIP] Run pip check in pip install #4820
Conversation
4a80bcc
to
74833b4
Compare
73d8b4e
to
47c1de2
Compare
It'll be awesome if someone could review this in it's current state since I'd appreciate some input on how this feels to other people. Also, does pip store information about extras installed for a package? In the little time I had, I couldn't find it. |
While there is no change in functionality, this change makes it possible to reuse the pip check logic by uncoupling it from the Distribution objects, as returned by get_installed_distributions.
pip check also prints the specifier when a dependency is not installed
Also, add --no-warn-conflicts option to allow supressing the error messages generated.
2d041b2
to
84a7e21
Compare
Pinging @pypa/pip-committers! PS: There'll be an email about "installed-extras" in your inboxes. :) |
result2 = script.pip( | ||
'install', '--no-index', pkgB_path, '--no-warn-conflicts' | ||
) | ||
assert "Successfully installed pkgB-2.0" in result2.stdout, str(result2) |
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.
add assert "pkga 1.0 has requirement pkgb==1.0" not in result2.stderr, str(result2)
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 |
Closing this for now, until there's a path forward with the extras situation. |
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 |
Imma gonna pick this up again. |
Actually, I'll make a new PR. This one looks messy. :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
RFC @pypa/pip-committers
TODO:
I have a feeling that there's some edge case I've missed.