Index: html/depends.html ================================================================== --- html/depends.html +++ html/depends.html @@ -31,12 +31,12 @@

Classes

-
-class DependencyValidation +
+class Check (add={}, core=['st2', 'uikit', 'config', 'action'])

Now this definitely requires customization. Each plugin can carry a list of (soft-) dependency names.

@@ -57,10 +57,11 @@
log : logging
warning handler
have : dict
accumulated list of existing/virtual plugins
+

Prepare list of known plugins and versions in self.have={}

Parameters

add : dict
name to pmd list of existing/core/virtual plugins (can define versions or own dependencies)
@@ -67,62 +68,70 @@
core : list
name list of virtual plugins

Class variables

-
var api
+
var api
+
+
+
+
var log
-

debugging

+
-
var log
+
var system_deps

Methods

-
-def and_or(self, deps, have, r=True) +
+def and_or(self, deps, have, inner_true=True)
-
+

Compare nested structure of [[dep],[alt,alt]]

-
-def cmp(self, d, have, absent=True) +
+def cmp(self, name_op_ver, have, absent=True)
-
+

Single comparison

-
+
def depends(self, plugin)
-

test depends: and breaks:

+

Verify depends: and breaks: against existing plugins/modules

-
-def module_test(self, type, name) +
+def module_test(self, urn, name)
-
+

Probes "bin:name" or "python:name" dependency URNs

-
+
def neither(self, deps, have)
-
+

Breaks/Conflicts: check [[or],[or]]

-
+
def split(self, dep_str)
-
+

Split trivial "pkg | alt, mod>=1, uikit<4.0" string +into nested list [ [alt, alt], [dep], [dep] ]; +with each entry comprised of (name, operator, version).

-
+
def valid(self, new_plugin)
-

check plugin info from repository stream (fields there $name, $file, $dist, api, id, depends, etc)

+

Plugin pre-screening from online repository stream. +Fields are $name, $file, $dist, api, id, depends, etc +Exclude installed or for newer-version presence.

@@ -139,21 +148,22 @@
  • Classes