@@ -66,6 +66,7 @@ def parse_plugin_file(post, pkg_dir, config):
66
66
reqplugins = os .path .join (pkg_dir , 'requirements-plugins.txt' )
67
67
68
68
if os .path .exists (ini ):
69
+ post .add_dependency (ini )
69
70
try :
70
71
c = configparser .ConfigParser ()
71
72
c .read (ini )
@@ -107,6 +108,7 @@ def parse_plugin_file(post, pkg_dir, config):
107
108
'directory.' .format (plugin ))
108
109
109
110
if os .path .exists (conf_sample ):
111
+ post .add_dependency (conf_sample )
110
112
with io .open (conf_sample , 'r' , encoding = 'utf-8' ) as f :
111
113
data ['confpy' ] = pygments .highlight (
112
114
f .read (),
@@ -115,12 +117,14 @@ def parse_plugin_file(post, pkg_dir, config):
115
117
data ['confpy' ] = None
116
118
117
119
if os .path .exists (reqpy ):
120
+ post .add_dependency (reqpy )
118
121
with io .open (reqpy , 'r' , encoding = 'utf-8' ) as f :
119
122
data ['pyreqs' ] = f .readlines ()
120
123
else :
121
124
data ['pyreqs' ] = []
122
125
123
126
if os .path .exists (reqnonpy ):
127
+ post .add_dependency (reqnonpy )
124
128
with io .open (reqnonpy , 'r' , encoding = 'utf-8' ) as f :
125
129
r = f .readlines ()
126
130
@@ -129,6 +133,7 @@ def parse_plugin_file(post, pkg_dir, config):
129
133
data ['nonpyreqs' ] = []
130
134
131
135
if os .path .exists (reqplugins ):
136
+ post .add_dependency (reqplugins )
132
137
with io .open (reqplugins , 'r' , encoding = 'utf-8' ) as f :
133
138
data ['pluginreqs' ] = f .readlines ()
134
139
else :
@@ -153,6 +158,7 @@ def parse_theme_info(post, pkg_dir, config):
153
158
parent = os .path .join (pkg_dir , 'parent' )
154
159
155
160
if os .path .exists (conf_sample ):
161
+ post .add_dependency (conf_sample )
156
162
with io .open (conf_sample , 'r' , encoding = 'utf-8' ) as f :
157
163
data ['confpy' ] = pygments .highlight (
158
164
f .read (),
@@ -161,12 +167,14 @@ def parse_theme_info(post, pkg_dir, config):
161
167
data ['confpy' ] = None
162
168
163
169
if os .path .exists (engine ):
170
+ post .add_dependency (engine )
164
171
with io .open (engine , 'r' , encoding = 'utf-8' ) as f :
165
172
data ['engine' ] = f .read ().strip ()
166
173
else :
167
174
data ['engine' ] = 'mako'
168
175
169
176
if os .path .exists (parent ):
177
+ post .add_dependency (parent )
170
178
with io .open (parent , 'r' , encoding = 'utf-8' ) as f :
171
179
data ['parent' ] = f .read ().strip ()
172
180
elif theme == 'base' :
0 commit comments