entropy :: dep :: Dependency :: Class Dependency

Class Dependency

source code


Helper class used to evaluate dependency string containing boolean expressions such as: (dep1 & dep2) | dep 3

Instance Methods
 
__init__(self, entropy_dep, entropy_repository_list)
Dependency constructor.
source code
string
get(self)
Return encapsulated depdenency string
source code
 
__bool__(self)
Same as __nonzero__ but meant for Python 3.x support
source code
 
__nonzero__(self)
Tries to match entropy_dep and returns True or False if dependency is matched.
source code
 
evaluate(self)
Evaluate dependency trying to match dentropy_dep across all the available repositories and return package matches.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, entropy_dep, entropy_repository_list)
(Constructor)

source code 

Dependency constructor.

Parameters:
  • entropy_dep (string) - entropy package dependency
  • entropy_repository_list (list) - ordered list of EntropyRepositoryBase instances
Overrides: object.__init__