File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ import logging
1
2
import sys
2
3
import re
3
4
from pathlib import Path
6
7
import jinja2
7
8
import markdown
8
9
10
+ _log = logging .getLogger (__name__ )
11
+
9
12
MULTI_PROJECT_CHANGELOG_TEMPLATE = """\
10
13
<!DOCTYPE html>
11
14
<html>
26
29
<h1>{{ title }}</h1>
27
30
{% for project in projects %}
28
31
<h2 id="{{ project.name | lower }}">{{ project.name }} {{ project.version }}</h2>
29
- <div class="project-changelog">{{ project.changelog_html }}</div>
32
+ {% if project.changelog_html %}
33
+ <div class="project-changelog">{{ project.changelog_html }}</div>
34
+ {% endif %}
30
35
{% endfor %}
31
36
</div>
32
37
</body>
@@ -91,6 +96,8 @@ def get_changelog_path(
91
96
installed_path = Path (sys .prefix ) / data_files_dir / filename
92
97
if installed_path .exists ():
93
98
return installed_path
99
+ else :
100
+ _log .warning (f"Failed to find changelog at { installed_path } " )
94
101
95
102
# Path of changelog when running from source
96
103
if src_root :
You can’t perform that action at this time.
0 commit comments