1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00
Jeremy Lainé 015ea0023e
[PyPI] Fix license for packages following PEP 639 (#11001)
* [PyPI] Fix license for packages following PEP 639

PEP 639 states that the preferred way of documenting a Python project's
license is an SPDX expression in a `License-Expression` metadata field.
PyPI exposes this information in `info.license_expression` in its JSON
data.

Fixes: #11000

* add license_expression to pypi response schema

* move comments inline into the relevant blocks

* assign both license and license_expression to intermediate variables

* always pass a license_expression in test input objects

---------

Co-authored-by: chris48s <git@chris-shaw.dev>
2025-04-06 18:31:44 +00:00
..