Skip to content

Commit

Permalink
✨ Add options for more licenses. Closes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
sgraaf committed Oct 17, 2023
1 parent 98a01f7 commit ece5551
Show file tree
Hide file tree
Showing 9 changed files with 1,110 additions and 5 deletions.
10 changes: 9 additions & 1 deletion cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
"github_username": "",
"version": "0.1.0",
"copyright_year": "{% now 'utc', '%Y' %}",
"license": ["MIT", "Apache-2.0", "GPL-3.0"],
"license": [
"mit",
"gpl-3.0",
"apache-2.0",
"gpl-2.0",
"bsd-3-clause",
"agpl-3.0",
"unlicense"
],
"development_status": [
"Development Status :: 1 - Planning",
"Development Status :: 2 - Pre-Alpha",
Expand Down
16 changes: 12 additions & 4 deletions {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@ license = {file = "LICENSE"}
keywords = []
classifiers = [
"{{cookiecutter.development_status}}",
{% if cookiecutter.license == 'MIT' -%}
{% if cookiecutter.license == 'mit' -%}
"License :: OSI Approved :: MIT License",
{% elif cookiecutter.license == 'Apache-2.0' -%}
"License :: OSI Approved :: Apache Software License",
{% elif cookiecutter.license == 'GPL-3.0' -%}
{% elif cookiecutter.license == 'gpl-3.0' -%}
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
{% elif cookiecutter.license == 'apache-2.0' -%}
"License :: OSI Approved :: Apache Software License",
{% elif cookiecutter.license == 'gpl-2.0' -%}
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
{% elif cookiecutter.license == 'bsd-3-clause' -%}
"License :: OSI Approved :: BSD License",
{% elif cookiecutter.license == 'agpl-3.0' -%}
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
{% elif cookiecutter.license == 'unlicense' -%}
"License :: OSI Approved :: The Unlicense (Unlicense)",
{% endif -%}
"Programming Language :: Python",
"Programming Language :: Python :: 3",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
BSD 3-Clause License

Copyright (c) {{ cookiecutter.copyright_year }}, {{ cookiecutter.author }}

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.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

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 HOLDER 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.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>

1 comment on commit ece5551

@github-actions
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.