-
Notifications
You must be signed in to change notification settings - Fork 16
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
Support pip install
's new --dry-run
and --report
flags
#153
Comments
I'm going to take a stab at this today. @di: do you have any thoughts on whether pip_api.install("pip==veryoldversion") |
I'm honestly surprised that we haven't gotten a request for an |
Sounds good! |
|
Would these be drop in replacements for existing internal |
That maybe makes more sense -- I don't think these proposed APIs currently have direct equivalents internally within |
The |
Just to reiterate: the goal of this project is to provide an importable pip API, which is designed to be be used as a drop-in replacement for existing uses of pip's internal API, not to replace pip's command line API. This means that anything we introduce here should have an equivalent in pip's internal API. If we can identify which functions those would be, that would be the first step in moving forward with this. |
As of version 22.2,
pip
supports two new flags onpip install
:--dry-run
to perform a "dry run" of the installation steps, and--report
to generate a JSON-formatted installation report.It'd be nice to have complementary APIs on pip-api's side, particularly for
pip-audit
's use case!See pypa/pip#10771
xref pypa/pip-audit#321
The text was updated successfully, but these errors were encountered: