We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60effca commit 989cac4Copy full SHA for 989cac4
1 file changed
template/pyproject.toml.jinja
@@ -3,11 +3,7 @@ name = "{{ package_name }}"
3
version = "0.1.0"
4
description = "{{ description }}"
5
{%- if author_name or author_email %}
6
-authors = [{
7
-{%- if author_name %} name = "{{ author_name }}"{% endif %}
8
-{%- if author_name and author_email %}, {% endif %}
9
-{%- if author_email %} email = "{{ author_email }}"{% endif %}
10
-}]
+authors = [{{ "{" }}{%- if author_name -%}name = "{{ author_name }}"{%- endif -%}{%- if author_name and author_email -%}, {% endif -%}{%- if author_email -%}email = "{{ author_email }}"{%- endif -%}{{ "}" }}]
11
{%- endif %}
12
{%- if copyright_license != "None" %}
13
license = { file = "LICENSE" }
0 commit comments