Skip to content

Commit 4f1dd8f

Browse files
Add project/LICENSE.j2 template
1 parent fb74945 commit 4f1dd8f

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

project/LICENSE.j2

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{% if copyright_license == 'Unlicense' -%}
2+
This is free and unencumbered software released into the public domain.
3+
4+
Anyone is free to copy, modify, publish, use, compile, sell, or
5+
distribute this software, either in source code form or as a compiled
6+
binary, for any purpose, commercial or non-commercial, and by any
7+
means.
8+
9+
In jurisdictions that recognize copyright laws, the author or authors
10+
of this software dedicate any and all copyright interest in the
11+
software to the public domain. We make this dedication for the benefit
12+
of the public at large and to the detriment of our heirs and
13+
successors. We intend this dedication to be an overt act of
14+
relinquishment in perpetuity of all present and future rights to this
15+
software under copyright law.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23+
OTHER DEALINGS IN THE SOFTWARE.
24+
25+
For more information, please refer to <https://unlicense.org>
26+
{% elif copyright_license == 'MIT' -%}
27+
MIT License
28+
29+
Copyright (c) {{ copyright_date }} {{ copyright_holder }}
30+
31+
Permission is hereby granted, free of charge, to any person obtaining a copy
32+
of this software and associated documentation files (the "Software"), to deal
33+
in the Software without restriction, including without limitation the rights
34+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35+
copies of the Software, and to permit persons to whom the Software is
36+
furnished to do so, subject to the following conditions:
37+
38+
The above copyright notice and this permission notice shall be included in all
39+
copies or substantial portions of the Software.
40+
41+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
47+
SOFTWARE.
48+
{% elif copyright_license == 'AGPL-3.0' -%}
49+
GNU AFFERO GENERAL PUBLIC LICENSE
50+
Version 3, 19 November 2007
51+
52+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
53+
Everyone is permitted to copy and distribute verbatim copies
54+
of this license document, but changing it is not allowed.
55+
56+
Preamble
57+
58+
The GNU Affero General Public License is a free, copyleft license for
59+
software and other kinds of works, specifically designed to ensure
60+
cooperation with the community in the case of network server software.
61+
62+
[Full license text - see complete license at https://www.gnu.org/licenses/agpl-3.0.txt]
63+
{% elif copyright_license == 'Apache-2.0' -%}
64+
Apache License
65+
Version 2.0, January 2004
66+
http://www.apache.org/licenses/
67+
68+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
69+
70+
1. Definitions.
71+
72+
"License" shall mean the terms and conditions for use, reproduction,
73+
and distribution as defined by Sections 1 through 9 of this document.
74+
75+
[Full license text - see complete license at http://www.apache.org/licenses/LICENSE-2.0.txt]
76+
{% else -%}
77+
License: {{ copyright_license }}
78+
79+
Copyright (c) {{ copyright_date }} {{ copyright_holder }}
80+
81+
Please refer to the appropriate license file or website for the complete license text.
82+
{% endif -%}

0 commit comments

Comments
 (0)