Skip to content

Commit 94c86f8

Browse files
committed
Support PEP639 License-Expression and License-File in json output
1 parent dd6c4ad commit 94c86f8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

news/13134.feature.rst

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Support :pep:`639` License-Expression and License-File metadata fields in json
2+
output. ``pip inspect`` and ``pip install --report`` now emit
3+
``license_expression`` and ``license_file`` fields in the ``metadata`` object,
4+
if the corresponding fields are present in the installed ``METADATA`` file.

src/pip/_internal/metadata/_json.py

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
("Maintainer", False),
2424
("Maintainer-email", False),
2525
("License", False),
26+
("License-Expression", False),
27+
("License-File", True),
2628
("Classifier", True),
2729
("Requires-Dist", True),
2830
("Requires-Python", False),

0 commit comments

Comments
 (0)