encode / starlette

The little ASGI framework that shines. 🌟
https://www.starlette.io/
BSD 3-Clause "New" or "Revised" License
10.31k stars 948 forks source link

Remove duplicated license in pyproject.toml #2705

Closed lin826 closed 2 months ago

lin826 commented 2 months ago

Summary

Resolve the building issue from pyproject.toml

22:32:47   | ValueError: invalid pyproject.toml config: `project.license`.
22:32:47   | configuration error: `project.license` must be valid exactly by one definition (2 matches found):
22:32:47   |
22:32:47   |     - keys:
22:32:47   |         'file': {type: string}
22:32:47   |       required: ['file']
22:32:47   |     - keys:
22:32:47   |         'text': {type: string}
22:32:47   |       required: ['text']
22:32:47   |
22:32:47   | WARNING: exit code 1 from a shell command.
22:32:47   NOTE: recipe python3-starlette-0.39.0-r0: task do_compile: Failed

Reference: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license

Checklist

trim21 commented 2 months ago

I don't think we should remove classifiers? project.license is not right but project.classifiers is still valid.

Kludex commented 2 months ago

Closing this given this was already brought up in uvicorn: https://github.com/encode/uvicorn/pull/1734

But thanks for the PR 🙏