Skip to content

Commit

Permalink
Merge pull request #156 from hesa/hesa-add-licenses-XIII
Browse files Browse the repository at this point in the history
Add licenses - bulk xiii
  • Loading branch information
hesa committed May 7, 2024
2 parents 50a02cf + 8695294 commit 479f93b
Show file tree
Hide file tree
Showing 26 changed files with 692 additions and 142 deletions.
6 changes: 4 additions & 2 deletions Makefile
Expand Up @@ -56,7 +56,9 @@ check_license_schema:
check-reuse: clean
reuse --suppress-deprecation lint

license: check_license_files
lint: check-reuse py-lint

license: check_license_files check-py-cli check_license_schema

.PHONY: python check-py-cli
python: py-test py-sort py-lint check-py-cli py-doctest py-doc
Expand All @@ -75,7 +77,7 @@ py-lint:
cd python && PYTHONPATH=. flake8 flame

py-doc:
#cd python/docs && PYTHONPATH=. make html
#cd python/docs && PYTHONPATH=. make html
cd python && rm -fr docs/build && PYTHONPATH=. sphinx-build -E docs/source/ docs/build/html


Expand Down
21 changes: 17 additions & 4 deletions tests/shell/sanity-check.sh
Expand Up @@ -130,6 +130,8 @@ check_presence Apache-1.0 " -e 1.0" "-e 2 -e 1.1"
check_presence Apache-1.1 " -e 1.1" "-e 2 -e 1.0"
check_presence Apache-2.0 " -e 2" "-e 1"

check_presence APSL-2.0 " -e 2" "-e 1 -e [3-9]"

check_presence Artistic-1.0 " -e 1.0 -e 1" "-e 2 "
check_presence Artistic-2.0 " -e 2 -e 2.0 " "-e 1"

Expand All @@ -139,7 +141,9 @@ check_presence LicenseRef-scancode-boost-original " -i -e original " " -e
check_presence 0BSD "$ZERO_BSD_PRESENT" "$BSD3_PRESENT $BSD2_PRESENT "
check_presence BSD-2-Clause "$BSD2_PRESENT" "$ZERO_BSD_PRESENT $BSD3_PRESENT "
check_presence BSD-2-Clause-Patent "$BSD2_PATENT_PRESENT" "$ZERO_BSD_PRESENT $BSD3_PRESENT "
check_presence BSD-2-Clause-Views " -i -e view" " -e 0 -e 1 -e 3 -e 4"
check_presence BSD-3-Clause "$BSD3_PRESENT" "$ZERO_BSD_PRESENT $BSD2_PRESENT"
check_presence BSD-3-Clause-Clear " -i -e clear" " -e 0 -e 1 -e 2 -e 4"
check_presence BSD-4-Clause "$BSD4_PRESENT" " $ZERO_BSD_PRESENT $BSD2_PRESENT $BSD3_PRESENT"

check_presence CC0-1.0 " -e 1 -e 0 " " -e [2-9]"
Expand All @@ -155,6 +159,9 @@ check_presence CDDL-1.1 " -e 1.1" " -e 1.0"

check_presence CPL-1.0 " -e 1.0 -e 1 " " -e 0.5 -e 2"

check_presence EFL-1.0 " -e 1.0 -e 1" " -e 2"
check_presence EFL-2.0 " -e 2.0 -e 2" " -e 1"

check_presence EPL-1.0 " -e 1.0 -e 1" " -e 2"
check_presence EPL-2.0 " -e 2.0 -e 2" " -e 1"

Expand All @@ -176,7 +183,7 @@ check_presence AGPL-3.0-or-later " -e 3 -e later -e +" " -e '1 ' -e 2"

check_presence IJG " -i -e ijg -e independent -e jpeg " ""

check_presence LGPL-2.0-only " -e 2.0 " " -e 3 -e later"
check_presence LGPL-2.0-only " -e 2.0 -e 2 " " -e 3 -e later"
check_presence LGPL-2.1-only " -e 2.1 " " -e 3 -e later"
check_presence LGPL-3.0-only " -e 3 " " -e 2 -e later"

