Skip to content

Commit f8b8a50

Browse files
committedApr 2, 2017
Fix #221 -- add dependencies in pkgindex_compiler
I’m using `add='both'` implicitly, because some of those files do not appear in `cache/*.html`. Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 0c5ae0b commit f8b8a50

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed
 

‎v7/pkgindex/pkgindex.plugin

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ MinVersion = 7.8.2
88

99
[Documentation]
1010
Author = Chris Warrick
11-
Version = 0.2.1
11+
Version = 0.2.2
1212
Website = https://plugins.getnikola.com/
1313
Description = Generate package indexes (meta-plugin)

‎v7/pkgindex_compiler/pkgindex_compiler.plugin

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ MinVersion = 7.8.1+
88

99
[Documentation]
1010
Author = Chris Warrick, Roberto Alsina
11-
Version = 0.2.1
11+
Version = 0.2.2
1212
Website = https://plugins.getnikola.com/
1313
Description = Compile pages in package indexes

‎v7/pkgindex_compiler/pkgindex_compiler.py

+8
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def parse_plugin_file(post, pkg_dir, config):
6666
reqplugins = os.path.join(pkg_dir, 'requirements-plugins.txt')
6767

6868
if os.path.exists(ini):
69+
post.add_dependency(ini)
6970
try:
7071
c = configparser.ConfigParser()
7172
c.read(ini)
@@ -107,6 +108,7 @@ def parse_plugin_file(post, pkg_dir, config):
107108
'directory.'.format(plugin))
108109

109110
if os.path.exists(conf_sample):
111+
post.add_dependency(conf_sample)
110112
with io.open(conf_sample, 'r', encoding='utf-8') as f:
111113
data['confpy'] = pygments.highlight(
112114
f.read(),
@@ -115,12 +117,14 @@ def parse_plugin_file(post, pkg_dir, config):
115117
data['confpy'] = None
116118

117119
if os.path.exists(reqpy):
120+
post.add_dependency(reqpy)
118121
with io.open(reqpy, 'r', encoding='utf-8') as f:
119122
data['pyreqs'] = f.readlines()
120123
else:
121124
data['pyreqs'] = []
122125

123126
if os.path.exists(reqnonpy):
127+
post.add_dependency(reqnonpy)
124128
with io.open(reqnonpy, 'r', encoding='utf-8') as f:
125129
r = f.readlines()
126130

@@ -129,6 +133,7 @@ def parse_plugin_file(post, pkg_dir, config):
129133
data['nonpyreqs'] = []
130134

131135
if os.path.exists(reqplugins):
136+
post.add_dependency(reqplugins)
132137
with io.open(reqplugins, 'r', encoding='utf-8') as f:
133138
data['pluginreqs'] = f.readlines()
134139
else:
@@ -153,6 +158,7 @@ def parse_theme_info(post, pkg_dir, config):
153158
parent = os.path.join(pkg_dir, 'parent')
154159

155160
if os.path.exists(conf_sample):
161+
post.add_dependency(conf_sample)
156162
with io.open(conf_sample, 'r', encoding='utf-8') as f:
157163
data['confpy'] = pygments.highlight(
158164
f.read(),
@@ -161,12 +167,14 @@ def parse_theme_info(post, pkg_dir, config):
161167
data['confpy'] = None
162168

163169
if os.path.exists(engine):
170+
post.add_dependency(engine)
164171
with io.open(engine, 'r', encoding='utf-8') as f:
165172
data['engine'] = f.read().strip()
166173
else:
167174
data['engine'] = 'mako'
168175

169176
if os.path.exists(parent):
177+
post.add_dependency(parent)
170178
with io.open(parent, 'r', encoding='utf-8') as f:
171179
data['parent'] = f.read().strip()
172180
elif theme == 'base':

‎v7/pkgindex_scan/pkgindex_scan.plugin

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ MinVersion = 7.8.1+
88

99
[Documentation]
1010
Author = Chris Warrick
11-
Version = 0.2.1
11+
Version = 0.2.2
1212
Website = https://plugins.getnikola.com/
1313
Description = Scan packages for package indexes

‎v7/pkgindex_zip/pkgindex_zip.plugin

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ MinVersion = 7.8.1+
88

99
[Documentation]
1010
Author = Chris Warrick
11-
Version = 0.2.1
11+
Version = 0.2.2
1212
Website = https://plugins.getnikola.com/
1313
Description = Generate ZIP (and JSON) files for package indexes

0 commit comments

Comments
 (0)
Please sign in to comment.