Repository: ansible-community/ansible-pygments (language: python)

Issue:
Figure out the license
It's currently messed up a bit:
1) The lexer seems to be BSD
2) ~Sphinx integration code says both GPL and BSD in the same module (comment vs var) but I don't see any reason for it to be different from the lexer because it is a thing that is supposed to be linked in various projects so I'd just keep BSD~ This is not relevant anymore.
3) The readme and the meta says GPL
4) The Python dist must contain the license file which is not only not bundled but is also missing from the repo

@felixfontein Let's figure out what we want to do with this and make it consistent.


Discussion / hints:
I'm happy to use BSD for this project. All GPL references are mainly from when this was a part of antsibull. The few non-BSD lines in this repo were all written by me (IIRC) and I'm happy to relicense them :)

Does BSD sound good to you?

Fix patch:
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..f15276a
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,24 @@
+_Copyright 2019-2021 by Ansible Community._
+_Parts copyrighted 2006-2017 by the Pygments team, see AUTHORS at
+https://github.com/pygments/pygments/blob/3e1b79c82d2df318f63f24984d875fd2a3400808/AUTHORS._
+_Parts copyrighted by Norman Richards (original author of JSON lexer)._
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+   list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/README.md b/README.md
index 6d2d6c8..c6cb6e5 100644
--- a/README.md
+++ b/README.md
@@ -11,8 +11,7 @@ The lexer is registered globally under the name `ansible-output`.
 It also provides a [Pygments] style for tools needing to highlight
 code snippets.
 
-Unless otherwise noted in the code, it is licensed under the terms
-of the GNU General Public License v3 or, at your option, later.
+The code is licensed under the terms of the [BSD 2-Clause license].
 
 ## Using the lexer in [Sphinx]
 
@@ -44,3 +43,4 @@ pygments_style = 'ansible'
 [Ansible]: https://www.ansible.com/?utm_medium=github-or-pypi&utm_source=ansible-pygments--readme
 [Pygments]: https://pygments.org
 [Sphinx]: https://www.sphinx-doc.org
+[BSD 2-Clause license]: https://opensource.org/licenses/BSD-2-Clause
diff --git a/pyproject.toml b/pyproject.toml
index a601674..a94e53d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -7,7 +7,7 @@ name = "ansible-pygments"
 version = "0.1.0"
 description = "Tools for building the Ansible Distribution"
 authors = ["Felix Fontein <felix@fontein.de>"]
-license = "GPL-3.0-or-later"
+license = "BSD-2-Clause"
 readme = "README.md"
 repository = "https://github.com/ansible-community/ansible-pygments"
 packages = [
diff --git a/src/ansible_pygments/lexers.py b/src/ansible_pygments/lexers.py
index 768425f..f3cc350 100644
--- a/src/ansible_pygments/lexers.py
+++ b/src/ansible_pygments/lexers.py
@@ -1,3 +1,5 @@
+# Copyright 2019-2021 by Felix Fontein <felix@fontein.de>
+#
 # Copyright 2006-2017 by the Pygments team, see AUTHORS at
 # https://github.com/pygments/pygments/blob/3e1b79c82d2df318f63f24984d875fd2a3400808/AUTHORS
 # Copyright by Norman Richards (original author of JSON lexer).


Test patch:
diff --git a/tests/test_lexer.py b/tests/test_lexer.py
index 204fcc7..fdfd06f 100644
--- a/tests/test_lexer.py
+++ b/tests/test_lexer.py
@@ -1,3 +1,7 @@
+# Author: Felix Fontein <felix@fontein.de>
+# License: BSD-2-Clause
+# Copyright: Felix Fontein <felix@fontein.de>, 2021
+
 import pytest
 
 from pygments import highlight