Skip to content

Commit 9056063

Browse files
authored
Merge pull request #45 from jayvdb/issue_8
add missing comma in additional_keywords, fix #8
2 parents e2de91b + 054cd29 commit 9056063

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

templates/docs/conf.py_t

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,12 @@ texinfo_documents = [
165165
author, '{{ project_fn }}', 'One line description of project.',
166166
'Miscellaneous'),
167167
]
168-
{%- if epub %}
169168

170169

171170
# -- Options for Epub output -------------------------------------------------
172171

173172
# Bibliographic Dublin Core info.
174173
epub_title = project
175-
epub_author = author
176-
epub_publisher = author
177-
epub_copyright = copyright
178174

179175
# The unique identifier of the text. This can be a ISBN number
180176
# or the project homepage.
@@ -187,7 +183,6 @@ epub_copyright = copyright
187183

188184
# A list of files that should not be packed into the epub file.
189185
epub_exclude_files = ['search.html']
190-
{%- endif %}
191186
{%- if extensions %}
192187

193188

templates/setup.py.jj2

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,20 @@ DESCRIPTION = (
6363
URL = 'https://{{scm_host}}/{{organisation}}/{{name}}'
6464
DOWNLOAD_URL = '%s/archive/{{release}}.tar.gz' % URL
6565
FILES = ['README.rst',{%block morefiles %}{%endblock%} 'CHANGELOG.rst']
66+
{% if self.additional_keywords %}
67+
{% set additional_keywords = self.additional_keywords() %}
68+
{% if additional_keywords and not additional_keywords.rstrip().endswith(',') %}
69+
{% set additional_keywords = additional_keywords.rstrip() + ',\n' %}
70+
{% endif %}
71+
{% endif %}
6672
KEYWORDS = [
67-
'python',
6873
{% for keyword in keywords %}
6974
'{{keyword}}',
7075
{% endfor %}
71-
{%block additional_keywords%}
72-
{%endblock%}
76+
{% if additional_keywords %}
77+
{{ additional_keywords -}}
78+
{% endif %}
79+
'python',
7380
]
7481

7582
CLASSIFIERS = [

0 commit comments

Comments
 (0)