Skip to content

fix: correct pyproject.toml license field per PEP 621#330

Open
Avinash-yadav103 wants to merge 1 commit into
OpenBMB:mainfrom
Avinash-yadav103:fix/pyproject-license-pep621
Open

fix: correct pyproject.toml license field per PEP 621#330
Avinash-yadav103 wants to merge 1 commit into
OpenBMB:mainfrom
Avinash-yadav103:fix/pyproject-license-pep621

Conversation

@Avinash-yadav103

Copy link
Copy Markdown

The project.license field used a bare string ('Apache-2.0'), which is not a valid form per PEP 621. Modern setuptools (>= 80) rejects this with:

ValueError: invalid pyproject.toml config: project.license.
configuration error: project.license must be valid exactly by one
definition (2 matches found)

This breaks pip install from source on macOS / newer toolchains (reported in #233). PEP 621 requires a table with either text or file key, so use the explicit {text = ...} form.

Closes #233

The `project.license` field used a bare string ('Apache-2.0'), which is
not a valid form per PEP 621. Modern setuptools (>= 80) rejects this with:

    ValueError: invalid pyproject.toml config: project.license.
    configuration error: project.license must be valid exactly by one
    definition (2 matches found)

This breaks `pip install` from source on macOS / newer toolchains
(reported in OpenBMB#233). PEP 621 requires a table with either `text` or
`file` key, so use the explicit `{text = ...}` form.

Closes OpenBMB#233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS source code installation failed

1 participant