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

Add GNU LGPL licenses. #191

Merged
merged 2 commits into from
Mar 31, 2020
Merged

Add GNU LGPL licenses. #191

merged 2 commits into from
Mar 31, 2020

Conversation

riccardomurri
Copy link
Contributor

@riccardomurri riccardomurri commented Mar 30, 2020

This commit adds support for GNU LGPL v3 (or later), or v2 (or later)
to the license options.

Note that GNU LGPLv3 is an add-on to the GNU GPLv3, so the LICENSE file
includes both licenses in this case.

GNU licensing guidelines (see: https://www.gnu.org/licenses/gpl-howto.html)
recommend placing a copyright and license notice at the top of every
file; to keep consistency with how the other licenses are implemented
in cookiecutter-pylibrary, we put such a notice at the top of the
LICENSE file only.

This commit adds support for GNU LGPL v3 (or later), or v2 (or later)
to the license options.

Note that GNU GPLv3 is an add-on to the GNU GPLv3, so the LICENSE file
includes both licenses in this case.

GNU licensing guidelines (see: https://www.gnu.org/licenses/gpl-howto.html)
recommend placing a copyright and license notice at the top of every
file; to keep consistency with how the other licenses are implemented
in `cookiecutter-pylibrary`, we put such a notice at the top of the
`LICENSE` file only.
@riccardomurri
Copy link
Contributor Author

Note: this adds support for the GNU Lesser GPL, so it's not the same as #89

@@ -103,7 +103,12 @@ def _unavailable(self, e):
"BSD 3-Clause License": "BSD-3-Clause",
"MIT license": "MIT",
"ISC license": "ISC",
"Apache Software License 2.0": "Apache-2.0"}[cookiecutter.license]
"Apache Software License 2.0": "Apache-2.0",
"GNU Lesser General Public License v3 or later (LGPLv3+)": "GNU Lesser General Public License v3 or later (LGPLv3+)",
Copy link
Owner

Choose a reason for hiding this comment

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

This mapping here exists to map the displayed license (what the user sees when cookiecutter is used) to a a spdx complying identifier. See https://spdx.org/licenses/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the explanation! Fixed in c783640

Copy link
Owner

Choose a reason for hiding this comment

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

Also, forgot to mention, it needs to be spdx because tidelift and I suspect other systems too use that standard to get license metadata (as opposed to the license classifiers that are already standardized in python, sadly).

@ionelmc ionelmc merged commit 15505b1 into ionelmc:master Mar 31, 2020
@riccardomurri riccardomurri deleted the lgpl branch March 31, 2020 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants