clean up licenses

This commit is contained in:
Histausse 2023-05-16 12:53:02 +02:00
parent d7ebe08091
commit f028d9ad2e
3 changed files with 22 additions and 20 deletions

View file

@ -1,6 +1,5 @@
# TODO: # TODO:
- add AGPL
- add CI - add CI
- add flake - add flake
- use bool value for `generate_gitea_project` when the feature is available - use bool value for `generate_gitea_project` when the feature is available

View file

@ -10,6 +10,6 @@
"generate_gitea_project": [ true, false ], "generate_gitea_project": [ true, false ],
"git_origin": "{{ cookiecutter.gitea_url.replace('https://', 'gitea@').replace('http://', 'gitea') }}:{{ cookiecutter.git_user }}/{{ cookiecutter.project_slug }}.git", "git_origin": "{{ cookiecutter.gitea_url.replace('https://', 'gitea@').replace('http://', 'gitea') }}:{{ cookiecutter.git_user }}/{{ cookiecutter.project_slug }}.git",
"version": "0.1.0", "version": "0.1.0",
"open_source_license": ["GNU General Public License v3", "MIT license", "BSD license", "ISC license", "Apache Software License 2.0", "Proprietary"], "open_source_license": ["AGPL-3.0-only", "GPL-3.0-only", "MIT", "BSD-3-Clause", "ISC", "Apache-2.0", "Proprietary"],
"python_min_version": "3.10" "python_min_version": "3.10"
} }

View file

@ -1,4 +1,4 @@
{% if cookiecutter.open_source_license == 'MIT license' -%} {% if cookiecutter.open_source_license == 'MIT' -%}
MIT License MIT License
Copyright (c) {% now 'local', '%Y' %}, {{ cookiecutter.full_name }} Copyright (c) {% now 'local', '%Y' %}, {{ cookiecutter.full_name }}
@ -20,7 +20,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 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 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
{% elif cookiecutter.open_source_license == 'BSD license' %} {% elif cookiecutter.open_source_license == 'BSD-3-Clause' %}
BSD License BSD License
@ -51,7 +51,7 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 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 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE. OF THE POSSIBILITY OF SUCH DAMAGE.
{% elif cookiecutter.open_source_license == 'ISC license' -%} {% elif cookiecutter.open_source_license == 'ISC' -%}
ISC License ISC License
Copyright (c) {% now 'local', '%Y' %}, {{ cookiecutter.full_name }} Copyright (c) {% now 'local', '%Y' %}, {{ cookiecutter.full_name }}
@ -59,7 +59,7 @@ Copyright (c) {% now 'local', '%Y' %}, {{ cookiecutter.full_name }}
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
{% elif cookiecutter.open_source_license == 'Apache Software License 2.0' -%} {% elif cookiecutter.open_source_license == 'Apache-2.0' -%}
Apache Software License 2.0 Apache Software License 2.0
Copyright (c) {% now 'local', '%Y' %}, {{ cookiecutter.full_name }} Copyright (c) {% now 'local', '%Y' %}, {{ cookiecutter.full_name }}
@ -75,7 +75,7 @@ distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
{% elif cookiecutter.open_source_license == 'GNU General Public License v3' -%} {% elif cookiecutter.open_source_license == 'GPL-3.0-only' -%}
GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007 Version 3, 29 June 2007
@ -84,8 +84,7 @@ GNU GENERAL PUBLIC LICENSE
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or the Free Software Foundation, version 3.
(at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
@ -94,18 +93,22 @@ GNU GENERAL PUBLIC LICENSE
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
{% elif cookiecutter.open_source_license == 'AGPL-3.0-only' %}
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Also add information on how to contact you by electronic and paper mail. {{ cookiecutter.project_short_description }}
Copyright (C) {% now 'local', '%Y' %} {{ cookiecutter.full_name }}
You should also get your employer (if you work as a programmer) or school, This program is free software: you can redistribute it and/or modify
if any, to sign a "copyright disclaimer" for the program, if necessary. it under the terms of the GNU Affero General Public License as
For more information on this, and how to apply and follow the GNU GPL, see published by the Free Software Foundation, version 3.
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program This program is distributed in the hope that it will be useful,
into proprietary programs. If your program is a subroutine library, you but WITHOUT ANY WARRANTY; without even the implied warranty of
may consider it more useful to permit linking proprietary applications with MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
the library. If this is what you want to do, use the GNU Lesser General GNU Affero General Public License for more details.
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>. You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
{% endif %} {% endif %}