From 52119e38d1ca9c368772a4c8f65631867630fa2c Mon Sep 17 00:00:00 2001 From: Peter Bull Date: Sat, 28 Jan 2017 11:33:01 -0500 Subject: [PATCH] Update year to be automatic Closes #60 --- cookiecutter.json | 1 - {{ cookiecutter.repo_name }}/LICENSE | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cookiecutter.json b/cookiecutter.json index 5ad9f05..2595c79 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -3,7 +3,6 @@ "repo_name": "{{ cookiecutter.project_name.lower().replace(' ', '_') }}", "author_name": "Your name (or your organization/company/team)", "description": "A short description of the project.", - "year": "2016", "open_source_license": ["MIT", "BSD", "Not open source"], "s3_bucket": "[OPTIONAL] your-bucket-for-syncing-data (do not include 's3://')", "python_interpreter": ["python", "python3"] diff --git a/{{ cookiecutter.repo_name }}/LICENSE b/{{ cookiecutter.repo_name }}/LICENSE index e6d8e81..413f8af 100644 --- a/{{ cookiecutter.repo_name }}/LICENSE +++ b/{{ cookiecutter.repo_name }}/LICENSE @@ -1,6 +1,6 @@ {% if cookiecutter.open_source_license == 'MIT' %} The MIT License (MIT) -Copyright (c) {{ cookiecutter.year }}, {{ cookiecutter.author_name }} +Copyright (c) {% now 'utc', '%Y' %}, {{ cookiecutter.author_name }} Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: @@ -8,7 +8,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. {% elif cookiecutter.open_source_license == 'BSD' %} -Copyright (c) {{ cookiecutter.year }}, {{ cookiecutter.author_name }} +Copyright (c) {% now 'utc', '%Y' %}, {{ cookiecutter.author_name }} All rights reserved. Redistribution and use in source and binary forms, with or without modification,