From c542e214065373581facb3601138558f903112b3 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Tue, 14 Feb 2023 15:50:03 -0600 Subject: [PATCH] patchgraph.py: Delete. This is not nearly interesting enough to keep around. --- staging/patchgraph.py | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100755 staging/patchgraph.py diff --git a/staging/patchgraph.py b/staging/patchgraph.py deleted file mode 100755 index 5be6ca76..00000000 --- a/staging/patchgraph.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 -# -*- coding: utf-8 -*- -# -# Plot dependency graph for Staging patches. -# -# Copyright (C) 2017 Sebastian Lackner -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA -# - -from patchupdate import load_patchsets -from graphviz import Digraph -import os - -if __name__ == '__main__': - tools_directory = os.path.dirname(os.path.realpath(__file__)) - os.chdir(os.path.join(tools_directory, "./..")) - - all_patches = load_patchsets() - graph = Digraph(comment='Patch dependencies') - - for i, patch in all_patches.iteritems(): - if patch.disabled: continue - for j in patch.depends: - graph.edge(patch.name, all_patches[j].name) - - graph.render(view=True)