Differences From Artifact [ee1c309587]:

To Artifact [8dad0b793d]:


46
47
48
49
50
51
52



53


54




55
56








57
58


59

60
61


62



63


64




65
66
67

68

69


70
71
72
73
74
75
76
77
helper might want to auto-tick them on, etc. This example is just
meant for probing downloadable plugins.</p>
<p>The .valid() helper only asserts the api: string, or skips existing
modules, and if they're more recent.
While .depends() compares minimum versions against existing modules.</p>
<p>In practice there's little need for full-blown dependency resolving
for application-level modules.</p>



<h2 id="attributes">Attributes</h2>


<dl>




<dt><strong><code>api</code></strong> :&ensp;<code>list</code></dt>
<dd>allowed api: identifiers for .valid() stream checks</dd>








<dt><strong><code>log</code></strong> :&ensp;<code>logging</code></dt>
<dd>warning handler</dd>


<dt><strong><code>have</code></strong> :&ensp;<code>dict</code></dt>

<dd>accumulated list of existing/virtual plugins</dd>
</dl>


<p>Prepare list of known plugins and versions in self.have={}</p>



<h2 id="parameters">Parameters</h2>


<dl>




<dt><strong><code>add</code></strong> :&ensp;<code>dict</code></dt>
<dd>name to pmd list of existing/core/virtual plugins (can define
versions or own dependencies)</dd>

<dt><strong><code>core</code></strong> :&ensp;<code>list</code></dt>

<dd>name list of virtual plugins</dd>


</dl></div>
<h3>Class variables</h3>
<dl>
<dt id="pluginconf.depends.Check.api"><code class="name">var <span class="ident">api</span></code></dt>
<dd>
<div class="desc"></div>
</dd>
<dt id="pluginconf.depends.Check.log"><code class="name">var <span class="ident">log</span></code></dt>







>
>
>
|
>
>
|
>
>
>
>
|
|
>
>
>
>
>
>
>
>
|
|
>
>
|
>
|
|
>
>

>
>
>
|
>
>
|
>
>
>
>
|
|
|
>
|
>
|
>
>
|







46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
helper might want to auto-tick them on, etc. This example is just
meant for probing downloadable plugins.</p>
<p>The .valid() helper only asserts the api: string, or skips existing
modules, and if they're more recent.
While .depends() compares minimum versions against existing modules.</p>
<p>In practice there's little need for full-blown dependency resolving
for application-level modules.</p>
<table>
<thead>
<tr>
<th>Attributes</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>api</td>
<td>list</td>
<td>allowed api: identifiers for .valid() stream checks</td>
</tr>
<tr>
<td>system_deps</td>
<td>bool</td>
<td>check <code>bin:app</code> or <code>python:package</code> dependencies</td>
</tr>
<tr>
<td>log</td>
<td>logging</td>
<td>warning handler</td>
</tr>
<tr>
<td>have</td>
<td>dict</td>
<td>accumulated list of existing/virtual plugins</td>
</tr>
</tbody>
</table>
<p>Prepare list of known plugins and versions in self.have={}</p>
<table>
<thead>
<tr>
<th>Parameters</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>add</td>
<td>dict</td>
<td>namepmd of existing/core plugins (incl ver or deps)</td>
</tr>
<tr>
<td>core</td>
<td>list</td>
<td>name list of virtual plugins</td>
</tr>
</tbody>
</table></div>
<h3>Class variables</h3>
<dl>
<dt id="pluginconf.depends.Check.api"><code class="name">var <span class="ident">api</span></code></dt>
<dd>
<div class="desc"></div>
</dd>
<dt id="pluginconf.depends.Check.log"><code class="name">var <span class="ident">log</span></code></dt>
97
98
99
100
101
102
103
104





















105
106
107
108
109
110
111
<dd>
<div class="desc"><p>Single comparison</p></div>
</dd>
<dt id="pluginconf.depends.Check.depends"><code class="name flex">
<span>def <span class="ident">depends</span></span>(<span>self, plugin)</span>
</code></dt>
<dd>
<div class="desc"><p>Verify depends: and breaks: against existing plugins/modules</p></div>





















</dd>
<dt id="pluginconf.depends.Check.module_test"><code class="name flex">
<span>def <span class="ident">module_test</span></span>(<span>self, urn, name)</span>
</code></dt>
<dd>
<div class="desc"><p>Probes "bin:name" or "python:name" dependency URNs</p></div>
</dd>







|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<dd>
<div class="desc"><p>Single comparison</p></div>
</dd>
<dt id="pluginconf.depends.Check.depends"><code class="name flex">
<span>def <span class="ident">depends</span></span>(<span>self, plugin)</span>
</code></dt>
<dd>
<div class="desc"><p>Verify depends: and breaks: against existing plugins/modules</p>
<table>
<thead>
<tr>
<th>Parameters</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>plugin</td>
<td>dict</td>
<td>plugin meta properties of (new?) plugin</td>
</tr>
<tr>
<td><strong>Returns</strong></td>
<td>bool</td>
<td>matches up with existing .have{} installation</td>
</tr>
</tbody>
</table></div>
</dd>
<dt id="pluginconf.depends.Check.module_test"><code class="name flex">
<span>def <span class="ident">module_test</span></span>(<span>self, urn, name)</span>
</code></dt>
<dd>
<div class="desc"><p>Probes "bin:name" or "python:name" dependency URNs</p></div>
</dd>
125
126
127
128
129
130
131
132





















133
134
135
136
137
138
139
</dd>
<dt id="pluginconf.depends.Check.valid"><code class="name flex">
<span>def <span class="ident">valid</span></span>(<span>self, new_plugin)</span>
</code></dt>
<dd>
<div class="desc"><p>Plugin pre-screening from online repository stream.
Fields are $name, $file, $dist, api, id, depends, etc
Exclude installed or for newer-version presence.</p></div>





















</dd>
</dl>
</dd>
</dl>
</section>
</article>
<nav id="sidebar">







|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
</dd>
<dt id="pluginconf.depends.Check.valid"><code class="name flex">
<span>def <span class="ident">valid</span></span>(<span>self, new_plugin)</span>
</code></dt>
<dd>
<div class="desc"><p>Plugin pre-screening from online repository stream.
Fields are $name, $file, $dist, api, id, depends, etc
Exclude installed or for newer-version presence.</p>
<table>
<thead>
<tr>
<th>Parameters</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>new_plugin</td>
<td>dict</td>
<td>online properties of available plugin</td>
</tr>
<tr>
<td><strong>Returns</strong></td>
<td>bool</td>
<td>is updatatable</td>
</tr>
</tbody>
</table></div>
</dd>
</dl>
</dd>
</dl>
</section>
</article>
<nav id="sidebar">