Skip to content

Commit

Permalink
Revert "Remove UPL from accepted licenses"
Browse files Browse the repository at this point in the history
  • Loading branch information
sayden committed Jun 28, 2019
1 parent 5d6c16e commit 764f00c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dev-tools/generate_notice.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ def create_notice(filename, beat, copyright, vendor_dirs, csvfile, overrides=Non
"Mozilla Public License, version 2.0"
]

UNIVERSAL_PERMISSIVE_LICENSE_TITLES = [
"The Universal Permissive License (UPL), Version 1.0"
]


# return SPDX identifiers from https://spdx.org/licenses/
def detect_license_summary(content):
Expand All @@ -328,6 +332,8 @@ def detect_license_summary(content):
return "CC-BY-SA-4.0"
if any(sentence in content[0:3000] for sentence in LGPL_3_LICENSE_TITLE):
return "LGPL-3.0"
if any(sentence in content[0:1500] for sentence in UNIVERSAL_PERMISSIVE_LICENSE_TITLES):
return "UPL-1.0"

return "UNKNOWN"

Expand All @@ -339,6 +345,7 @@ def detect_license_summary(content):
"BSD-3-Clause",
"BSD-2-Clause",
"MPL-2.0",
"UPL-1.0",
]
SKIP_NOTICE = []

Expand Down

0 comments on commit 764f00c

Please sign in to comment.