Use `pip`'s new `--dry-run` and `--report` flags
See original GitHub issueOn sufficiently new pip
versions (not yet released), these flags will allow us to punt all dependency resolution directly to pip
and retrieve a corresponding JSON report.
pip-audit
should detect and support these versions of pip
, leveraging their “official” dependency resolution flow rather than our internal one.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
How to make pip "dry-run"? - python - Stack Overflow
I've just tried it in a fresh venv with Python 3.10.7 to dry run soft-dtw. Most requirements were reported only but Cython and...
Read more >pip 22.2 now has "pip install --dry-run" : r/Python - Reddit
Bigger point, despite running in or out of a python environment, there are use cases for a dry run flag.
Read more >pip install - pip documentation v22.3.1
The install command has a --report option that will generate a JSON report of what pip has installed. In combination with the --dry-run...
Read more >Announcement: pip 22.2 release! - Discussions on Python.org
A new pip install --report option to obtain a detailed JSON report of what pip installed. Together with the new --dry-run option and ......
Read more >Perform a dry run for an HR management system
Navigate to HR Integrations > HR Integrations Schedule Jobs. Click New or open a record. Note: If you are using a preconfigured integration,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Reminder that the goal of
pip-audit
is to be a drop-in replacement forpip
’s internal APIs. So whatever the function/API is thatpip
uses internally is what we should mimic inpip-api
… I haven’t looked but this is probably some type ofinstall
function instead.Thanks @pradyunsg! Since the ultimate goal of
pip-api
is to get people to stop usingpip
’s internal API by providing an equivalent API that wraps the CLI instead, it’s important forpip-api
to mimic that as much as possible.Also, when integrating into
pip
, being able to easily replace calls topip-api
with calls from withinpip
should make integration easier – but if I’m missing something, definitely let me know.