Skip to content

Commit bfb33bd

Browse files
authored
Merge pull request #629 from NLeSC/618_copyright_owner
618-add copyright owner to licenses
2 parents 2053c73 + e5ad010 commit bfb33bd

7 files changed

+15
-12
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
### Changed
1010

11+
* copyright owner is asked in all profiles [#629](https://github.com/NLeSC/python-template/pull/629)
12+
* license files includes year and copyright owner information [#629](https://github.com/NLeSC/python-template/pull/629)
13+
1114
### Removed
1215

1316
* Remove pyproject.toml and CITATION.cff from the list of files that are not updated if they exist [#655](https://github.com/NLeSC/python-template/pull/655)

copier/questions/essential.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,11 @@ license:
4343
value: GNULesserv3
4444
Other (add your own license):
4545
value: Other
46+
copyright_holder:
47+
type: str
48+
default: "{{ full_name }}"
49+
help: "Who is the copyright holder (default: full name)?"
50+
validator: >-
51+
{% if not copyright_holder %}
52+
This field cannot be empty as it will be used in content of the generated files.
53+
{% endif %}

copier/questions/package_details.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ email:
3535
{% if not (email | regex_search('([A-Za-z0-9]+[.-_])*[A-Za-z0-9]+@[A-Za-z0-9-]+(\.[A-Z|a-z]{2,})+')) %}
3636
Please enter a valid email address
3737
{% endif %}
38-
copyright_holder:
39-
type: str
40-
default: "{{ full_name }}"
41-
help: "Who is the copyright holder (default: full name)?"
42-
validator: >-
43-
{% if not copyright_holder %}
44-
This field cannot be empty as it will be used in content of the generated files.
45-
{% endif %}
4638
4739
4840
# computed fields

template/{% if license == 'Apachev2' %}LICENSE{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyy] [name of copyright owner]
189+
Copyright {{ '%Y' | strftime }} {{ copyright_holder }}
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

template/NOTICE.jinja renamed to template/{% if license == 'Apachev2' %}NOTICE{% endif %}.jinja

File renamed without changes.

template/{% if license == 'GNUv3' %}LICENSE{% endif %}.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ state the exclusion of warranty; and each file should have at least
632632
the "copyright" line and a pointer to where the full notice is found.
633633

634634
<one line to give the program's name and a brief idea of what it does.>
635-
Copyright (C) <year> <name of author>
635+
Copyright (C) {{ '%Y' | strftime }} {{ copyright_holder }}
636636
637637
This program is free software: you can redistribute it and/or modify
638638
it under the terms of the GNU General Public License as published by
@@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
652652
If the program does terminal interaction, make it output a short
653653
notice like this when it starts in an interactive mode:
654654
655-
<program> Copyright (C) <year> <name of author>
655+
<program> Copyright (C) {{ '%Y' | strftime }} {{ copyright_holder }}
656656
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657657
This is free software, and you are welcome to redistribute it
658658
under certain conditions; type `show c' for details.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Add your own license
1+
Copyright (C) {{ '%Y' | strftime }} {{ copyright_holder }}

0 commit comments

Comments
 (0)