示例#1
0
 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 = {}
示例#2
0
    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
示例#3
0
    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
示例#4
0
文件: provider.py 项目: undu/poetry
    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())
示例#5
0
def graph():
    graph = DependencyGraph()

    return graph