Skip to content

jc --pip-show does not handle -f option #642

@oliverkurth

Description

@oliverkurth

pip show supports the -f option to show a list of installed files, see https://pip.pypa.io/en/stable/cli/pip_show/#pip-show , example:

$ pip3 show jc -f
Name: jc
Version: 1.25.4
Summary: Converts the output of popular command-line tools and file-types to JSON.
Home-page: https://github.com/kellyjonbrazil/jc
Author: Kelly Brazil
Author-email: [email protected]
License: MIT
Location: /home/pi/.local/lib/python3.11/site-packages
Requires: Pygments, ruamel.yaml, xmltodict
Required-by: pypiwifi
Files:
  ../../../bin/jc
  jc-1.25.4.dist-info/INSTALLER
  jc-1.25.4.dist-info/LICENSE.md
  jc-1.25.4.dist-info/METADATA
  jc-1.25.4.dist-info/RECORD
...

jc does not like it:

pi@photon-ed60ce58636e [ ~ ]$ pip3 show jc | jc --pip-show
[{"name":"jc","version":"1.25.4","summary":"Converts the output of popular command-line tools and file-types to JSON.","home_page":"https://github.com/kellyjonbrazil/jc","author":"Kelly Brazil","author_email":"[email protected]","license":"MIT","location":"/home/pi/.local/lib/python3.11/site-packages","requires":"Pygments, ruamel.yaml, xmltodict","required_by":"pypiwifi"}]
pi@photon-ed60ce58636e [ ~ ]$ pip3 show jc -f | jc --pip-show
jc:  Error - pip-show parser could not parse the input data.
             If this is the correct parser, try setting the locale to C (LC_ALL=C).
             For details use the -d or -dd option. Use "jc -h --pip-show" for help.
pi@photon-ed60ce58636e [ ~ ]$ 

It would be great if this was supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions