From 739a4915de7190ed27e895d9542efe3f919958bc Mon Sep 17 00:00:00 2001 From: Tobias Kunze Date: Wed, 4 Oct 2023 09:52:42 +0200 Subject: [PATCH] Just use current year (#16) --- README.rst | 1 - cookiecutter.json | 1 - {{cookiecutter.repo_name}}/LICENSE | 2 +- {{cookiecutter.repo_name}}/README.rst | 4 ++-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index fa6d2ec..da31ad4 100644 --- a/README.rst +++ b/README.rst @@ -23,7 +23,6 @@ project folder created for you:: human_name [The pretix super plugin]: Super Plugin author_name [Your name]: J Random Developer author_email [Your email]: jrandom@example.org - year [Current year]: 2017 short_description [Short description]: The best plugin Select license: 1 - Apache diff --git a/cookiecutter.json b/cookiecutter.json index 443552e..9a27f37 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -5,7 +5,6 @@ "human_name": "Superplugin", "author_name": "Your name", "author_email": "your-email@example.org", - "year": "Current year", "short_description": "Short description", "license": ["Apache", "pretix Enterprise"], "min_basever": "2.7.0", diff --git a/{{cookiecutter.repo_name}}/LICENSE b/{{cookiecutter.repo_name}}/LICENSE index 7bb5f68..8a79469 100644 --- a/{{cookiecutter.repo_name}}/LICENSE +++ b/{{cookiecutter.repo_name}}/LICENSE @@ -1,5 +1,5 @@ {% if cookiecutter.license == "Apache" %} -Copyright {{cookiecutter.year}} {{cookiecutter.author_name}} +Copyright {% now 'utc', '%Y' %} {{cookiecutter.author_name}} Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/{{cookiecutter.repo_name}}/README.rst b/{{cookiecutter.repo_name}}/README.rst index 074678d..e856c30 100644 --- a/{{cookiecutter.repo_name}}/README.rst +++ b/{{cookiecutter.repo_name}}/README.rst @@ -43,11 +43,11 @@ License ------- {% if cookiecutter.license == "Apache" %} -Copyright {{cookiecutter.year}} {{cookiecutter.author_name}} +Copyright {% now 'utc', '%Y' %} {{cookiecutter.author_name}} Released under the terms of the Apache License 2.0 {% elif cookiecutter.license == "pretix Enterprise" %} -Copyright {{cookiecutter.year}} Raphael Michel +Copyright {% now 'utc', '%Y' %} Raphael Michel Released under the terms of the proprietary pretix Enterprise license. {% endif %}