pallets / werkzeug

The comprehensive WSGI web application library.
https://werkzeug.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
6.66k stars 1.73k forks source link

Use SPDX license expression #3010

Closed cdce8p closed 2 days ago

cdce8p commented 1 week ago

PEP 639 recommends the use of SPDX license identifiers.

At the moment the license key is ignored by flit, see https://github.com/pypa/flit/issues/525. However, it's still possible to replace it now. Once the support in flit is added, the value will be used automatically.

At some point, the table will need be be changed to just a string for full PEP 639 compliance. That requires support for it first though. The change is also pretty simple.

-license = {text = "BSD-3-Clause"}
+license = "BSD-3-Clause"
davidism commented 2 days ago

I'm going to close this for now. Once Flit supports license = "string" and license_files = [...], you're welcome to create a PR for that.