From 06ae3b17fd4f0eed169252fc616bdafd7ecbf284 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Wed, 31 Aug 2022 11:40:36 -0600 Subject: [PATCH] Add patch to adapt an example to matplotlib 3.6.0. --- python-networkx-matplotlib.patch | 9 +++++++++ python-networkx.spec | 9 +++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 python-networkx-matplotlib.patch diff --git a/python-networkx-matplotlib.patch b/python-networkx-matplotlib.patch new file mode 100644 index 0000000..07451d6 --- /dev/null +++ b/python-networkx-matplotlib.patch @@ -0,0 +1,9 @@ +--- examples/drawing/plot_directed.py.orig 2022-08-22 07:33:18.000000000 -0600 ++++ examples/drawing/plot_directed.py 2022-08-31 11:24:11.204178840 -0600 +@@ -42,5 +42,6 @@ pc.set_array(edge_colors) + + ax = plt.gca() + ax.set_axis_off() ++pc.axes = ax + plt.colorbar(pc) + plt.show() diff --git a/python-networkx.spec b/python-networkx.spec index 0006451..7af9ee2 100644 --- a/python-networkx.spec +++ b/python-networkx.spec @@ -1,6 +1,6 @@ Name: python-networkx Version: 2.8.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Creates and Manipulates Graphs and Networks License: BSD-3-Clause URL: https://networkx.org/ @@ -17,6 +17,8 @@ Patch0: %{name}-doc.patch # Temporary workaround for a failing test. # See https://github.com/networkx/networkx/issues/5913 Patch1: %{name}-test.patch +# Adapt an example to matplotlib 3.6.0 +Patch2: %{name}-matplotlib.patch # There is a bootstrap loop between libpysal and networkx when tests/docs are enabled %bcond_with bootstrap @@ -92,7 +94,7 @@ study of the structure, dynamics, and functions of complex networks. License: BSD-3-Clause AND MIT Summary: Documentation for networkx Requires: fontawesome5-fonts-all -Provides: bundled(jquery) +Provides: bundled(js-jquery) Provides: bundled(js-underscore) %description doc @@ -159,6 +161,9 @@ done %endif %changelog +* Wed Aug 31 2022 Jerry James - 2.8.6-2 +- Add patch to adapt an example to matplotlib 3.6.0 + * Mon Aug 22 2022 Jerry James - 2.8.6-1 - Version 2.8.6 - Convert License tag to SPDX