Expand All @@ -185,9 +192,11 @@ check_presence LGPL-3.0-or-later " -e 3 -e later" " -e 2"

check_presence LicenseRef-scancode-g10-permissive " -i -e g10 " ""

check_presence MIT " -i -e MIT -e Expat" " -e 0"
check_presence MIT-0 " -e 0 -i -e \"no attribution\"" ""
check_presence MIT-advertising " -e 0 -i -e advertising" " -i -e \"no advertising\""
check_presence MIT " -i -e MIT -e Expat" " -i -e 0 -e we -e advert -e modern "
check_presence MIT-0 " -e 0 -i -e \"no attribution\"" " -i -e we -e advert -e modern -e wu"
check_presence MIT-advertising " -e 0 -i -e advertising" " -i -e \"no advertising\" -e wu -e 0 -e modern"
check_presence MIT-Modern-Variant " -i -e modern" " -i -e advertising -e 0 -e wu"
check_presence MIT-Wu " -i -e wu " " -i -e advertising -e modern -e 0 "

check_presence MPL-1.0 " -e 1.0" "-e 2 -e 1.1"
check_presence MPL-1.1 " -e 1.1" "-e 2 -e 1.0"
Expand All @@ -200,6 +209,10 @@ check_presence OFL-1.1 " -e 1.1" " -e 1.0"
check_presence TU-Berlin-1.0 " -e 1" " -e 2"
check_presence TU-Berlin-2.0 " -e 2" " -e 1"

check_presence W3C " -i -e w3c -e w3.org " " -e 1998 -e 2015 "
check_presence W3C-19980720 " 1998 " " -e 2015 "
check_presence W3C-20150513 " 2015 " " -e 1998 "

check_presence X11 " -i -e 11 -e 'consortium' -e 'X ' -e 'X/MIT'"

check_presence ZPL-1.1 " -e 1.1" " -e 2"
Expand Down
28 changes: 27 additions & 1 deletion var/ambiguities.json
Expand Up @@ -20,6 +20,14 @@
],
"problem": "This license has different version (1.0, 1.1, and 2.0). Without a version number it is not possible to determine which of the versions is meant."
},
"Apple Public Source License": {
"aliases": [
"License :: OSI Approved :: Apple Public Source License",
"Apple Public Source License",
"Apple Public Source License (APSL)"
],
"problem": "This license has different version (1.0, 1.1, 1.2 and 2.0). Without a version number it is not possible to determine which of the versions is meant."
},
"Artistic License": {
"aliases": [
"License :: OSI Approved :: Artistic License",
Expand Down Expand Up @@ -61,6 +69,12 @@
],
"problem": "There are couple of versions of the CPL license (0.5 and 1). Without the version/variant of the license it is not possible to determine which of the versions is meant."
},
"Eiffel Forum License": {
"aliases": [
"License :: OSI Approved :: Eiffel Forum License"
],
"problem": "There are two versions of the EFL license (1.0 and 2.0). Without the version/variant of the license it is not possible to determine which of the versions is meant."
},
"GCC Runtime Library exception": {
"aliases": [
"GCC exception",
Expand Down Expand Up @@ -91,7 +105,8 @@
"License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)",
"GNU Lesser General Public License v2 (LGPLv2)",
"LGPLv2 or later",
"LGPLv2"
"LGPLv2",
"LGPL-2"
],
"problem": "This license has different versions (2.0, 2.1 and 3.0). Without a version number it is not possible to determine which of the versions is meant."
},
Expand All @@ -102,6 +117,17 @@
"MPLv1"
],
"problem": "This license has different version (1.0, 1.1 and 2.0). Without a version number clearly distinguishing the versions it is not possible to determine which of the versions is meant."
},
"Python Software Foundation License": {
"aliases": [
"PSF",
"PSFL",
"Python",
"Python Software Foundation License",
"PSF LICENSE AGREEMENT",
"PSF License"
],
"problem": "This license has different version (2.0 and 2.0.1). Without a version number clearly distinguishing the versions it is not possible to determine which of the versions is meant."
}
}
}

0 comments on commit 479f93b

Please sign in to comment.