summaryrefslogtreecommitdiff
path: root/lib/python/qmk/constants.py
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-11-11 20:50:33 +1100
committerGitHub <noreply@github.com>2023-11-11 20:50:33 +1100
commit211fbbd16d441343d8ce2cdba4acd853762db117 (patch)
treef08979edfbf04c9a50a08f49454c370aa5595f11 /lib/python/qmk/constants.py
parent6876fbe51d02873ae4b63e555ac5cb0a7c36ee98 (diff)
Add `qmk license-check` developer-level CLI command. (#22075)
Diffstat (limited to 'lib/python/qmk/constants.py')
-rw-r--r--lib/python/qmk/constants.py123
1 files changed, 123 insertions, 0 deletions
diff --git a/lib/python/qmk/constants.py b/lib/python/qmk/constants.py
index 97bd84aa23..1967441fc8 100644
--- a/lib/python/qmk/constants.py
+++ b/lib/python/qmk/constants.py
@@ -189,3 +189,126 @@ GENERATED_HEADER_SH_LIKE = '''\
#
################################################################################
'''
+
+LICENSE_TEXTS = [
+ (
+ 'GPL-2.0-or-later', [
+ """\
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version 2
+ of the License, or (at your option) any later version.
+ """, """\
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version 2
+ of the License, or any later version.
+ """
+ ]
+ ),
+ ('GPL-2.0-only', ["""\
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; version 2.
+ """]),
+ (
+ 'GPL-3.0-or-later', [
+ """\
+ This program is free software: you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation, either version 3 of
+ the License, or (at your option) any later version.
+ """, """\
+ This program is free software: you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation, either version 3 of
+ the License, or any later version.
+ """
+ ]
+ ),
+ ('GPL-3.0-only', ["""\
+ This program is free software: you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation, version 3.
+ """]),
+ (
+ 'LGPL-2.1-or-later', [
+ """\
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License
+ as published by the Free Software Foundation; either version 2.1
+ of the License, or (at your option) any later version.
+ """, """\
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License
+ as published by the Free Software Foundation; either version 2.1
+ of the License, or any later version.
+ """, """\
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License
+ as published by the Free Software Foundation; either version 2.1
+ of the License, or (at your option) any later version.
+ """, """\
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License
+ as published by the Free Software Foundation; either version 2.1
+ of the License, or any later version.
+ """
+ ]
+ ),
+ (
+ 'LGPL-2.1-only', [
+ """\
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; version 2.1.
+ """, """\
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; version 2.1.
+ """
+ ]
+ ),
+ (
+ 'LGPL-3.0-or-later', [
+ """\
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License
+ as published by the Free Software Foundation; either version 3
+ of the License, or (at your option) any later version.
+ """, """\
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License
+ as published by the Free Software Foundation; either version 3
+ of the License, or any later version.
+ """, """\
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License
+ as published by the Free Software Foundation; either version 3
+ of the License, or (at your option) any later version.
+ """, """\
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License
+ as published by the Free Software Foundation; either version 3
+ of the License, or any later version.
+ """
+ ]
+ ),
+ (
+ 'LGPL-3.0-only', [
+ """\
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; version 3.
+ """, """\
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; version 3.
+ """
+ ]
+ ),
+ ('Apache-2.0', ["""\
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ """]),
+]