From a161a92deee694d42f52a9769ff76bacc969175f Mon Sep 17 00:00:00 2001 From: Jan-Benedikt Jagusch Date: Fri, 12 Feb 2021 13:16:03 +0100 Subject: [PATCH] add author_email (#140) * add author_email * convert author to object * use nested author.email * revert to original formatting --- cookiecutter.json | 1 + {{cookiecutter.python_name}}/package.json | 5 ++++- {{cookiecutter.python_name}}/setup.py | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cookiecutter.json b/cookiecutter.json index 01e49d39..ce1f3c4a 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -1,5 +1,6 @@ { "author_name": "", + "author_email": "", "python_name": "myextension", "labextension_name": "{{ cookiecutter.python_name }}", "project_short_description": "A JupyterLab extension.", diff --git a/{{cookiecutter.python_name}}/package.json b/{{cookiecutter.python_name}}/package.json index 6cc622dd..964ec5f4 100644 --- a/{{cookiecutter.python_name}}/package.json +++ b/{{cookiecutter.python_name}}/package.json @@ -12,7 +12,10 @@ "url": "{{ cookiecutter.repository }}/issues" }, "license": "BSD-3-Clause", - "author": "{{ cookiecutter.author_name }}", + "author": { + "name": "{{ cookiecutter.author_name }}", + "email": "{{ cookiecutter.author_email }}" + }, "files": [ "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", "style/**/*.{css,.js,eot,gif,html,jpg,json,png,svg,woff2,ttf}" diff --git a/{{cookiecutter.python_name}}/setup.py b/{{cookiecutter.python_name}}/setup.py index a587e72d..892ec2f8 100644 --- a/{{cookiecutter.python_name}}/setup.py +++ b/{{cookiecutter.python_name}}/setup.py @@ -65,7 +65,8 @@ name=name, version=pkg_json["version"], url=pkg_json["homepage"], - author=pkg_json["author"], + author=pkg_json["author"]["name"], + author_email=pkg_json["author"]["email"], description=pkg_json["description"], license=pkg_json["license"], long_description=long_description,