depman package¶
Submodules¶
depman.apt module¶
-
class
depman.apt.Apt(name, version, **kwargs)¶ Bases:
depman.dependency.DependencyRepresentation of an apt dependency
Positional Arguments:
name: basestring version: Relation
Version relation for this dependencyKeyword-Only Arguments:
after (default = ): basestring always_upgrade (default = False): bool
Always attempt to upgradebefore (default = ): basestring order (default = 10): int
Class Options:
- args: (‘name’, ‘version’)
- autodoc: True
- coerce_args: False
- id_equality: False
- init_validate: True
- make_hashable: True
- make_type_object: True
- optional_none: True
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: after, always_upgrade, before, name, order, version
- _internal: order
-
key= 'apt'¶
-
order= 10¶
-
satisfy()¶
depman.dependency module¶
-
class
depman.dependency.Dependency(name, version, **kwargs)¶ Bases:
syn.base.b.base.BaseBasic representation of a dependency
Positional Arguments:
name: basestring version: Relation
Version relation for this dependencyKeyword-Only Arguments:
after (default = ): basestring always_upgrade (default = False): bool
Always attempt to upgradebefore (default = ): basestring order (default = 10000): int
Class Options:
- args: (‘name’, ‘version’)
- autodoc: True
- coerce_args: False
- id_equality: False
- init_validate: True
- make_hashable: True
- make_type_object: True
- optional_none: True
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: after, always_upgrade, before, name, order, version
- _internal: order
-
check()¶ Returns True if the dependency is satisfied, False otherwise.
-
export()¶
-
classmethod
from_conf(obj)¶
-
installed()¶
-
key= None¶
-
order= 10000¶
-
satisfy()¶ Satisfies the dependency if currently unsatisfied.
-
class
depman.dependency.Dependencies(**kwargs)¶ Bases:
syn.base.b.base.BaseRepresentation of the various dependency sets
Keyword-Only Arguments:
- contexts: AttrDict (any => list (Dependency))
- Diction of dependencies in their various contexts
- includes: AttrDict (any => list (basestring))
- Specification of which contexts to include in others
Class Options:
- args: ()
- autodoc: True
- coerce_args: True
- id_equality: False
- init_validate: True
- make_hashable: False
- make_type_object: True
- optional_none: False
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: contexts, includes
-
contexts_from_includes(context, contexts)¶
-
dependencies_to_satisfy(context, deptype=None)¶
-
dependency_operations(deps)¶
-
deps_from_context(context)¶
-
export(context, deptype, outfile, write=True, include_header=True)¶
-
export_header()¶
-
classmethod
from_yaml(fil)¶
-
satisfy(context, deptype=None, execute=True)¶
-
special_contexts= ('includes',)¶
-
validate()¶
-
depman.dependency.command(cmd, capture_output=False, returncode=False, silent=None)¶
depman.globals module¶
depman.main module¶
-
depman.main.dispatch_outfile(f)¶
-
depman.main.dispatch_type(typ)¶
-
depman.main.main()¶
depman.operation module¶
-
class
depman.operation.Operation(**kwargs)¶ Bases:
syn.base.b.wrapper.ListWrapperRepresentation of a system operation.
Keyword-Only Arguments:
- _list: list
- The wrapped list
- order: int
- An integer specifying the order in which to perform the operation (smaller values are performed earlier)
- repetitions (default = 0): int
- Number of times to repeat the operation
Class Options:
- args: ()
- autodoc: True
- coerce_args: False
- id_equality: False
- init_validate: True
- make_hashable: False
- make_type_object: True
- max_len: None
- min_len: None
- optional_none: False
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: _list, order, repetitions
- _internal: _list
- str_exclude: _list
-
combine(other)¶ Combine with another operation to increase execution efficiency.
-
execute()¶ Execute the operation on the system
-
classmethod
optimize(ops)¶
-
order_offset= 0¶
-
reduce(ops)¶ Reduce a list of operations for optimizing total execution
-
class
depman.operation.Independent(**kwargs)¶ Bases:
depman.operation.OperationAn independent operation that cannot be combined with others.
Keyword-Only Arguments:
- _list: list
- The wrapped list
- order: int
- An integer specifying the order in which to perform the operation (smaller values are performed earlier)
- repetitions (default = 0): int
- Number of times to repeat the operation
Class Options:
- args: ()
- autodoc: True
- coerce_args: False
- id_equality: False
- init_validate: True
- make_hashable: False
- make_type_object: True
- max_len: None
- min_len: None
- optional_none: False
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: _list, order, repetitions
- _internal: _list
- str_exclude: _list
-
combine(other)¶ Combine does nothing, because operations are independent.
-
class
depman.operation.Combinable(**kwargs)¶ Bases:
depman.operation.OperationAn operation that can be combined with others of like type.
Keyword-Only Arguments:
- _list: list
- The wrapped list
- order: int
- An integer specifying the order in which to perform the operation (smaller values are performed earlier)
- repetitions (default = 0): int
- Number of times to repeat the operation
Class Options:
- args: ()
- autodoc: True
- coerce_args: False
- id_equality: False
- init_validate: True
- make_hashable: False
- make_type_object: True
- max_len: None
- min_len: None
- optional_none: False
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: _list, order, repetitions
- _internal: _list
- str_exclude: _list
-
combine(other)¶ Adds the operational parameters of other to our own.
-
class
depman.operation.Idempotent(**kwargs)¶ Bases:
depman.operation.CombinableAn operation for which repeated executions has no meaningful effect.
Keyword-Only Arguments:
- _list: list
- The wrapped list
- order: int
- An integer specifying the order in which to perform the operation (smaller values are performed earlier)
- repetitions (default = 0): int
- Number of times to repeat the operation
Class Options:
- args: ()
- autodoc: True
- coerce_args: False
- id_equality: False
- init_validate: True
- make_hashable: False
- make_type_object: True
- max_len: None
- min_len: None
- optional_none: False
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: _list, order, repetitions
- _internal: _list
- str_exclude: _list
-
combine(other)¶ Does nothing, because repeating the execution is not meaningful.
depman.pip module¶
-
class
depman.pip.Pip(name, version, **kwargs)¶ Bases:
depman.dependency.DependencyRepresentation of a pip dependency
Positional Arguments:
name: basestring version: Relation
Version relation for this dependencyKeyword-Only Arguments:
after (default = ): basestring always_upgrade (default = False): bool
Always attempt to upgradebefore (default = ): basestring order (default = 30): int
Class Options:
- args: (‘name’, ‘version’)
- autodoc: True
- coerce_args: False
- id_equality: False
- init_validate: True
- make_hashable: True
- make_type_object: True
- optional_none: True
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: after, always_upgrade, before, name, order, version
- _internal: order
-
key= 'pip'¶
-
order= 30¶
-
satisfy()¶
depman.relation module¶
Relations for package versions.
-
class
depman.relation.Relation(rhs, **kwargs)¶ Bases:
syn.base.b.base.BasePositional Arguments:
- rhs (default = ): str
- The value on the right hand side
Class Options:
- args: (‘rhs’,)
- autodoc: True
- coerce_args: False
- id_equality: False
- init_validate: True
- make_hashable: True
- make_type_object: True
- optional_none: False
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: rhs
-
classmethod
dispatch(s)¶
-
emit()¶
-
func= None¶
-
repr= None¶
-
class
depman.relation.Eq(rhs, **kwargs)¶ Bases:
depman.relation.RelationPositional Arguments:
- rhs (default = ): str
- The value on the right hand side
Class Options:
- args: (‘rhs’,)
- autodoc: True
- coerce_args: False
- id_equality: False
- init_validate: True
- make_hashable: True
- make_type_object: True
- optional_none: False
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: rhs
-
classmethod
dispatch(s)¶
-
func()¶ eq(a, b) – Same as a==b.
-
repr= '=='¶
-
class
depman.relation.Le(rhs, **kwargs)¶ Bases:
depman.relation.RelationPositional Arguments:
- rhs (default = ): str
- The value on the right hand side
Class Options:
- args: (‘rhs’,)
- autodoc: True
- coerce_args: False
- id_equality: False
- init_validate: True
- make_hashable: True
- make_type_object: True
- optional_none: False
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: rhs
-
func()¶ le(a, b) – Same as a<=b.
-
repr= '<='¶
-
class
depman.relation.Ge(rhs, **kwargs)¶ Bases:
depman.relation.RelationPositional Arguments:
- rhs (default = ): str
- The value on the right hand side
Class Options:
- args: (‘rhs’,)
- autodoc: True
- coerce_args: False
- id_equality: False
- init_validate: True
- make_hashable: True
- make_type_object: True
- optional_none: False
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: rhs
-
func()¶ ge(a, b) – Same as a>=b.
-
repr= '>='¶
depman.yatr module¶
-
class
depman.yatr.Yatr(name, version, **kwargs)¶ Bases:
depman.dependency.DependencyPositional Arguments:
name: basestring version: Relation
Version relation for this dependencyKeyword-Only Arguments:
after (default = ): basestring always_upgrade (default = False): bool
Always attempt to upgradebefore (default = ): basestring order (default = 99999): int yatrfile (default = ): basestring
Class Options:
- args: (‘name’, ‘version’)
- autodoc: True
- coerce_args: False
- id_equality: False
- init_validate: True
- make_hashable: True
- make_type_object: True
- optional_none: True
- register_subclasses: False
- repr_template:
- coerce_hooks: ()
- create_hooks: ()
- init_hooks: ()
- init_order: ()
- metaclass_lookup: (‘coerce_hooks’, ‘init_hooks’, ‘create_hooks’, ‘setstate_hooks’)
- setstate_hooks: ()
Groups:
- _all: after, always_upgrade, before, name, order, version, yatrfile
- _internal: order
-
check()¶ Tasks will always run.
-
installed()¶
-
key= 'yatr'¶
-
order= 99999¶
-
satisfy()¶