From 3649a2939e678a0969c9130c37cacc4514509bd0 Mon Sep 17 00:00:00 2001 From: Kevin Ndung'u Date: Mon, 9 Feb 2015 13:32:31 +0300 Subject: [PATCH 1/2] Use double quotes for author name fields This is meant to handle errors caused when the author name contains punctuation i.e apostrophes --- {{cookiecutter.repo_name}}/docs/conf.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/{{cookiecutter.repo_name}}/docs/conf.py b/{{cookiecutter.repo_name}}/docs/conf.py index d821d2f5..15a4b325 100644 --- a/{{cookiecutter.repo_name}}/docs/conf.py +++ b/{{cookiecutter.repo_name}}/docs/conf.py @@ -42,7 +42,7 @@ master_doc = 'index' # General information about the project. project = u'{{ cookiecutter.project_name }}' -copyright = u'{{ cookiecutter.year }}, {{ cookiecutter.author_name }}' +copyright = u"{{ cookiecutter.year }}, {{ cookiecutter.author_name }}" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -187,7 +187,7 @@ latex_documents = [ ('index', '{{ cookiecutter.repo_name }}.tex', u'{{ cookiecutter.project_name }} Documentation', - u'{{ cookiecutter.author_name }}', 'manual'), + u"{{ cookiecutter.author_name }}", 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -217,7 +217,7 @@ latex_documents = [ # (source start file, name, description, authors, manual section). man_pages = [ ('index', '{{ cookiecutter.repo_name }}', u'{{ cookiecutter.project_name }} Documentation', - [u'{{ cookiecutter.author_name }}'], 1) + [u"{{ cookiecutter.author_name }}"], 1) ] # If true, show URL addresses after external links. @@ -231,7 +231,7 @@ man_pages = [ # dir menu entry, description, category) texinfo_documents = [ ('index', '{{ cookiecutter.repo_name }}', u'{{ cookiecutter.project_name }} Documentation', - u'{{ cookiecutter.author_name }}', '{{ cookiecutter.project_name }}', + u"{{ cookiecutter.author_name }}", '{{ cookiecutter.project_name }}', '{{ cookiecutter.description }}', 'Miscellaneous'), ] From 0162d07e1c979140e87f58c163eef4ad8c2916bf Mon Sep 17 00:00:00 2001 From: Kevin Ndung'u Date: Mon, 9 Feb 2015 14:00:26 +0300 Subject: [PATCH 2/2] Use double quotes on author field in setup.py --- {{cookiecutter.repo_name}}/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.repo_name}}/setup.py b/{{cookiecutter.repo_name}}/setup.py index 8a7a51b5..a8e0da6a 100644 --- a/{{cookiecutter.repo_name}}/setup.py +++ b/{{cookiecutter.repo_name}}/setup.py @@ -16,7 +16,7 @@ version = {{ cookiecutter.repo_name }}.__version__ setup( name='{{ cookiecutter.project_name }}', version=version, - author='{{ cookiecutter.full_name }}', + author="{{ cookiecutter.full_name }}", author_email='{{ cookiecutter.email }}', packages=[ '{{ cookiecutter.repo_name }}',