def __init__(self, package: Package, pool: Pool, io): self._package = package self._pool = pool self._io = io self._python_constraint = package.python_constraint self._base_dg = DependencyGraph() self._search_for = {}
def base(self): if self._base is not None: return self._base graph = DependencyGraph() for r in self._fixture['base']: self.add_dependencies_to_graph(graph, None, r) self._base = graph return self._base
def result(self): if self._result is not None: return self._result graph = DependencyGraph() for resolved in self._fixture['resolved']: self.add_dependencies_to_graph(graph, None, resolved) self._result = graph return self._result
def __init__( self, package, # type: Package pool, # type: Pool io): self._package = package self._pool = pool self._io = io self._python_constraint = package.python_constraint self._base_dg = DependencyGraph() self._search_for = {} self._constraints = {} super(Provider, self).__init__(debug=self._io.is_debug())
def graph(): graph = DependencyGraph() return graph