llm
llm copied to clipboard
pyproject.toml PEP 621
Upstreaming this report. I maintain a PKGBUILD for the AUR and received a bug report from a user.
waveplate [1] added the following comment to python-llm [2]:
ValueError: invalid pyproject.toml config: `project.license`.
configuration error: `project.license` must be valid exactly by one
definition (2 matches found):
- keys:
'file': {type: string}
required: ['file']
- keys:
'text': {type: string}
required: ['text']
ERROR Backend subprocess exited when trying to invoke
get_requires_for_build_wheel
==> ERROR: A failure occurred in build().
I got this error with both the python-condense-json and python-llm
packages
license = "Apache-2.0" is the offending line in pyproject.toml
Since the decision was made to strictly enforce PEP 621, the only valid formats are:
license = { text = "Apache-2.0" }
and
license = { file = "LICENSE" }
[1] https://aur.archlinux.org/account/waveplate/ [2] https://aur.archlinux.org/pkgbase/python-llm/