Skip to content

Commit 4dd5344

Browse files
committed
πŸ“„ license: add support for No License
1 parent 3a43b9d commit 4dd5344

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

β€Žcopier.yamlβ€Ž

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,20 @@ copyright_license:
7878
help: Choose the project's license (e.g. "MIT", "GPL-3.0").
7979
default: MIT License
8080
choices:
81-
- Apache Software License
82-
- BSD 3-clause License
83-
- Boost Software License 1.0 (BSL-1.0)
84-
- GNU General Public License v3 (GPLv3)
85-
- ISC License
86-
- MIT License
87-
- The Unlicense (Unlicense)
81+
- No License
82+
- Apache Software License
83+
- BSD 3-clause License
84+
- Boost Software License 1.0 (BSL-1.0)
85+
- GNU General Public License v3 (GPLv3)
86+
- ISC License
87+
- MIT License
88+
- The Unlicense (Unlicense)
8889

8990
copyright_holder:
9091
type: str
9192
help: Name or organization holding the copyright
9293
default: "{{ author_fullname }}"
94+
when: "{{ copyright_license != 'No License' }}"
9395

9496
copyright_year:
9597
when: false

β€Žtemplate/pyproject.toml.jinjaβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ version = "0.0.1"
88
description = "{{ project_description }}"
99
authors = [{ name = "{{ author_fullname }}", email = "{{ author_email }}" }]
1010
readme = "README.md"
11+
{%- if copyright_license != 'No License' %}
1112
license = { file = "LICENSE" }
13+
{%- endif %}
1214
keywords = [
1315
{%- set keywords = (project_keywords.split(",") | map("trim") | list) %}
1416
{%- for keyword in keywords | sort %}

template/LICENSE.jinja renamed to template/{% if copyright_license != 'No License' %}LICENSE{% endif %}.jinja

File renamed without changes.

0 commit comments

Comments
Β (0)