Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify licence in package metadata #1384

Closed
wants to merge 1 commit into from

Conversation

RazerM
Copy link

@RazerM RazerM commented Oct 20, 2022

Some packages provide their code under multiple licences (e.g. MIT OR Apache-2.0), while the tqdm/LICENCE file indicates that there are contributions given under separate licences, resulting in a licence of MPL-2.0 AND MIT.

The goal of this change is to help downstream users to disambiguate cases where multiple licences are involved. Although PEP 639 is not yet here, nothing stops individual packages from providing a SPDX license expression in the existing license metadata field, which is what I've chosen here.

Additional information

Parsed licence expression example
In [1]: from license_expression import ExpressionError, get_spdx_licensing

In [2]: licensing = get_spdx_licensing()

In [3]: licensing.parse('MPL-2.0 AND MIT', strict=True, validate=True)
Out[3]: AND(LicenseSymbol('MPL-2.0', is_exception=False), LicenseSymbol('MIT', is_exception=False))

SPDX License List

Some packages provide their code under multiple licences (e.g. MIT OR
Apache-2.0), while the tqdm/LICENCE file indicates that there are
contributions given under separate licences, resulting in a licence of
MPL-2.0 AND MIT.

The goal of this change is to help downstream users to disambiguate
cases where multiple licences are involved. Although PEP 639 is not yet
here, nothing stops individual packages from providing a SPDX license
expression in the existing license metadata field, which is what I've
chosen here.
@RazerM
Copy link
Author

RazerM commented Aug 15, 2023

I see this was implemented in the migration to pyproject.toml, thanks!

@RazerM RazerM closed this Aug 15, 2023
@RazerM RazerM deleted the licence-metadata branch August 15, 2023 12:51
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.

2 participants