Skip to content

Commit 5bf8d6d

Browse files
committed
✨ Use SPDX license IDs and add BSD-2-Clause, ISC and -or-later options
1 parent 4cd95b4 commit 5bf8d6d

13 files changed

Lines changed: 1910 additions & 38 deletions

‎.github/workflows/input-for-demo.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ steven@vandegraaf.xyz
77
sgraaf
88

99

10-
6
10+
1
1111
4
1212

1313
2

‎cookiecutter.json‎

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,21 @@
99
"version": "{% now 'utc', '%Y' %}.1.0",
1010
"copyright_year": "{% now 'utc', '%Y' %}",
1111
"license": [
12-
"agpl-3.0",
13-
"gpl-3.0",
14-
"lgpl-3.0",
15-
"mpl-2.0",
16-
"apache-2.0",
17-
"mit",
18-
"unlicense",
19-
"bsd-3-clause",
20-
"gpl-2.0"
12+
"MIT",
13+
"Apache-2.0",
14+
"GPL-3.0-only",
15+
"AGPL-3.0-only",
16+
"BSD-3-Clause",
17+
"GPL-3.0-or-later",
18+
"LGPL-3.0-only",
19+
"AGPL-3.0-or-later",
20+
"GPL-2.0-only",
21+
"BSD-2-Clause",
22+
"MPL-2.0",
23+
"LGPL-3.0-or-later",
24+
"GPL-2.0-or-later",
25+
"ISC",
26+
"Unlicense"
2127
],
2228
"development_status": [
2329
"Development Status :: 1 - Planning",
@@ -48,15 +54,21 @@
4854
"copyright_year": "The copyright year of your package",
4955
"license": {
5056
"__prompt__": "Choose a license for your package",
51-
"agpl-3.0": "GNU Affero General Public License v3.0",
52-
"gpl-3.0": "GNU General Public License v3.0",
53-
"lgpl-3.0": "GNU Lesser General Public License v3.0",
54-
"mpl-2.0": "Mozilla Public License 2.0",
55-
"apache-2.0": "Apache license 2.0",
56-
"mit": "MIT",
57-
"unlicense": "The Unlicense",
58-
"bsd-3-clause": "BSD 3-clause \"New\" or \"Revised\" license",
59-
"gpl-2.0": "GNU General Public License v2.0"
57+
"MIT": "MIT License",
58+
"Apache-2.0": "Apache License 2.0",
59+
"GPL-3.0-only": "GNU General Public License v3.0 only",
60+
"AGPL-3.0-only": "GNU Affero General Public License v3.0 only",
61+
"BSD-3-Clause": "BSD 3-Clause \"New\" or \"Revised\" License",
62+
"GPL-3.0-or-later": "GNU General Public License v3.0 or later",
63+
"LGPL-3.0-only": "GNU Lesser General Public License v3.0 only",
64+
"AGPL-3.0-or-later": "GNU Affero General Public License v3.0 or later",
65+
"GPL-2.0-only": "GNU General Public License v2.0 only",
66+
"BSD-2-Clause": "BSD 2-Clause \"Simplified\" License",
67+
"MPL-2.0": "Mozilla Public License 2.0",
68+
"LGPL-3.0-or-later": "GNU Lesser General Public License v3.0 or later",
69+
"GPL-2.0-or-later": "GNU General Public License v2.0 or later",
70+
"ISC": "ISC License",
71+
"Unlicense": "The Unlicense"
6072
},
6173
"development_status": {
6274
"__prompt__": "Choose a development status for your package",

‎{{ cookiecutter.project_name }}/pyproject.toml‎

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,7 @@ version = "{{ cookiecutter.version }}"
88
description = "{{ cookiecutter.short_description }}"
99
authors = [{name = "{{ cookiecutter.author }}", email = "{{ cookiecutter.email }}"}]
1010
readme = "README.md"
11-
{% if cookiecutter.license == 'agpl-3.0' -%}
12-
license = "AGPL-3.0-only"
13-
{% elif cookiecutter.license == 'gpl-3.0' -%}
14-
license = "GPL-3.0-only"
15-
{% elif cookiecutter.license == 'lgpl-3.0' -%}
16-
license = "LGPL-3.0-only"
17-
{% elif cookiecutter.license == 'mpl-2.0' -%}
18-
license = "MPL-2.0"
19-
{% elif cookiecutter.license == 'apache-2.0' -%}
20-
license = "Apache-2.0"
21-
{% elif cookiecutter.license == 'mit' -%}
22-
license = "MIT"
23-
{% elif cookiecutter.license == 'unlicense' -%}
24-
license = "Unlicense"
25-
{% elif cookiecutter.license == 'bsd-3-clause' -%}
26-
license = "BSD-3-Clause"
27-
{% elif cookiecutter.license == 'gpl-2.0' -%}
28-
license = "GPL-2.0-only"
29-
{% endif -%}
11+
license = "{{ cookiecutter.license }}"
3012
license-files = ["LICENSE"]
3113
keywords = []
3214
classifiers = [

{{ cookiecutter.project_name }}/{% if cookiecutter.license == 'agpl-3.0' -%} LICENSE {%- endif %} renamed to {{ cookiecutter.project_name }}/{% if cookiecutter.license == 'AGPL-3.0-only' -%} LICENSE {%- endif %}

File renamed without changes.

0 commit comments

Comments
 (0)