From 898dda80cb7c59f7aee2edfbc0ae664a024459fc Mon Sep 17 00:00:00 2001 From: Erel Segal-Halevi Date: Sun, 4 Aug 2024 00:00:23 +0300 Subject: [PATCH 1/4] do not support python 3.8 --- .github/workflows/example.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 5a0ad75..e717464 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ubuntu, macos, windows] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 diff --git a/pyproject.toml b/pyproject.toml index a310b1f..6422123 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" name = 'networkz' description = 'Extended Graph-Algorithms Library on Top of NetworkX' readme = 'README.MD' -requires-python = '>=3.8' +requires-python = '>=3.9' dynamic = ['version'] license = {file = "LICENSE"} keywords = [ From c8cace0fac020358357c342943a0a38402c5ed9f Mon Sep 17 00:00:00 2001 From: Erel Segal-Halevi Date: Sun, 4 Aug 2024 11:10:22 +0300 Subject: [PATCH 2/4] Update and rename example.yml to example.yml.OLD --- .github/workflows/{example.yml => example.yml.OLD} | 2 ++ 1 file changed, 2 insertions(+) rename .github/workflows/{example.yml => example.yml.OLD} (95%) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml.OLD similarity index 95% rename from .github/workflows/example.yml rename to .github/workflows/example.yml.OLD index e717464..f3509e0 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml.OLD @@ -1,3 +1,5 @@ +# Example YML file. Created by Oriya Alperin + name: example on: [push] From 8ab879aed5342ddfa806f176b53e3c6d85212462 Mon Sep 17 00:00:00 2001 From: Erel Segal-Halevi Date: Tue, 6 Aug 2024 08:21:02 +0300 Subject: [PATCH 3/4] move import of matplotlib to inside function --- networkz/algorithms/approximation/firefighter_problem/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networkz/algorithms/approximation/firefighter_problem/Utils.py b/networkz/algorithms/approximation/firefighter_problem/Utils.py index c62ce68..f4256d0 100644 --- a/networkz/algorithms/approximation/firefighter_problem/Utils.py +++ b/networkz/algorithms/approximation/firefighter_problem/Utils.py @@ -19,7 +19,6 @@ import networkx as nx import networkx.algorithms.connectivity as algo -import matplotlib.pyplot as plt import numpy as np from enum import Enum import copy @@ -835,6 +834,7 @@ def display_graph(graph:nx.DiGraph) -> None: graph : nx.DiGraph Directed graph. """ + import matplotlib.pyplot as plt pos = nx.shell_layout(graph) colors = [node_colors.get(data.get('status', 'default'), 'default') for node, data in graph.nodes(data=True)] nx.draw(graph, pos, node_color=colors, with_labels=True, font_weight='bold') From 4e5ed2c8096ab8810d287bccf196aa18628e5dc7 Mon Sep 17 00:00:00 2001 From: Erel Segal-Halevi Date: Thu, 29 Aug 2024 22:15:34 +0300 Subject: [PATCH 4/4] Delete scripts directory --- scripts/update_nx.py | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 scripts/update_nx.py diff --git a/scripts/update_nx.py b/scripts/update_nx.py deleted file mode 100644 index bbbe3a8..0000000 --- a/scripts/update_nx.py +++ /dev/null @@ -1,9 +0,0 @@ -import subprocess - -def update_networkx(): - try: - subprocess.check_call(['pip', 'install', '--upgrade', 'networkx']) - print("Successfully updated networkx to the latest version.") - except subprocess.CalledProcessError as e: - print("An error occurred while updating networkx:", e) -