Skip to content

Commit

Permalink
Support PEP639 License-Expression and License-File in json output
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Dec 29, 2024
1 parent dd6c4ad commit 94c86f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions news/13134.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Support :pep:`639` License-Expression and License-File metadata fields in json
output. ``pip inspect`` and ``pip install --report`` now emit
``license_expression`` and ``license_file`` fields in the ``metadata`` object,
if the corresponding fields are present in the installed ``METADATA`` file.
2 changes: 2 additions & 0 deletions src/pip/_internal/metadata/_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
("Maintainer", False),
("Maintainer-email", False),
("License", False),
("License-Expression", False),
("License-File", True),
("Classifier", True),
("Requires-Dist", True),
("Requires-Python", False),
Expand Down

0 comments on commit 94c86f8

Please sign in to comment.