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

Scripts: Added FortAwesome/Font-Awesome license in list of GPL 2 compatible licenses #12929

Merged
merged 1 commit into from
Jan 24, 2019

Conversation

bfintal
Copy link
Contributor

@bfintal bfintal commented Dec 16, 2018

Description

I've added the license (CC-BY-4.0 AND MIT) in the list of GPL 2 compatible licenses, it's the license label used by https://github.com/FortAwesome/Font-Awesome FontAwesome isn't used in Gutenberg, but the addition is for other projects that can use check-licenses

How has this been tested?

Tests ran: npm run check-licenses and npm run lint-js

Types of changes

New feature: Added (CC-BY-4.0 AND MIT) in the list of GPL 2 compatible licenses

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

@bfintal bfintal changed the title Added @fortawesome license in compatible licenses Added FortAwesome/Font-Awesome license in list of GPL 2 compatible licenses Dec 16, 2018
@bfintal bfintal changed the title Added FortAwesome/Font-Awesome license in list of GPL 2 compatible licenses Scripts: Added FortAwesome/Font-Awesome license in list of GPL 2 compatible licenses Dec 16, 2018
@gziolo gziolo requested a review from pento December 16, 2018 16:21
@gziolo gziolo added the [Package] Scripts /packages/scripts label Dec 16, 2018
Copy link
Member

@pento pento left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both of these licenses are GPL compatible. In the case of Font Awesome, the code is MIT, the icons are CC-BY 4.0 (ref).

@aduth
Copy link
Member

aduth commented Dec 18, 2018

An aside to the specific change, but if there's an established pattern of defining multilicensed projects using (X AND Y), maybe we could automate the parsing to check that each are individually valid licenses. As I write this, I see we do this already for "OR" combinations. Perhaps worth creating as a separate task?

@pento
Copy link
Member

pento commented Dec 19, 2018

Yah, OR was the more common occurrence when I originally wrote this script, so I just wrote a basic parser for those expressions.

The two major factors for doing it in our own script, instead of using an existing package, were:

  • The official SPDX parser doesn't allow for invalid license strings.
  • There wasn't anything that worked really well for extracting the license from places other than package.json.

We'd probably need to keep our extractor, but something like this could work:

That at least avoids us having to write a proper expression parser.

@aduth aduth force-pushed the add/fontawesome-check-licenses branch from ea7e6bb to 6fb6254 Compare January 24, 2019 18:33
@aduth
Copy link
Member

aduth commented Jan 24, 2019

Let's get this in as-is and iterate on improvements separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Scripts /packages/scripts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants