Skip to content

pipenv check --output minimal does --output json #6374

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

Open
tucked opened this issue Apr 10, 2025 · 1 comment
Open

pipenv check --output minimal does --output json #6374

tucked opened this issue Apr 10, 2025 · 1 comment
Labels

Comments

@tucked
Copy link
Contributor

tucked commented Apr 10, 2025

$ 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",
@matteius
Copy link
Member

@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: #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants