Skip to content

Not clear how to describe multiple licenses #4188

Description

@bobham-ct

Hi,

The documentation for the license attribute states that

This attribute can contain several, comma separated licenses. It is a text string, so it can contain any text, including hyperlinks to license files elsewhere.

However, it's not clear whether multiple licenses should be a single string containing comma-separated licenses like so:

    license = "MIT, GPL-3.0-or-later"

or a tuple of comma-separated strings:

    license = "MIT", "GPL-3.0-or-later"

I've been able to find one example and one comment from @ericriff where it's a tuple:

https://github.com/conan-io/conan-center-index/blob/bab95647f8588594a809d59af368ffd798f602da/recipes/restbed/all/conanfile.py#L20

conan-io/conan-center-index#4333 (comment)

Is this correct?

Regardless, could the documentation be updated to clarify which is the case? Or should it be both?

Thanks,

Bob Ham

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions