Skip to content

Commit

Permalink
add author_email (#140)
Browse files Browse the repository at this point in the history
* add author_email

* convert author to object

* use nested author.email

* revert to original formatting
  • Loading branch information
janjagusch authored Feb 12, 2021
1 parent b13df38 commit a161a92
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"author_name": "",
"author_email": "",
"python_name": "myextension",
"labextension_name": "{{ cookiecutter.python_name }}",
"project_short_description": "A JupyterLab extension.",
Expand Down
5 changes: 4 additions & 1 deletion {{cookiecutter.python_name}}/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
3 changes: 2 additions & 1 deletion {{cookiecutter.python_name}}/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a161a92

Please sign in to comment.