Skip to content

Commit

Permalink
New question: LicenseCopyrightHolders
Browse files Browse the repository at this point in the history
Decouple the copyright holders from the AuthorsName.

Closes #427
  • Loading branch information
abelsiqueira committed Sep 5, 2024
1 parent ab4d6b9 commit d9e9ade
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning].
- New question: `JuliaMinCIVersion`, which defines which Julia version to use in the CI (#400)
- New question: `AutoIncludeTests`, that auto-includes all `test-*.jl` files in `runtests.jl` (#261)
- New question: `CodeOfConductContact`, the contact person/entity for the `CODE_OF_CONDUCT.md` file (#426)
- New question: `LicenseCopyrightHolders`, the copyright holders listed in the LICENSE (#427)

### Changed

Expand Down
6 changes: 6 additions & 0 deletions copier/essential.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ License:
- MPL-2.0
default: MIT

LicenseCopyrightHolders:
type: str
help: License Copyright Holders (Added in front of "Copyright (c) " notices, when applicable)
default: "{{ AuthorName }}"
validator: "{% if LicenseCopyrightHolders | length == 0%}Can't be empty{% endif %}"

Indentation:
type: int
help: Indentation length (Used in .JuliaFormatter and other configuration files of formatters and linters if you add them)
Expand Down
1 change: 1 addition & 0 deletions src/debug/Data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const strategy_minimum = merge(
Dict(
"JuliaMinVersion" => "1.6",
"License" => "MIT",
"LicenseCopyrightHolders" => "Bestie Template",
"Indentation" => 4,
"AnswerStrategy" => "minimum",
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2024 {{ AuthorName }}
Copyright 2024 {{ LicenseCopyrightHolders }}

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

{{ PackageName }}.jl Copyright (C) 2024 {{ AuthorName }}
{{ PackageName }}.jl Copyright (C) 2024 {{ LicenseCopyrightHolders }}

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
Expand All @@ -651,7 +651,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

{{ PackageName }}.jl Copyright (C) 2024 {{ AuthorName }}
{{ PackageName }}.jl Copyright (C) 2024 {{ LicenseCopyrightHolders }}
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
2 changes: 1 addition & 1 deletion template/{% if License == 'MIT' %}LICENSE{% endif %}.jinja
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 {{ AuthorName }}
Copyright (c) 2024 {{ LicenseCopyrightHolders }}

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit d9e9ade

Please sign in to comment.