Skip to content

Commit d21c1d5

Browse files
authored
Merge pull request #617 from NLeSC/570_license_not_created
570-fix license file generation
2 parents 0d9a3e3 + a43fa76 commit d21c1d5

10 files changed

Lines changed: 17 additions & 9 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Make online documentation optional [#476](https://github.com/NLeSC/python-template/pull/476)
1818

1919
### Changed
20+
* added value field to license options [#617](https://github.com/NLeSC/python-template/pull/617)
2021
* fix filename typo of githooks [#611](https://github.com/NLeSC/python-template/pull/609)
2122
* next_steps.md is shown as a copier message [#609](https://github.com/NLeSC/python-template/pull/609)
2223
* Change the default profile to 'recommended' [#598](https://github.com/NLeSC/python-template/pull/598)

copier/questions/essential.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,18 @@ full_name:
2727
license:
2828
type: str
2929
choices:
30-
- "Apache-2.0"
31-
- "MIT license"
32-
- "BSD license"
33-
- "ISC license"
34-
- "GNU General Public License v3 or later"
35-
- "GNU Lesser General Public License v3 or later"
36-
- "Not open source"
37-
default: "Apache-2.0"
30+
Apache License, Version 2.0:
31+
value: Apachev2
32+
MIT license:
33+
value: MIT
34+
BSD license:
35+
value: BSD
36+
ISC license:
37+
value: ISC
38+
GNU General Public License v3 or later:
39+
value: GNUv3
40+
GNU Lesser General Public License v3 or later:
41+
value: GNULesserv3
42+
Other (add your own license):
43+
value: Other
44+
default: "Apachev2"

template/{% if license == 'Apache-2.0' %}LICENSE{% endif %}.jinja renamed to template/{% if license == 'Apachev2' %}LICENSE{% endif %}.jinja

File renamed without changes.

template/{% if license == 'BSD license' %}LICENSE{% endif %}.jinja renamed to template/{% if license == 'BSD' %}LICENSE{% endif %}.jinja

File renamed without changes.

template/{% if license == 'GNU Lesser General Public License v3 or later' %}LICENSE{% endif %}.jinja renamed to template/{% if license == 'GNULesserv3' %}LICENSE{% endif %}.jinja

File renamed without changes.

template/{% if license == 'GNU General Public License v3 or later' %}LICENSE{% endif %}.jinja renamed to template/{% if license == 'GNUv3' %}LICENSE{% endif %}.jinja

File renamed without changes.

template/{% if license == 'ISC license' %}LICENSE{% endif %}.jinja renamed to template/{% if license == 'ISC' %}LICENSE{% endif %}.jinja

File renamed without changes.

template/{% if license == 'MIT licence' %}LICENSE{% endif %}.jinja renamed to template/{% if license == 'MIT' %}LICENSE{% endif %}.jinja

File renamed without changes.

template/{% if license == 'Not open source' %}LICENSE{% endif %}.jinja

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add your own license

0 commit comments

Comments
 (0)