pipenv icon indicating copy to clipboard operation
pipenv copied to clipboard

`pipenv check --output minimal` does `--output json`

Open tucked opened this issue 8 months ago • 1 comments

$ python3 --version
Python 3.12.3
$ python3 -m venv venv
$ venv/bin/python -m pip install pipenv
...
$ venv/bin/pipenv --version
pipenv, version 2024.4.1
$ venv/bin/pipenv install cryptography==3.4.7
Creating a virtualenv for this project
Pipfile: /tmp/tmp.COxTwhJBWb/Pipfile
Using default python from /tmp/tmp.COxTwhJBWb/venv/bin/python3.12.3 to create virtualenv...
⠙ Creating virtual environment...created virtual environment CPython3.12.3.final.0-64 in 4591ms
...
$ venv/bin/pipenv check --output json > json.txt
$ venv/bin/pipenv check --output minimal > minimal.txt
$ diff -s json.txt minimal.txt
8c8
<             "/tmp/tmp.COxTwhJBWb-siHZ-UTsktoqp_9f_requirements.txt"
---                                                                                                                                                         >             "/tmp/tmp.COxTwhJBWb-siHZ-UTsbfbn2o33_requirements.txt"
15c15
<         "timestamp": "2025-04-10 23:34:52",
---
>         "timestamp": "2025-04-10 23:35:14",
33,34c33,34
<                 "output": {
<                     "--output": 1
---
>                 "json": {
>                     "--json": 1
70c70
<             "found": "/tmp/tmp.COxTwhJBWb-siHZ-UTsktoqp_9f_requirements.txt",
---
>             "found": "/tmp/tmp.COxTwhJBWb-siHZ-UTsbfbn2o33_requirements.txt",

tucked avatar Apr 10 '25 23:04 tucked

@tucked pipenv check is deprecated technically as its the old deprecated safety check command, and they have migrated to scan which requires an API key. We have addressed that in: https://github.com/pypa/pipenv/pull/6365

We plan to keep the command around and in a subsequent release the pipenv check will run pipenv check --scan by default. However, iirc supporting other output format wrappers around the safety commands was problematic in the updated code paths, so we are reducing support for the command overall--including it is no longer bundled and will be downloaded separately if requested by the user.

matteius avatar Apr 22 '25 11:04 matteius